ammadeuss / laravel-html-dom-parser
Laravel wrapper for the PHP Simple HTML DOM Parser package
Installs: 358 205
Dependents: 1
Suggesters: 0
Security: 0
Stars: 38
Watchers: 4
Forks: 22
Open Issues: 5
Requires
- php: >=5.6
- illuminate/support: ^5.2
- sunra/php-simple-html-dom-parser: ^1.5
This package is not auto-updated.
Last update: 2024-11-12 20:47:52 UTC
README
Laravel wrapper for the PHP Simple HTML DOM Parser package
Instalation
Require this package with composer:
composer require ammadeuss/laravel-html-dom-parser
You need to add the service provider in app.php
Ammadeuss\LaravelHtmlDomParser\ServiceProvider::class,
If you want to use the facade, add this to your facades in app.php
'HTMLDomParser' => Ammadeuss\LaravelHtmlDomParser\Facade::class
Usage
$name = HTMLDomParser::str_get_html($html)->find('div.profile > span.name > span')[0]->plaintext;