PHPackages                             sebastian/phptok - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/phptok

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

sebastian/phptok
================

Tool for quickly dumping the tokens of a PHP sourcecode file

1.0.0(11y ago)3212BSD-3-ClausePHPPHP &gt;=5.4

Since Mar 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sebastianbergmann/phptok)[ Packagist](https://packagist.org/packages/sebastian/phptok)[ Docs](https://github.com/sebastianbergmann/phptok)[ RSS](/packages/sebastian-phptok/feed)WikiDiscussions master Synced today

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

phptok
======

[](#phptok)

`phptok` is a tool for quickly dumping the tokens of a PHP sourcecode file.

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

[](#installation)

### PHP Archive (PHAR)

[](#php-archive-phar)

The easiest way to obtain phptok is to download a [PHP Archive (PHAR)](http://php.net/phar) that has all required dependencies of phptok bundled in a single file:

```
wget https://phar.phpunit.de/phptok.phar
chmod +x phptok.phar
mv phptok.phar /usr/local/bin/phptok

```

You can also immediately use the PHAR after you have downloaded it, of course:

```
wget https://phar.phpunit.de/phptok.phar
php phptok.phar

```

### Composer

[](#composer)

Simply add a dependency on `sebastian/phptok` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project. Here is a minimal example of a `composer.json` file that just defines a development-time dependency on phptok:

```
{
    "require-dev": {
        "sebastian/phptok": "*"
    }
}

```

For a system-wide installation via Composer, you can run:

```
composer global require 'sebastian/phptok=*'

```

Make sure you have `~/.composer/vendor/bin/` in your path.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

4136d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1089?v=4)[Sebastian Probst Eide](/maintainers/sebastian)[@sebastian](https://github.com/sebastian)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (9 commits)")[![kukulich](https://avatars.githubusercontent.com/u/260445?v=4)](https://github.com/kukulich "kukulich (1 commits)")

### Embed Badge

![Health badge](/badges/sebastian-phptok/health.svg)

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

###  Alternatives

[testo/testo

A lightweight PHP testing framework.

1959.3k55](/packages/testo-testo)

PHPackages © 2026

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