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

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

sachinsinghshekhawat/simple-html-parser-php
===========================================

Simple HTML parser for PHP

1.1.5(8y ago)1179MITHTMLPHP &gt;=5.6.32

Since Feb 10Pushed 8y agoCompare

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

READMEChangelog (7)DependenciesVersions (9)Used By (0)

simple-html-dom-parser-php
--------------------------

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

Version 1.1.5

Supports PHP &gt;=5.6.32 Adaptation for Composer and PSR-0 of: Its a HTML dom parser for PHP, you can either process a URL or HTML string, given function will return a DOM object, which can be used for further processing.

To get DOM object from a URL, use function file\_get\_html():

```
	$dom = HTMLParser::file_get_html("https://google.com");

```

To get DOM object from a string, use function str\_get\_html():

```
	$dom = HTMLParser::str_get_html("");

```

Install
-------

[](#install)

composer require sachinsinghshekhawat/simple-html-parser-php 1.1.5

Run "composer require sachinsinghshekhawat/simple-html-parser-php 1.1.5" in your project and ready to go. You can replace last argument with any of the version available.

Usage
-----

[](#usage)

```
