Laravel wrapper for the PHP Simple HTML DOM Parser package
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
$name = HTMLDomParser::str_get_html($html)->find('div.profile > span.name > span')[0]->plaintext;