phpunit/php-token-stream
phpunit/php-token-stream is a small PHP library for tokenizing and streaming PHP source code tokens, commonly used by PHPUnit and related tools for parsing, reflection-like inspection, and test-related code analysis.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpunit/php-invoker | 0.87 | phpunit/php-invoker is a small utility for safely invoking callables with time limits. Commonly used by PHPUnit to run tests and other code with a timeout, helping prevent hangs while keeping execution and error handling predictable. | 1,352 | 1,359 | 18 | 15M | 1 | 13.8 | 58.2 | BSD-3-Clause | 9 months ago | |
| theseer/tokenizer | 0.84 | A PHP tokenizer library for parsing PHP source code into tokens, built on top of ext/tokenizer. Used by tools like PHPUnit to analyze code, inspect syntax, and support static analysis, refactoring, and code quality workflows. | 5,192 | 5,205 | 25 | 14M | 0 | 30.8 | 48.4 | NOASSERTION | 10 months ago | |
| imanghafoori/php-token-analyzer | 0.84 | Analyzes PHP code tokens without execution—like reflection but pure PHP. Framework-agnostic, lightweight dependency extracted from Laravel-Microscope. Supports PHP 7.4+ with automated tests for accuracy. Extract class/method details, token types, and structure effortlessly. Ideal for static analysis... | 16 | 16 | 4 | 9K | 0 | 0.6 | 37.7 | — | 4 years ago | |
| phpstan/phpdoc-parser | 0.84 | phpstan/phpdoc-parser parses PHPDocs into a typed AST so you can read and modify docblocks programmatically. It handles rich types like unions, generics, array shapes, callables, and conditional types, plus Doctrine annotations. Powers PHPStan. | 1,541 | 1,540 | 79 | 20M | 6 | 42.4 | 71.7 | MIT | 1 week ago | |
| nikic/php-parser | 0.84 | A PHP parser written in PHP that converts PHP 7/8 code into an abstract syntax tree, with tools for dumping, traversing, modifying, and regenerating code, plus name resolution and builders for static analysis and code generation. | 17,466 | 17,540 | 1,145 | 31M | 47 | 83.5 | 79.3 | BSD-3-Clause | 1 month ago | |
| phootwork/tokenizer | 0.84 | Phootwork Tokenizer wraps PHP's native token_get_all in an object-oriented API, splitting source code into tokens you can filter, map, and inspect by type, name, or value. A practical foundation for code analysis, formatting, and refactoring tools. | 2 | — | 1 | — | 0 | 0.0 | — | MIT | 2 years ago |
|
| phpstan/phpstan-php-parser | 0.84 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| covex-nn/phpqatools | 0.83 | — | 4 | 5 | 0 | 0 | 0 | 0.0 | — | — | — | |
| phpfui/phpunit-syntax-coverage | 0.83 | A PHPUnit extension that measures PHP syntax coverage, showing which language constructs and parser nodes your test suite actually exercises. Use it to spot untested syntax like new operators, match expressions, or traits, then close those gaps with focused tests. | 2 | 3 | 0 | 154 | 0 | 15.7 | 27.0 | MIT | 2 months ago | |
| phpunit/php-text-template | 0.83 | A tiny, dependency-free templating library used internally by PHPUnit. Render text with {placeholder} syntax using an associative array of values. Battle-tested and simple, it suits report generation, log formatting, and other human-readable output where a full template engine would be overkill. | 7,425 | 7,438 | 30 | 26M | 1 | 45.4 | 56.9 | BSD-3-Clause | 1 month ago | |
| phpdocumentor/reflection | 0.83 | Static PHP code reflection library that parses one or more files (no execution) to build an object graph of your application's structure, including DocBlocks. Supports analyzing PHP versions from 5.2 up to your installed PHP version; useful for reflecting whole projects. | 124 | 126 | 60 | 907K | 8 | 26.3 | 60.9 | MIT | 5 months ago | |
| microsoft/tolerant-php-parser | 0.83 | Tolerant PHP parser from Microsoft that builds an AST even from incomplete or syntactically invalid code. Ideal for IDEs, refactoring tools, and static analysis, with error recovery and precise source positions for tokens and nodes. | 895 | 896 | 84 | 204K | 54 | 23.3 | 52.3 | MIT | — | |
| spiral/tokenizer | 0.83 | Fast PHP tokenizer for discovering classes, interfaces, traits, and functions without loading files. Scans directories, parses source code, and builds a registry for runtime reflection, DI containers, and framework bootstrapping—lightweight and cache-friendly. | 18 | 18 | 5 | 756K | 0 | 5.3 | 55.3 | MIT | 6 years ago | |
| ircmaxell/php-c-parser | 0.83 | Parse C source files into an AST in PHP (PHP 8.4+), including preprocessing resolution. Use a Context to set #define values (ints, strings, identifiers) before parsing. Great for analysis tools, code inspection, and experimentation. | 43 | 44 | 7 | 237 | 4 | 11.9 | 13.3 | MIT | 6 months ago | |
| rajentrivedi/tokenizer-x | 0.83 | Tokenizer X is a Laravel package for generating and managing secure, unique tokens in your application. Use it for API authentication, email verification, password resets, and similar flows, with configurable token length and expiry. | 91 | — | 9 | — | 0 | 1.6 | 1.5 | MIT | 2 years ago | |
| sstalle/php7cc | 0.83 | — | 1,507 | 1,456 | 121 | 1K | 20 | 18.9 | 10.6 | MIT | 9 years ago | |
| symplify/simple-php-doc-parser | 0.83 | Simple PHP Doc Parser by Symplify is a lightweight library for reading PHP docblocks. It extracts comments, tags, and annotations from classes, methods, and properties through a simple API, making PHPDoc data easy to use in static analysis, code generation, and documentation tools. | 0 | 24 | — | 480 | — | 0.0 | 37.1 | — | — | |
| phpcsstandards/phpcsutils | 0.82 | PHPCSUtils is a suite of utility functions for PHP_CodeSniffer, giving standard authors reliable, backward-compatible helpers for token handling, sniff testing, and cross-version support. Integrates via Composer or manually; PHP 5.4 to 8.5. | 63 | 63 | 10 | 4M | 25 | 30.3 | 70.3 | LGPL-3.0 | 3 months ago | |
| php-static-analysis/phpstan-extension | 0.82 | A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. | 15 | 15 | 0 | 2K | 0 | 0.1 | 30.0 | MIT | 1 year ago | |
| prinsfrank/phpstan-doc-code-analyzer | 0.82 | Analyze and validate PHP code examples in your documentation using PHPStan. This package scans doc blocks and docs for code snippets, runs static analysis, and helps catch outdated or incorrect examples early in CI. | 2 | 2 | 0 | 2K | 0 | 1.0 | 38.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?