Download the PHP package ijortengab/parse-html without Composer
On this page you can find all versions of the php package ijortengab/parse-html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ijortengab/parse-html
More information about ijortengab/parse-html
Files in ijortengab/parse-html
Download ijortengab/parse-html
More information about ijortengab/parse-html
Files in ijortengab/parse-html
Vendor ijortengab
Package parse-html
Short Description parseHTML is PHP library working like jQuery, give you an easy way to get any information from text html.
License GPL
Package parse-html
Short Description parseHTML is PHP library working like jQuery, give you an easy way to get any information from text html.
License GPL
Please rate this library. Is it a good library?
Informations about the package parse-html
parseHTML
parseHTML is PHP library working like jQuery, give you an easy way to get any information from text html.
Requirement
PHP 5.4
Usage
If you familiar with jQuery, you'll be smile.
jQuery | parseHTML |
---|---|
document | $contents = file_get_contents('~/my.html'); |
$html = $(document); | $html = new parseHTML($contents); |
var title = $html.find('title').text(); | $title = $html->find('title')->text(); |
var url = $html.find('a.links').attr('href'); | $url = $html->find('a.links')->attr('href'); |
Method Support
Method | Description |
---|---|
::find() | http://api.jquery.com/find/ |
::html() | http://api.jquery.com/html/ |
::text() | http://api.jquery.com/text/ |
::attr() | http://api.jquery.com/attr/ |
::eq() | http://api.jquery.com/eq/ |
::getElementById() | https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById |
::getElementByClass() | https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName |
::getElementByTag() | https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName |
::getElementByAttribute() | https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Method/getElementsByAttribute |
Selector Support
You can find more description by visit this link http://api.jquery.com/category/selectors/
Selector | Example |
---|---|
ID selector | |
Class Selector | |
Element Selector | |
Descendant Selector | |
Child Selector | |
Attribute | |
Attribute Contains Prefix Selector | |
Attribute Contains Selector | |
Attribute Contains Word Selector | |
Attribute Ends With Selector | |
Attribute Equals Selector | |
Attribute Not Equal Selector | |
Attribute Starts With Selector |
Of course, you can mix all selector above, example:
-
form-register.front input
- a.links[ref='nofollow']
- div.office > span.address
and, you can get multiple selector, example:
- 'input, textarea, select, button'
Simlilar Project
All versions of parse-html with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package ijortengab/parse-html contains the following files
Loading the files please wait ....