X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsunra%2Fphp-simple-html-dom-parser%2FREADME.md;fp=vendor%2Fsunra%2Fphp-simple-html-dom-parser%2FREADME.md;h=945a68399f69febf7f1c4cab3e126c738f8a759c;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/sunra/php-simple-html-dom-parser/README.md b/vendor/sunra/php-simple-html-dom-parser/README.md new file mode 100644 index 000000000..945a68399 --- /dev/null +++ b/vendor/sunra/php-simple-html-dom-parser/README.md @@ -0,0 +1,41 @@ +php-simple-html-dom-parser +========================== + +Version 1.5.2 + +Adaptation for Composer and PSR-0 of: + +A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! +Require PHP 5+. +Supports invalid HTML. +Find tags on an HTML page with selectors just like jQuery. +Extract contents from HTML in a single line. + +http://simplehtmldom.sourceforge.net/ + + +Install +------- + + composer.phar +```json +"require": { + "sunra/php-simple-html-dom-parser": "1.5.2" + } +``` + +Usage +----- + +```php +use Sunra\PhpSimple\HtmlDomParser; + +... +$dom = HtmlDomParser::str_get_html( $str ); +or +$dom = HtmlDomParser::file_get_html( $file_name ); + +$elems = $dom->find($elem_name); +... + +```