Skip to content

Laravel wrapper for the PHP Simple HTML DOM Parser package

License

Notifications You must be signed in to change notification settings

tantoniazi/laravel-html-dom-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package upgrade to php 8

Instalation

Require this package with composer:

composer require tantoniazi/laravel-html-dom-parser

You need to add the service provider in app.php

Tantoniazi\LaravelHtmlDomParser\ServiceProvider::class,

If you want to use the facade, add this to your facades in app.php

'HTMLDomParser' => Tantoniazi\LaravelHtmlDomParser\Facade::class

Usage

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

About

Laravel wrapper for the PHP Simple HTML DOM Parser package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%