2017 © Pedro Peláez
 

library php-simple-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package.

image

monashee/php-simple-html-dom-parser

Laravel wrapper for the PHP Simple HTML DOM Parser package.

  • Thursday, October 2, 2014
  • by monashee
  • Repository
  • 1 Watchers
  • 3 Stars
  • 5,076 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Laravel PHP Simple HTML DOM Parser

Build Status, (*1)

Thin wrapper for http://simplehtmldom.sourceforge.net/ and provides the two public static functions, (*2)

php file_get_html() and php str_get_html(), (*3)

Installation

Requires, (*4)

  • PHP 5.4+
  • Laravel 4.2+

Install via Composer by adding the following line to the require block of your composer.json file, (*5)

"monashee/php-simple-html-dom-parser": "dev-master"

Then run php composer update, (*6)

Add this line to the providers array in your php app/config/app.php file:, (*7)

'Monashee\PhpSimpleHtmlDomParser\PhpSimpleHtmlDomParserServiceProvider',

Sample Usage

You could create an alias, but I prefer the DI method., (*8)


<?php use Monashee\PhpSimpleHtmlDomParser\PhpSimpleHtmlDomParser; class Test { /** * @var PhpSimpleHtmlDomParser */ protected $parser; /** * @param PhpSimpleHtmlDomParser $parser */ public function __construct(PhpSimpleHtmlDomParser $parser) { $this->parser = $parser; } public function getHtml() { $html = $this->parser->file_get_html('http://monasheemountainmultimedia.com'); dd($html); } }

The Versions

02/10 2014

dev-master

9999999-dev

Laravel wrapper for the PHP Simple HTML DOM Parser package.

  Sources   Download

MIT

The Requires

 

by Avatar monashee

laravel php simple html dom parser