Bundle around Simple HTML DOM library

Installs: 40 928

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 13

Open Issues: 2


dev-master 2013-12-07 15:31 UTC

This package is not auto-updated.

Last update: 2020-06-26 17:27:48 UTC


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.

Build Status


Installation is very easy, it makes use of Composer.

Add SimpleHtmlDomBundle to your composer.json

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

Register the bundle in app/AppKernel.php:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...

        new Erivello\SimpleHtmlDomBundle\ErivelloSimpleHtmlDomBundle(),


You can access the SimpleHtmlDomBundle by the simple_html_dom service:


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


// Find all links
foreach($parser->find('a') as $element) {
    echo $element->href . '<br/>';


The SimpleHtmlDomBundle is licensed under the MIT license.