ammadeuss/laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package
366,800 37
Install
composer require ammadeuss/laravel-html-dom-parser
Latest Version:v1.1
PHP:>=5.6
License:MIT
Last Updated:Sep 4, 2019
Links: GitHub  ·  Packagist
Maintainer: ammadeuss

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;

Related Packages

maystro/filament-popup-modal

A comprehensive modal dialog system for FilamentPHP with progress bars, callback...

8 1
wobeto/twitter

Laravel 4 Service Provider to interact with twitter account, like return a colle...

135 1
andrewmclagan/api

A RESTful API package for the Laravel and Lumen frameworks.

18 0