PHPackages                             monashee/php-simple-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. monashee/php-simple-html-dom-parser

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

monashee/php-simple-html-dom-parser
===================================

Laravel wrapper for the PHP Simple HTML DOM Parser package.

319.4k1[1 issues](https://github.com/DerekMarcinyshyn/php-simple-html-dom-parser/issues)PHP

Since Oct 2Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel PHP Simple HTML DOM Parser
==================================

[](#laravel-php-simple-html-dom-parser)

[![Build Status](https://camo.githubusercontent.com/e4bdeedd99e057d72c9aa0be9f148954920c7a085c837c89c5a95dc02479a8b5/68747470733a2f2f7472617669732d63692e6f72672f446572656b4d617263696e797368796e2f7068702d73696d706c652d68746d6c2d646f6d2d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DerekMarcinyshyn/php-simple-html-dom-parser)

Thin wrapper for  and provides the two public static functions

`php file_get_html() ` and `php str_get_html() `

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

[](#installation)

Requires

- PHP 5.4+
- Laravel 4.2+

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

```
"monashee/php-simple-html-dom-parser": "dev-master"
```

Then run `php composer update `

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

```
'Monashee\PhpSimpleHtmlDomParser\PhpSimpleHtmlDomParserServiceProvider',
```

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

[](#sample-usage)

You could create an alias, but I prefer the DI method.

```
