Simple HTML DOM parser extension for Yii 2 framework.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist garyjl/yii2-simple_html_dom "*"
or add
"garyjl/yii2-simple_html_dom": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \garyjl\simplehtmldom\SimpleHTMLDom::file_get_html('http://www.abc.com'); ?>
See more: http://simplehtmldom.sourceforge.net/