A copy of the PHP Simple HTML DOM Parser project.
Note: I donât intend to maintain this package. Other copies of Simple HTML DOM are already available on Packagist, are easier to install and donât clutter your composer.json
file., (*1)
A copy of the PHP Simple HTML DOM Parser project usable as a Composer package., (*2)
First, you need to add this repository at the root of your composer.json
:, (*3)
"repositories": [ { "type": "vcs", "url": "https://github.com/Youpie/simple-html-dom" } ]
Then, require this package in the same way as any other package:, (*4)
"require": { "simple-html-dom/simple-html-dom": "*" }
Do a composer validate
, just to be sure that your file is still valid., (*5)
And voilĂ , youâre ready to composer update
., (*6)
Since this library doesnât use namespaces, it lives in the global namespace., (*7)
$instance = new \simple_html_dom();
Check the official documentation at SourceForge., (*8)