2017 © Pedro Peláez
 

symfony-bundle simple-html-dom-bundle

Bundle around Simple HTML DOM library

image

erivello/simple-html-dom-bundle

Bundle around Simple HTML DOM library

  • Saturday, December 7, 2013
  • by erivello
  • Repository
  • 2 Watchers
  • 8 Stars
  • 35,628 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 2 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

SimpleHtmlDomBundle

This bundle provides a simple integration of the Simple HTML DOM Parser into Symfony2. Simple HTML DOM Parser is a HTML DOM parser written in PHP5+ that let you manipulate HTML, find tags on an HTML page with selectors just like jQuery and extract contents from HTML., (*1)

Build Status, (*2)

Installation

Installation is very easy, it makes use of [Composer][2]., (*3)

Add SimpleHtmlDomBundle to your composer.json, (*4)

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

Register the bundle in app/AppKernel.php:, (*5)

``` php <?php // app/AppKernel.php, (*6)

public function registerBundles() { $bundles = array( // ..., (*7)

    new Erivello\SimpleHtmlDomBundle\ErivelloSimpleHtmlDomBundle(),
);

} ```, (*8)

Usage

You can access the SimpleHtmlDomBundle by the simple_html_dom service:, (*9)

``` php <?php, (*10)

$parser = $this->container->get('simple_html_dom');, (*11)

$parser->load('http://www.google.com/');, (*12)

// Find all links foreach($parser->find('a') as $element) { echo $element->href . 'br/'; } ````, (*13)

License

The SimpleHtmlDomBundle is licensed under the MIT license., (*14)

The Versions

07/12 2013

dev-master

9999999-dev https://github.com/erivello/SimpleHtmlDomBundle

Bundle around Simple HTML DOM library

  Sources   Download

MIT

The Requires

 

by Edoardo Rivello

php html dom

21/07 2013

dev-develop

dev-develop https://github.com/erivello/SimpleHtmlDomBundle

Bundle around Simple HTML DOM library

  Sources   Download

MIT

The Requires

 

by Edoardo Rivello

php html dom