2017 © Pedro Peláez
 

library simple-html-dom

SimpleHtmlDom for Laravel 5

image

cucxabeng/simple-html-dom

SimpleHtmlDom for Laravel 5

  • Friday, March 25, 2016
  • by cucxabeng
  • Repository
  • 1 Watchers
  • 1 Stars
  • 663 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 43 % Grown

The README.md

simple-html-dom

Add library Simple html dom to Laravel 5. More document: http://simplehtmldom.sourceforge.net/, (*1)

Installation

Add the following line to the require section of composer.json:, (*2)

{
    "require": {
        "cucxabeng/simple-html-dom": "dev-master"
    }
}

Laravel Setup

Add the service provider to config/app.php:, (*3)

'providers' => array(
    ...
    'cucxabeng\HtmlDom\HtmlDomServiceProvider',

    //Laravel 5.1
    'cucxabeng\HtmlDom\HtmlDomServiceProvider::class',
    ...

Add alias to config/app.php:, (*4)

'aliases' => array( 
    ...
    'HtmlDom' => 'cucxabeng\HtmlDom\HtmlDom',

    //Laravel 5.1
    'HtmlDom' => 'cucxabeng\HtmlDom\HtmlDom::class',
    ...

Usage

$dom = new HtmlDom('http://www.example.com');
//or
$dom = new HtmlDom('<p>Hello</p>');

The Versions

25/03 2016

dev-master

9999999-dev

SimpleHtmlDom for Laravel 5

  Sources   Download

The Requires

  • php >=5.3.3

 

by HaiDang