ammadeuss / laravel-html-dom-parser by ammadeuss

Laravel wrapper for the PHP Simple HTML DOM Parser package
354,494
37
4
Package Data
Maintainer Username: ammadeuss
Maintainer Contact: raducan@ammadeuss.ro (Ammadeuss Raducan)
Package Create Date: 2017-02-14
Package Last Update: 2019-09-04
Language: PHP
License: MIT
Last Refreshed: 2024-04-12 03:11:03
Package Statistics
Total Downloads: 354,494
Monthly Downloads: 268
Daily Downloads: 5
Total Stars: 37
Total Watchers: 4
Total Forks: 24
Total Open Issues: 5

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;