PHP Scrapper is an HTML DOM parser written in PHP, enabling easy manipulation of HTML content. It is derived from the PHP Simple HTML DOM Parser project. Additionally, the PHP Scrapper library aids in data extraction from websites by utilizing specified URLs and content elements.
composer require webvision/php-webv-parser
use WebVision\Scrapper;
...
$dom = Scrapper::str_get_html( $string );
$elems = $dom->find($ele);
...