imanghafoori/php-token-analyzer
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...
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| theseer/tokenizer | 0.86 | 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 | |
| phpstan/phpstan-symfony | 0.86 | PHPStan extension for Symfony that provides accurate return types for the container, controllers, requests, responses, forms, serializer, cache, and other framework APIs, helping catch bugs earlier and improving static analysis in Symfony projects. | 806 | 809 | 107 | 4M | 60 | 55.2 | 86.3 | MIT | 1 week ago | |
| voku/phpstan-rules | 0.86 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 7K | 1 | 0.5 | 32.1 | MIT | — | |
| thecodingmachine/phpstan-safe-rule | 0.85 | PHPStan rule that detects calls to unsafe core PHP functions and suggests the thecodingmachine/safe variants, which throw exceptions instead of returning false on error. Helps catch unsafe function usage during static analysis. | 63 | 62 | 26 | 319K | 3 | 20.1 | 57.0 | — | 4 months ago | |
| shipmonk/phpstan-dev | 0.85 | Utilities for developing PHPStan rules: write expected errors directly in fixture files using // error: comments and avoid brittle line-number assertions. Includes an autofix mode to generate/update inline error comments during rule development. | 7 | 7 | 1 | 6K | 1 | 7.2 | 41.5 | MIT | 9 months ago | |
| phperf/phpunit | 0.85 | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 193 | 0 | 0.9 | 31.2 | NOASSERTION | 4 years ago | |
| jangregor/phpstan-prophecy | 0.85 | PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class. | 111 | 111 | 30 | 414K | 3 | 18.6 | 53.5 | MIT | 8 months ago | |
| psalm/psalm-plugin-api | 0.85 | Psalm plugin API providing interfaces and helpers to build and integrate custom plugins with the Psalm static analysis tool, enabling extensions such as new checks, type providers, and project-specific analysis behavior. | 1 | 0 | 0 | 262K | 0 | 0.0 | 55.3 | — | — | |
| slam/phpstan-extensions | 0.84 | PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts. | 71 | 72 | 13 | 42K | 2 | 21.8 | 43.2 | MIT | 5 months ago | |
| phpstan/extension-installer | 0.84 | Composer plugin that automatically discovers and installs PHPStan extensions, eliminating manual includes in phpstan.neon. Add it as a dev dependency, allow the plugin in Composer, and extensions can declare includes via extra.phpstan for auto-setup. | 516 | 520 | 31 | 6M | 1 | 8.2 | 55.2 | MIT | 2 years ago | |
| thecodingmachine/phpstan-strict-rules | 0.84 | Extra-strict PHPStan ruleset that flags risky or inconsistent PHP patterns beyond the default checks. Helps enforce cleaner, safer code by catching edge cases and enforcing best practices, with easy opt-in configuration for existing PHPStan setups. | 287 | 289 | 27 | 54K | 7 | 26.3 | 36.8 | — | 4 months ago | |
| phpstan/phpstan-webmozart-assert | 0.84 | PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy. | 185 | 185 | 33 | 639K | 5 | 12.3 | 50.1 | MIT | 1 year ago | |
| phpunit/php-token-stream | 0.84 | 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. | 6,370 | 6,392 | 58 | 2M | 0 | 26.7 | 33.6 | NOASSERTION | — | |
| 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 | |
| spiral/tokenizer | 0.84 | 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 | |
| michelf/php-markdown | 0.84 | michelf/php-markdown is a fast, standards-based Markdown parser for PHP (Markdown and Markdown Extra). Convert Markdown text to HTML with optional extended syntax, designed for easy embedding in apps and frameworks, with stable output and minimal setup. | 3,458 | 3,548 | 521 | 646K | 87 | 52.3 | 54.9 | NOASSERTION | — | |
| symplify/phpstan-extensions | 0.84 | Extra PHPStan rules and extensions from Symplify to improve static analysis of PHP projects. Adds better type inference and framework-aware checks, helping catch bugs earlier and keep codebases consistent with minimal configuration. | 39 | 39 | 5 | 281K | 0 | 0.4 | 53.1 | MIT | — | |
| php-http/psr7-integration-tests | 0.84 | A PHPUnit-based integration test suite for PSR-7 HTTP message implementations. It verifies requests, responses, streams, URIs, and headers against the PSR-7 specification, helping libraries like Guzzle, Laminas, Slim, and Nyholm ensure compliance. | 41 | 42 | 23 | 3K | 1 | 22.8 | 30.1 | MIT | 2 weeks ago | |
| imanghafoori/php-imports-analyzer | 0.84 | CLI tool to scan Composer-based PHP projects for unnecessary or incorrect use/import statements. Helps clean up imports and enforce coding standards across apps and open-source packages. Install as dev dependency or globally; run check_imports from your project root. | 21 | 22 | 1 | 8K | 0 | 0.1 | 35.7 | MIT | — | |
| drenso/phan-extensions | 0.84 | PhanExtensions provides plugins and stubs for Phan static analysis: Symfony annotation import checking, docblock @method/@throws usage, and inline var comment scanning. Includes stubs for curl, intl, ldap, pdo, radius, and sockets. Not actively maintained. | 17 | 18 | 4 | 22K | 0 | 3.4 | 30.2 | MIT | 5 years ago |
How can I help you explore Laravel packages today?