PHPackages                             zjango/phtml - 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. zjango/phtml

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

zjango/phtml
============

simple\_html\_dom PHP Parser for Laravel

1.1.1(11y ago)0101MITPHP

Since Apr 17Pushed 11y ago2 watchersCompare

[ Source](https://github.com/zjango/Phtml)[ Packagist](https://packagist.org/packages/zjango/phtml)[ Docs](https://github.com/zjango/Phtml)[ RSS](/packages/zjango-phtml/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHtml
=====

[](#phtml)

========

Installation
============

[](#installation)

To install the package, simply add the following to your Laravel installation's `composer.json` file

```
"require": {
	"laravel/framework": "5.*",
	"zjango/phtml": "dev-master"
},
```

Run the usual `composer update` to pull the files. Then, add the following **Service Provider** to your `providers` array in your `config/app.php` config.

```
'providers' => array(
	...
	'Zjango\Phtml\PhtmlServiceProvider',
);
```

And finally add a new line to the aliases array:

```
		'Phtml'	=>	'Zjango\Phtml\Facades\Phtml',
```

Usage
=====

[](#usage)

```
		$html=Phtml::init('http://www.apple.com');
```

```
		$as = $html->find('a');
```

```
		$a = $html->find('a',0);
```

```
		$a = $html->find('a',-1);
```

```
		$a = $html->find('a',0);
		$href = $a->href();
		$text = $a->text();
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9677640?v=4)[zjango](/maintainers/zjango)[@zjango](https://github.com/zjango)

---

Top Contributors

[![zjango](https://avatars.githubusercontent.com/u/9677640?v=4)](https://github.com/zjango "zjango (1 commits)")

### Embed Badge

![Health badge](/badges/zjango-phtml/health.svg)

```
[![Health](https://phpackages.com/badges/zjango-phtml/health.svg)](https://phpackages.com/packages/zjango-phtml)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
