hungnm1518/laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package
1,169
Install
composer require hungnm1518/laravel-html-dom-parser
Latest Version:1.3.3
PHP:^8.0
Laravel:8 – 12
License:MIT
Last Updated:Jun 19, 2025
Links: GitHub  ·  Packagist
Maintainer: hungnm144

laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package

Instalation

Require this package with composer:

composer require hungnm1518/laravel-html-dom-parser

You need to add the service provider in app.php

HungNM\LaravelHtmlDomParser\ServiceProvider::class,

If you want to use the facade, add this to your facades in app.php

'HTMLDomParser' => HungNM\LaravelHtmlDomParser\Facade::class

Usage

$name = HTMLDomParser::str_get_html($html)->find('div.profile > span.name > span')[0]->plaintext;

Documents

https://simplehtmldom.sourceforge.io/docs/1.9/requirements/

Related Packages

ammadeuss/laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package

367,673 37
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609

Version History

Version Released PHP Laravel License
1.3.3 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.3.2 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
v1.3.1 ^8.0 ^8.0|^9.0|^10.0 MIT
v1.3 >=8.0 ^8.0|^9.0 MIT
v1.2.1 >=7.4 ^8.0 MIT