stounhandj / htmldom-laravel
Installs: 675
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/stounhandj/htmldom-laravel
Requires
- php: ^7.4 || ^8.0
This package is auto-updated.
Last update: 2025-10-07 02:22:18 UTC
README
### A package for Laravel 8, 7, 6, ^5.5 based on Simple HTML Dom ParserInstallation
$ composer require stounhandj/htmldom-laravel
Or
{ "require": { "stounhandj/htmldom-laravel": "^1.0.0" } }
Usage
- Use following:
use StounhandJ\HtmldomLaravel\Htmldom; $html = new Htmldom('https://www.example.com'); // Find all images foreach($html->find('img') as $element) echo $element->src . '<br>'; // Find all links foreach($html->find('a') as $element) echo $element->href . '<br>';
See the detailed documentation http://simplehtmldom.sourceforge.net/manual.htm