New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

fahmiardi/htmldom

Simple Html Dom Parser for Laravel 4
1,202

Larablocks Analysis

fahmiardi/htmldom works with any PHP project: the latest release (1.0, May 6, 2015) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: May 6, 2015)
  • 2 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: May 6, 2015.
  • No releases in the last 12 months.
  • First released: May 6, 2015.
  • Monthly downloads: 2.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require fahmiardi/htmldom
Latest Version:1.0
PHP:>=5.3.0
License:MIT
Last Updated:May 6, 2015
Links: GitHub  ·  Packagist
Maintainer: fahmiardi

Htmldom

A Htmldom package for Laravel 4 and 5 based on Simple HTML Dom Parser

Installation

Add the following line to the require section of composer.json:

{
    "require": {
        "yangqi/htmldom": "dev-master"
    }
}

Laravel 5 Setup (same as Laravel 4)

  1. Add the service provider to config/app.php.
'providers' => array(
    ...
	'Yangqi\Htmldom\HtmldomServiceProvider',
    ...
  1. Add alias to config/app.php.
'aliases' => array(	
    ...
	'Htmldom' => 'Yangqi\Htmldom\Htmldom',
    ...

Usage

  1. Use following:
$html = new \Htmldom('http://www.example.com');

// Find all images 
foreach($html->find('img') as $element) 
       echo $element->src . '<br>';

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

See the detailed documentation http://simplehtmldom.sourceforge.net/manual.htm

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP License
1.0 >=5.3.0 MIT