Skip to content
Laravel wrapper for the PHP Simple HTML DOM Parser package
Branch: master
Clone or download
Ammadeuss Raducan Ammadeuss Raducan
Ammadeuss Raducan and Ammadeuss Raducan fix composer.json
Latest commit 2dcb4f6 Mar 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes Initial commit Mar 1, 2017
Facade.php update composer.json, typo service provider key Mar 6, 2018
LICENSE Initial commit Mar 1, 2017
README.md Initial commit Mar 1, 2017
ServiceProvider.php update composer.json, typo service provider key Mar 6, 2018
composer.json fix composer.json Mar 6, 2018

README.md

laravel-html-dom-parser

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;
You can’t perform that action at this time.