2017 © Pedro Peláez
 

library simple-html-dom-parser

modify SimpleHtmlDom for laravel

image

royalmar/simple-html-dom-parser

modify SimpleHtmlDom for laravel

  • Saturday, May 6, 2017
  • by royalmar
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,003 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

SimpleHtmlDomParser

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

How to install

composer require royalmar/simple-html-dom-parser

Laravel Setup

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

'providers' => array(
    ...
    'Royalmar\HtmlDomParser\HtmlDomParserServiceProvider',

    //Laravel 5.1+
    Royalmar\HtmlDomParser\HtmlDomParserServiceProvider::class,
    ...

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

'aliases' => array( 
    ...
    'HtmlDomParser' => 'Royalmar\HtmlDomParser\HtmlDomParser',

    //Laravel 5.1+
    'HtmlDomParser' => Royalmar\HtmlDomParser\HtmlDomParser::class,
    ...

Usage

$parser = new \HtmlDomParser();
// get html dom from file
$html = $parser->fileGetHtml('http://www.google.com');
// get html dom from string
$html = $parser->strGetHtml('

Hello World, (*4)

'); //OR // get html dom from file $html = \HtmlDomParser::fileGetHtml('http://www.google.com'); // get html dom from string $html = \HtmlDomParser::strGetHtml('

Hello World, (*5)

');

The Versions

06/05 2017

dev-master

9999999-dev

modify SimpleHtmlDom for laravel

  Sources   Download

The Requires

  • php >=5.3.3

 

by Avatar royalmar

06/05 2017

1.0.2

1.0.2.0

modify SimpleHtmlDom for laravel

  Sources   Download

The Requires

  • php >=5.3.3

 

by Avatar royalmar

07/01 2017

1.0.1

1.0.1.0

modify SimpleHtmlDom for laravel

  Sources   Download

The Requires

  • php >=5.3.3

 

by Avatar royalmar

07/01 2017

1.0.0

1.0.0.0

modify SimpleHtmlDom for laravel

  Sources   Download

The Requires

  • php >=5.3.3

 

by Avatar royalmar