You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPHtmlParser is a simple, flexible, html parser which allows you to select tags using any css selector, like jQuery. The goal is to assist in the development of tools which require a quick, easy way to scrap html, whether it's valid or not!
9
5
6
+
Due to being abandoned by the original developer, I have decided to fork it and maintain minimal functionality of this library in light of ongoing changes in the PHP language.
7
+
10
8
Install
11
9
-------
12
10
13
11
Install the latest version using composer.
14
12
15
13
```bash
16
-
$ composer require paquettg/php-html-parser
14
+
$ composer require baseciq/php-html-parser
17
15
```
18
16
19
-
This package can be found on [packagist](https://packagist.org/packages/paquettg/php-html-parser) and is best loaded using [composer](http://getcomposer.org/). We support php 7.2, 7.3, and 7.4.
17
+
This package can be found on [packagist](https://packagist.org/packages/baseciq/php-html-parser) and is best loaded using [composer](http://getcomposer.org/). We support php 7.2, 7.3, and 7.4.
20
18
21
19
Basic Usage
22
20
-----
@@ -36,13 +34,6 @@ echo $a->text; // "click here"
36
34
37
35
The above will output "click here". Simple, no? There are many ways to get the same result from the DOM, such as `$dom->getElementsbyTag('a')[0]` or `$dom->find('a', 0)`, which can all be found in the tests or in the code itself.
38
36
39
-
Support PHP Html Parser Financially
40
-
--------------
41
-
42
-
Get supported Monolog and help fund the project with the [Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-paquettg-php-html-parser?utm_source=packagist-paquettg-php-html-parser&utm_medium=referral&utm_campaign=enterprise).
43
-
44
-
Tidelift delivers commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
0 commit comments