a4c85c83c998213ac9c50045e752f05a98e130ed.svn-base 681 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. php-simple-html-dom-parser
  2. ==========================
  3. Version 1.5
  4. Adaptation for Composer and PSR-0 of:
  5. A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
  6. Require PHP 5+.
  7. Supports invalid HTML.
  8. Find tags on an HTML page with selectors just like jQuery.
  9. Extract contents from HTML in a single line.
  10. http://simplehtmldom.sourceforge.net/
  11. Install
  12. -------
  13. composer.phar require
  14. - package name: "sunra/php-simple-html-dom-parser": "dev-master"
  15. Usage
  16. -----
  17. ```php
  18. use Sunra\PhpSimple\HtmlDomParser;
  19. ...
  20. $dom = HtmlDomParser::str_get_html( $str );
  21. or
  22. $dom = HtmlDomParser::file_get_html( $file_name );
  23. $elems = $dom->find($elem_name);
  24. ...
  25. ```