tantoniazi / laravel-html-dom-parser
Fork Laravel wrapper for the PHP Simple HTML DOM Parser package
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 22
pkg:composer/tantoniazi/laravel-html-dom-parser
Requires
- php: >= 7.3
- kub-at/php-simple-html-dom-parser: ^1.9
This package is not auto-updated.
Last update: 2025-10-05 00:24:26 UTC
README
Laravel wrapper for the PHP Simple HTML DOM Parser package upgrade to php 8
Instalation
Require this package with composer:
composer require tantoniazi/laravel-html-dom-parser
You need to add the service provider in app.php
Tantoniazi\LaravelHtmlDomParser\ServiceProvider::class,
If you want to use the facade, add this to your facades in app.php
'HTMLDomParser' => Tantoniazi\LaravelHtmlDomParser\Facade::class
Usage
$name = HTMLDomParser::str_get_html($html)->find('div.profile > span.name > span')[0]->plaintext;