We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Integrate SimpleHtmlDom to Phalcon

Hi,

I want to integrate SimpleHtmlDom to Phalcon. Can you please tell me how to do it? Also I donĀ“t know to start a new phalcon project as micro framework. I read the documentation of Phalcon but it doesn't make sense to me. (about structure of folders, ...)



98.9k

It would be helpful to post what is SimpleHtmlDom, https://simplehtmldom.sourceforge.net/?

Sorry, I thought it's popular and many people know it :). Yes, it's a class to help us find the html elements, use in case of scrapping the content ... is it able to add it to my phalcon project? Thank you



98.9k
edited Aug '14

I think you can install it using composer:

{
    ...,
    require: {
        ...,
        'shark/simple_html_dom': 'dev-master'
    }
}

Like in Vokuro: