hungnm1518/laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package

Installs: 994

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 22

Open Issues: 0

pkg:composer/hungnm1518/laravel-html-dom-parser

1.3.3 2025-06-19 13:11 UTC

This package is auto-updated.

Last update: 2025-10-19 14:04:11 UTC


README

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/