fahmiardi/htmldom
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 advisedNot 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 |
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)
- Add the service provider to
config/app.php.
'providers' => array(
...
'Yangqi\Htmldom\HtmldomServiceProvider',
...
- Add alias to
config/app.php.
'aliases' => array(
...
'Htmldom' => 'Yangqi\Htmldom\Htmldom',
...
Usage
- 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
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0 | >=5.3.0 | MIT |