Search by

mushroomcloud / simple-html-dom-bundle

marcodf13

Bundle around Simple HTML DOM library

Package info

github.com/MushroomCloud/SimpleHtmlDomBundle

Type:symfony-bundle

pkg:composer/mushroomcloud/simple-html-dom-bundle

Statistics

Installs: 214

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0 2026-08-19 13:30 UTC

This package is auto-updated.

Last update: 2026-09-19 14:18:19 UTC


README

This bundle provides a simple integration of the Simple HTML DOM Parser into Symfony 3.4/4.0. 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.

Installation

Installation is very easy, it makes use of Composer.

Add SimpleHtmlDomBundle to your composer.json

    composer require mushroomcloud/simple-html-dom-bundle

Usage

You can access the SimpleHtmlDomBundle by the simple_html_dom service:

<?php

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

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

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

License

The SimpleHtmlDomBundle is licensed under the MIT license.