PHPackages                             growthexponent/laravel-html-dom-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. growthexponent/laravel-html-dom-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

growthexponent/laravel-html-dom-parser
======================================

Laravel wrapper for the PHP HTML DOM Parser package.

v1.0.6(10y ago)42612[1 issues](https://github.com/growthexponent/laravel-html-dom-parser/issues)MITPHPPHP &gt;=5.5.9

Since Sep 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/growthexponent/laravel-html-dom-parser)[ Packagist](https://packagist.org/packages/growthexponent/laravel-html-dom-parser)[ RSS](/packages/growthexponent-laravel-html-dom-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Laravel wrapper for the PHP HTML DOM Parser package.
====================================================

[](#laravel-wrapper-for-the-php-html-dom-parser-package)

Thin wrapper for  and provides the public function

```
$proxy = "120.195.203.43:80";
$proxy = explode(':', $proxy);
loadFromUrlByProxy($url, $options = [], CurlInterface $curl = null, $proxy = null)
```

Installation
------------

[](#installation)

Requires

- PHP 5.4+
- Laravel 5.1+

Install via Composer by adding the following line to the require block of your composer.json file

```
"growthexponent/laravel-html-dom-parser": "1.0.*"
```

Then run `php composer update `

Add this line to the providers array in your `php app/config/app.php ` file:

```
'LaravelHtmlDomParser\LaravelHtmlDomParserServiceProvider',
```

Sample Usage
------------

[](#sample-usage)

```
