PHPackages                             ganbarodigital/php-token-streams - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ganbarodigital/php-token-streams

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ganbarodigital/php-token-streams
================================

1.0.2(10y ago)033BSD-3-ClausePHPPHP &gt;= 5.5

Since Jul 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ganbarodigital/php-token-streams)[ Packagist](https://packagist.org/packages/ganbarodigital/php-token-streams)[ RSS](/packages/ganbarodigital-php-token-streams/feed)WikiDiscussions develop Synced 1mo ago

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

PHP Token Streams
=================

[](#php-token-streams)

[![GitHub license](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://raw.githubusercontent.com/ganbarodigital/php-token-streams/develop/LICENSE.md)[![@ganbarodigital on Twitter](https://camo.githubusercontent.com/cfe3f6e7ae9c18f66fa57bed843790e668bd3ac88417017dfe9f45d8f0296cb9/687474703a2f2f696d672e736869656c64732e696f2f62616467652f747769747465722d25343067616e6261726f6469676974616c2d626c75652e7376673f7374796c653d666c6174)](https://twitter.com/ganbarodigital)[![Total Downloads](https://camo.githubusercontent.com/41430ee3e92b1104c226407b068838f7c6d2e4c87ecd373db1c1f44bd7996f47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67616e6261726f6469676974616c2f7068702d746f6b656e2d73747265616d732e7376673f7374796c653d666c6174)](https://packagist.org/packages/ganbarodigital/php-token-streams)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8a3f28fbad0898cac01866816dac7f16f9cef3a386967e53b73f9673f3bd5e5c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67616e6261726f6469676974616c2f7068702d746f6b656e2d73747265616d732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ganbarodigital/php-token-streams/?branch=master)[![Build Status](https://camo.githubusercontent.com/077a489f52edac48a1e266a707c91e93b560509c8fcd4652cf412bc72c245ca7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67616e6261726f6469676974616c2f7068702d746f6b656e2d73747265616d732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ganbarodigital/php-token-streams/build-status/master)[![Coverage Status](https://camo.githubusercontent.com/f7c18942034e9f78f4e79129170356f888890f1a585f0438c43e8f6dbd55b2af/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f67616e6261726f6469676974616c2f7068702d746f6b656e2d73747265616d732f62616467652e737667)](https://coveralls.io/r/ganbarodigital/php-token-streams)[![Dependency Status](https://camo.githubusercontent.com/849b0b526d97bd007feefbf64e60d2e21da4d9ec6038d6f7f78d10c74d5b5218/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f67616e6261726f6469676974616c3a7068702d746f6b656e2d73747265616d732f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/ganbarodigital:php-token-streams/dev-master)[![Reference Status](https://camo.githubusercontent.com/4a8356be0479ccac13e6783a0e8c9cb4caf2463cf22a4c1c6b059e2642e97de0/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f67616e6261726f6469676974616c3a7068702d746f6b656e2d73747265616d732f7265666572656e63655f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/php/ganbarodigital:php-token-streams/references)

Introduction
------------

[](#introduction)

The PHP Token Streams library provides an easy-to-use tokenising stream library that you can quickly drop into your own project to save you time and effort.

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

[](#installation)

Run this command to add php-token-streams to your `composer.json` file:

```
composer require ganbarodigita/php-token-streams

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~27 days

Total

3

Last Release

3893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc3934d5c3ce55e18dca95d52b564fb2a34986770af3c532dba6c248ef58f3a?d=identicon)[stuartherbert](/maintainers/stuartherbert)

---

Top Contributors

[![stuartherbert](https://avatars.githubusercontent.com/u/7926?v=4)](https://github.com/stuartherbert "stuartherbert (45 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ganbarodigital-php-token-streams/health.svg)

```
[![Health](https://phpackages.com/badges/ganbarodigital-php-token-streams/health.svg)](https://phpackages.com/packages/ganbarodigital-php-token-streams)
```

PHPackages © 2026

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