PHPackages                             pifeifei/html-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. pifeifei/html-parser

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

pifeifei/html-parser
====================

v1.0.1(5y ago)328MITPHPPHP ^5.5 | ^7.0CI failing

Since Sep 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pifeifei/html-parser)[ Packagist](https://packagist.org/packages/pifeifei/html-parser)[ RSS](/packages/pifeifei-html-parser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

HTML Web Page Extraction Title and Text
=======================================

[](#html-web-page-extraction-title-and-text)

### install:

[](#install)

```
composer require pifeifei/html-parser
```

### use:

[](#use)

```
use Pifeifei\HtmlParser;

$htmlParser = new HtmlParser();
$url = 'http://baijiahao.baidu.com/s?id=1644885607674637957';

$htmlParser->get($url);

dump($this->htmlParser->getTitle());
dump($this->htmlParser->getContent());
```

### explain:

[](#explain)

> For normal study only, do not use for illegal purposes. All consequences are borne by the developer, not by the developer.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Every ~302 days

Total

2

Last Release

2128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc216c7ee84b2ff2d6ce691374f620197be0247e723f043ef01007c92954c06f?d=identicon)[pifeifei](/maintainers/pifeifei)

---

Top Contributors

[![pifeifei](https://avatars.githubusercontent.com/u/45787170?v=4)](https://github.com/pifeifei "pifeifei (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pifeifei-html-parser/health.svg)

```
[![Health](https://phpackages.com/badges/pifeifei-html-parser/health.svg)](https://phpackages.com/packages/pifeifei-html-parser)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sproutcms/cms

Enterprise content management and framework

241.6k4](/packages/sproutcms-cms)

PHPackages © 2026

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