laravel-html-dom-parser maintained by hungnm1518
Description
Laravel wrapper for the PHP Simple HTML DOM Parser package
Author
Last update
2025/06/19 15:11
(dev-master)
License
Downloads
1 092
Tags
laravel-html-dom-parser
Laravel wrapper for the PHP Simple HTML DOM Parser package
Instalation
Require this package with composer:
composer require hungnm1518/laravel-html-dom-parser
You need to add the service provider in app.php
HungNM\LaravelHtmlDomParser\ServiceProvider::class,
If you want to use the facade, add this to your facades in app.php
'HTMLDomParser' => HungNM\LaravelHtmlDomParser\Facade::class
Usage
$name = HTMLDomParser::str_get_html($html)->find('div.profile > span.name > span')[0]->plaintext;