Skip to content

serhatozles/yii2-simplehtmldom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Simple HTML Dom

Simple HTML Dom

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist serhatozles/yii2-simplehtmldom "dev-master"

or add

"serhatozles/yii2-simplehtmldom": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \serhatozles\simplehtmldom\SimpleHTMLDom::file_get_html('http://google.com'); ?>```

See more: http://simplehtmldom.sourceforge.net/