itega/laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package

Maintainers

Package info

github.com/Itega/laravel-html-dom-parser

Homepage

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

Statistics

Installs: 115

Dependents: 0

Suggesters: 0

Stars: 0

v1.1 2018-03-06 10:55 UTC

This package is auto-updated.

Last update: 2026-03-01 00:27:45 UTC


README

Laravel wrapper for the PHP Simple HTML DOM Parser package

Instalation

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

Usage

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