PHPackages                             decodelabs/chirp - 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. decodelabs/chirp

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

decodelabs/chirp
================

Tweet parser

v0.10.5(8mo ago)2852MITPHPPHP ^8.4CI passing

Since Sep 25Pushed 2d ago2 watchersCompare

[ Source](https://github.com/decodelabs/chirp)[ Packagist](https://packagist.org/packages/decodelabs/chirp)[ RSS](/packages/decodelabs-chirp/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

Chirp
=====

[](#chirp)

[![PHP from Packagist](https://camo.githubusercontent.com/5b6f35487ad074ddcdcd29023762c7b14af7266fd9d02288e14c4c8a2526befe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f63686972703f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/chirp)[![Latest Version](https://camo.githubusercontent.com/beffb0cf29b302f9a4b3f68c3762120b446e5bf52c5473f8b276d6f964c430f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f63686972702e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/chirp)[![Total Downloads](https://camo.githubusercontent.com/098a29e18b7e2fd41e8c6a3c3d0b7b7a6a11ad64f08f23ebcd03881c0de620f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f63686972702e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/chirp)[![GitHub Workflow Status](https://camo.githubusercontent.com/43690ed61e040585beaefbc8656ceddf6918df750d1722ce5568e18cf7bb41eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465636f64656c6162732f63686972702f696e746567726174652e796d6c3f6272616e63683d646576656c6f70)](https://github.com/decodelabs/chirp/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/30459b5209d2848aed2f2648831a715df513511ccf56bbb31597455640105b21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f63686972703f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/chirp)

### Twitter tools for PHP

[](#twitter-tools-for-php)

Chirp provides a hand-rolled tweet parser allowing you to render imported tweets on your site without hassle.

---

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

[](#installation)

This package requires PHP 8.4 or higher.

Install via Composer:

```
composer require decodelabs/chirp
```

Usage
-----

[](#usage)

Parse a tweet into HTML:

```
use DecodeLabs\Chirp\Parser;

$parser = new Parser();
echo $parser->parse($myTweet);
```

### Metamorph

[](#metamorph)

Chirp also provides a [Metamorph](https://github.com/decodelabs/metamorph/) Handler so that it can be used via its simplified interface:

```
use DecodeLabs\Metamorph;

echo Metamorph::tweet($myTweet);
```

Output
------

[](#output)

The parsed HTML provided by Chirp is now wrapped in a `Markup` interface from the [Tagged](https://github.com/decodelabs/tagged/) library such that output is handled correctly in all rendering contexts.

Licensing
---------

[](#licensing)

Chirp is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance81

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity74

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

Every ~119 days

Recently: every ~37 days

Total

19

Last Release

266d ago

PHP version history (5 changes)v0.5.0PHP ^7.2

v0.6.0PHP ^7.2|^8.0

v0.8.0PHP ^8.0

v0.8.3PHP ^8.1

v0.10.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a241d64d12b3b5ee94197862ec1ec30b82ed2efa34a0cd7f4c3565a021daddd?d=identicon)[betterthanclay](/maintainers/betterthanclay)

---

Top Contributors

[![betterthanclay](https://avatars.githubusercontent.com/u/1273586?v=4)](https://github.com/betterthanclay "betterthanclay (143 commits)")

---

Tags

parserphptweethtmltwittermarkuptweet

### Embed Badge

![Health badge](/badges/decodelabs-chirp/health.svg)

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k28.6M199](/packages/league-html-to-markdown)[paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

2.4k7.9M123](/packages/paquettg-php-html-parser)[sunra/php-simple-html-dom-parser

Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.

1.3k9.4M61](/packages/sunra-php-simple-html-dom-parser)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[querypath/querypath

HTML/XML querying and processing (like jQuery)

8197.0M27](/packages/querypath-querypath)

PHPackages © 2026

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