nikic/php-parser
Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support...
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2a/symfony-performance-analyzer | — | 1 | 1 | 0 | 0 | 1 | 0.7 | — | — | 1 year ago | |
| adheart/logging | — | 0 | 0 | 0 | 10 | 1 | 0.1 | 14.4 | — | — | |
| adriansuter/php-autoload-override | Override fully qualified global function calls inside class methods so you can mock them in tests. Works with PHP 8.2+ and Composer PSR-4 autoloading; integrates via a PHPUnit bootstrap using OverrideFactory to map functions (e.g., rand) to real implementations. | 22 | 23 | 3 | 3K | 0 | 21.1 | 34.4 | MIT | 1 month ago | |
| adrienlbt/hexagonal-maker-bundle | Symfony MakerBundle extension that scaffolds Hexagonal Architecture use cases. Generates a UseCase class plus Request/Response DTOs and a Presenter interface in a clean Domain folder structure, with optional configurable layer paths. | 3 | 4 | 1 | 0 | 0 | 0.0 | — | — | — | |
| ahmed-bhs/doctrine-doctor | Doctrine Doctor is a runtime analysis tool for Doctrine ORM integrated into the Symfony Web Profiler. It detects real-world issues like N+1 queries, slow queries, missing indexes, hydration overhead, and injection risks, with actionable backtraces and suggestions. | 92 | 92 | 7 | 3K | 14 | 28.4 | 31.0 | MIT | 2 months ago | |
| ajthinking/archetype | Laravel package for defining and instantiating “archetypes” to generate consistent model data and fixtures. Helps standardize defaults, variations, and seeding/test setup by composing reusable templates for your app’s entities. | 272 | 272 | 19 | 140K | 2 | 11.3 | 37.4 | — | 2 years ago | |
| alvadi-it/translation-bundle | — | 0 | 0 | 0 | 30 | 0 | 2.1 | 20.6 | — | 1 year ago | |
| amashukov/rector-php-rules | — | 0 | 0 | 0 | 287 | 0 | 0.0 | 33.5 | MIT | — | |
| amoifr/phpquality-bundle | — | 3 | 3 | 0 | 2 | 0 | 0.0 | 2.4 | — | — | |
| api-platform/schema-generator | CLI tool from API Platform that generates PHP class models from vocabularies like Schema.org and ActivityStreams, or from OpenAPI specs. Quickly scaffold types and properties into a ready-to-use PHP codebase for APIs and domain models. | 471 | 473 | 108 | 67K | 25 | 35.7 | 42.7 | MIT | 4 months ago | |
| apigen/apigen | ApiGen generates smart, readable API documentation for PHP projects. Modern, easy to use, and supports PHP 8.3 features plus rich phpDoc/ PHPStan types, generics, type aliases, enums, union/intersection types, readonly, and more. | 2,167 | 2,187 | 307 | 1K | 21 | 35.5 | 10.4 | NOASSERTION | 3 years ago | |
| area17/phptorch | A lightweight PHP binding for Torch (PyTorch/libtorch), letting you run tensor operations and neural-network inference from PHP. Aimed at simple ML tasks and experimentation, with minimal API surface and straightforward integration in PHP projects. | 2 | 2 | 1 | 418 | 0 | 0.0 | 29.7 | — | — | |
| artflow-studio/laravel-security | — | 0 | 0 | 0 | 206 | 0 | 0.0 | 32.0 | MIT | — | |
| b2pweb/bdf-prime | — | 3 | 3 | 0 | 393 | 0 | 0.6 | 29.1 | MIT | — | |
| baudev/php-object-converter-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 7 years ago | |
| bensampo/laravel-enum | Laravel Enum provides a powerful enum implementation for Laravel with class-constant definitions, instantiation, casting, validation, localization, bitwise/flag enums, and an artisan generator. Not recommended for new projects—use native PHP 8.1 enums. | 2,029 | 2,044 | 159 | 318K | 1 | 15.0 | 30.2 | MIT | — | |
| bnomei/scip-laravel | — | 0 | 0 | 0 | 289 | 0 | 0.0 | 34.0 | MIT | — | |
| bornfight/jsonapi-documentation | — | 3 | 3 | 0 | 65 | 5 | 2.2 | 18.1 | MIT | 5 years ago | |
| boshurik/mapper-bundle | — | 1 | 1 | 0 | 13 | 0 | 11.2 | 12.8 | — | 7 months ago | |
| bottelet/translation-checker | Laravel dev tool to scan your code for translation strings, detect missing keys in lang files (JSON/PHP), and sync them across locales. Optionally use AI to auto-translate missing entries; otherwise adds null placeholders to keep files consistent. | 131 | 131 | 8 | 3K | 2 | 17.3 | 21.4 | MIT | 5 months ago | |
| boundwize/structarmed | StructArmed is a dev-only PHP architecture guard: define layers and dependency rules, start from presets (PSR-4/1/12, MVC, DDD), then tune or skip checks in PHP. Run it in CI to catch boundary violations before they become conventions. | 29 | 30 | 1 | 268K | 0 | 31.9 | 63.8 | MIT | 1 week ago | |
| brick/varexporter | Prettier, safer alternative to PHP var_export(). Exports variables as standalone executable PHP code (no runtime dependency) with short array syntax, cleaner numeric arrays, and support for closures and custom objects beyond __set_state(), ideal for fast OPcache-friendly caching. | 194 | 197 | 19 | 1M | 6 | 5.4 | 55.3 | MIT | 4 months ago | |
| chameleon-system/upgrade-helper | — | 0 | 0 | 0 | 0 | 0 | 0.6 | — | — | 5 years ago | |
| code-lts/doctum | Doctum for Laravel: generate versioned API documentation for your PHP codebase with a clean, searchable HTML output. Supports configuration, theming, and multi-version docs, making it easy to publish and maintain docs for packages and applications. | 353 | 356 | 43 | 2K | 12 | 26.2 | 17.9 | MIT | 3 months ago | |
| composer-unused/symbol-parser | composer-unused/symbol-parser is a small toolkit that parses PHP symbols from a Composer package, helping tools like composer-unused detect what code is actually referenced. Useful for analyzing dependencies, exports, and usage across a project. | 15 | 15 | 13 | 279K | 0 | 21.9 | 61.7 | MIT | 4 months ago | |
| connectholland/user-bundle | — | 8 | 8 | 8 | 0 | 2 | 29.1 | — | — | 2 weeks ago | |
| constantable/odm-document-maker | — | 5 | 5 | 3 | 982 | 1 | 0.5 | 30.6 | MIT | 1 year ago | |
| contao/contao | — | 426 | 428 | 172 | 31 | 358 | 27.3 | 26.6 | LGPL-3.0 | — | |
| contao/core-bundle | — | 123 | 130 | 56 | 19K | 0 | 2.3 | 30.3 | LGPL-3.0 | — | |
| corponat/maker-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| corpus/coding-standard | — | 0 | 0 | 0 | 3K | 1 | 10.3 | 51.1 | MIT | 8 months ago | |
| customizer/maker-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| cvele/translation-bundle | — | 0 | 0 | 0 | 13 | 0 | 1.5 | 15.8 | — | 4 years ago | |
| danplaton4/tenancy-bundle | — | 1 | 0 | 0 | 3 | 0 | 20.2 | 6.5 | MIT | 2 weeks ago | |
| dansan/php-backport | Dev tool to backport PHP source code for older runtimes (e.g., PHP 7.2+ features down to PHP 7.0). Configure directories to port, run a script on a *_bp branch, commit/push, then require the backported dev branch in Composer. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| datafactory/ezmigrationbundle | — | 0 | 0 | 0 | 0 | 0 | 3.0 | — | GPL-2.0 | 7 years ago | |
| dedoc/scramble | — | 2,096 | 2,098 | 196 | 1M | 22 | 53.3 | 55.4 | MIT | 1 week ago | |
| degraciamathieu/php-arguments-detector | Detect and analyze function/method arguments in PHP using a lightweight, reflection-based approach. Useful for tooling that needs to inspect call signatures, validate inputs, or generate metadata about parameters and defaults across codebases. | 13 | 13 | 1 | 4 | 0 | 0.4 | 1.5 | — | 3 years ago | |
| deptrac/deptrac | Deptrac helps you define and enforce architectural boundaries in PHP projects. Configure layers and dependency rules, then analyze your codebase to detect forbidden dependencies. Useful for keeping clean architecture, preventing drift, and improving maintainability in large apps. | 2,942 | 2,942 | 155 | 757K | 28 | 56.4 | 50.0 | MIT | 3 weeks ago | |
| diephp/laravel-resources-typescript | — | 3 | 3 | 0 | 53 | 0 | 0.0 | 16.0 | MIT | — | |
| digitalrevolution/utils | — | 1 | 1 | 8 | 3K | 1 | 27.8 | 51.8 | MIT | 1 month ago | |
| driftingly/rector-laravel | Rector extension for Laravel that applies automated refactors and upgrade rules based on your composer.json or selected Laravel version sets. Includes rules for core Laravel and first‑party packages like Cashier and Livewire. | 1,224 | 1,221 | 103 | 1M | 19 | 45.1 | 57.9 | MIT | 2 weeks ago | |
| dualmedia/disable-orm-bundle | — | 0 | 0 | 0 | 99 | 1 | 22.5 | 32.7 | MIT | 1 week ago | |
| dwcasteam/configuration-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| egeloen/serializer | — | 0 | 28 | — | 1K | — | 2.6 | 24.6 | — | — | |
| ejm/flow | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| ekino/phpstan-banned-code | PHPStan extension that flags banned code patterns in your project (e.g., var_dump, dd, exit/die, eval, echo/print, shell exec/backticks). Configurable via PHPStan parameters, with optional checks like preventing use imports from Tests in non-test code. | 298 | 300 | 24 | 193K | 4 | 23.9 | 46.1 | MIT | 2 months ago | |
| eliashaeussler/phpstan-config | Opinionated PHPStan configuration presets and extensions by Elias Häußler. Drop-in rules and baseline settings to standardize static analysis across projects, reduce false positives, and improve code quality with minimal setup for common PHP/Laravel workflows. | 2 | 2 | 0 | 26K | 1 | 18.1 | 59.5 | GPL-3.0 | 5 months ago | |
| ergebnis/rector-rules | A curated set of custom Rector rules from ergebnis to automate PHP refactoring and style consistency. Includes rules for sorting arrays and match arms, simplifying call arguments, Faker updates, namespace symbol references, and PHPUnit attribute-to-prefix changes. | 10 | 10 | 0 | 22K | 0 | 28.8 | 52.5 | MIT | 1 month ago | |
| eventsauce/eventsauce | EventSauce is an opinionated, no-nonsense toolkit for bringing event sourcing to PHP. Choose your own storage and queueing backends, and use built-in testing tools designed for event-sourced systems. Docs: eventsauce.io/docs | 864 | 863 | 84 | 36K | 5 | 8.9 | 26.1 | MIT | — | |
| gettext/php-scanner | Scan PHP source to extract gettext translations for use with gettext/gettext. Supports multiple domains, default domain selection, and extracting translator/i18n comments. Produces Translations you can export to .po files with generators like PoGenerator. | 15 | 15 | 6 | 16K | 2 | 4.0 | 41.1 | MIT | 1 year ago | |
| goaop/framework | Aspect-Oriented Programming for PHP. goaop/framework weaves aspects into your code at runtime/compile time using a fast proxy mechanism, enabling clean cross-cutting concerns like logging, caching, security, and profiling without cluttering business logic. | 1,667 | 1,674 | 165 | 31K | 3 | 33.3 | 0.9 | MIT | 3 weeks ago | |
| goaop/parser-reflection | AST-based Reflection API for PHP: introspect classes, methods, and properties directly from source code without autoloading or executing anything. Built on nikic/php-parser and compatible with native Reflection classes—ideal for static analyzers, code generators, and IDE tooling. | 101 | 101 | 51 | 32K | 3 | 23.2 | 39.9 | MIT | 2 months ago | |
| google/cloud-bigquery | Idiomatic PHP client for Google BigQuery. Create and manage datasets/tables, load data (e.g., CSV), run jobs, and execute SQL queries with result iteration. GA stability, Composer install, and supports standard Google Cloud authentication. | 89 | 94 | 20 | 586K | 0 | 29.9 | 61.8 | Apache-2.0 | 2 weeks ago | |
| google/cloud-core | Core infrastructure library for Google Cloud PHP clients. Provides shared components like authentication, retries, request handling, and utilities used across Google Cloud service packages. Not intended for direct use; typically installed as a dependency. | 343 | 346 | 21 | 4M | 0 | 31.4 | 64.6 | Apache-2.0 | 3 weeks ago | |
| google/cloud-logging | Idiomatic PHP client for Google Cloud Logging (Stackdriver). Write, store, search, and analyze logs from Google Cloud and AWS. Supports REST and gRPC (including streaming). Install via Composer and authenticate with Google Cloud credentials. | 44 | 45 | 15 | 185K | 0 | 28.9 | 58.3 | Apache-2.0 | 3 weeks ago | |
| google/cloud-storage | Idiomatic PHP client for Google Cloud Storage. Upload, download, and manage buckets/objects, set ACLs, and use the gs:// stream wrapper. Part of the Google Cloud PHP suite with full API docs and authentication guidance. | 342 | 349 | 30 | 3M | 0 | 32.8 | 63.1 | Apache-2.0 | 2 weeks ago | |
| graham-campbell/analyzer | Analyzer by Graham Campbell statically checks your PHP code to ensure referenced classes actually exist, helping catch typos and missing dependencies early. Supports PHP 8.1–8.5 and integrates with PHPUnit 10–13. | 29 | 30 | 5 | 6K | 0 | 25.7 | 36.2 | MIT | 2 months ago | |
| hanneskod/classtools | Scan the filesystem for PHP classes, interfaces, and traits using Symfony Finder. Build a class-to-file map, detect parse/syntax errors, and iterate results as ReflectionClass objects, with optional autoloading for discovered classes. | 130 | 134 | 31 | 52K | 2 | 2.3 | 37.2 | WTFPL | — | |
| humbug/php-scoper | PHP-Scoper prefixes your project and its dependencies into a unique namespace to avoid conflicts, especially when building PHARs that bundle vendor code and run alongside other PHP projects with overlapping packages or versions. | 802 | 803 | 76 | 127K | 22 | 38.1 | 46.3 | MIT | 3 months ago | |
| ibexa/jms-translation-bundle | Symfony bundle for extracting, managing, and updating translation messages. Scans PHP, Twig, and other resources, supports multiple translation formats, and provides tools for maintaining locale files and translation catalogs in your application. | 0 | 0 | 1 | 19K | 0 | 17.3 | 63.3 | — | 2 months ago | |
| ibexa/rector | Rector rule sets for upgrading Ibexa DXP projects between versions. Install as a dev dependency, add an ibexa set (e.g., IBEXA_50) to rector.php, and run Rector to automatically refactor code for the target Ibexa release. | 1 | 1 | 3 | 18K | 0 | 26.0 | 64.5 | NOASSERTION | 2 weeks ago | |
| icanhazstring/composer-unused | composer-unused detects and removes unused Composer dependencies in PHP/Laravel projects. It analyzes your codebase to find packages not referenced, reports what can be safely removed, and helps keep composer.json/lock lean and maintainable. | 1,681 | 1,683 | 57 | 272K | 10 | 35.8 | 38.3 | MIT | 4 months ago | |
| infection/infection | Infection is a PHP mutation testing framework that measures how well your tests detect small code changes. Run it in CI to get a Mutation Score Indicator (MSI), uncover weak assertions, and improve test quality. PHP 8.3+. | 2,202 | 2,213 | 183 | 751K | 165 | 66.3 | 68.3 | BSD-3-Clause | 2 weeks ago | |
| infection/mutator | Mutation testing tool for PHP: generates code mutations and runs your PHPUnit tests to measure how well they catch bugs. Helps improve test quality and identify weak assertions, with configurable mutators, thresholds, and reporting for CI pipelines. | 8 | 8 | 2 | 691K | 0 | 1.3 | 55.3 | BSD-3-Clause | 1 year ago | |
| instaclick/object-calisthenics-sniffs | — | 6 | 6 | 2 | 235 | 0 | 0.1 | 21.3 | — | — | |
| instaclick/symfony2-coding-standard | PHP_CodeSniffer ruleset for enforcing the Symfony2 Coding Standard in PHP projects. Helps keep formatting and conventions consistent across teams and CI, with ready-to-use sniffs and easy integration into existing development workflows. | 9 | 10 | 5 | 237 | 4 | 1.2 | 0.8 | — | 6 years ago | |
| itbz/fpdi | Discontinued unofficial PSR-4 fork of Setasign FPDI (Free PDF Document Importer). Instantiates via \fpdi\FPDI and supports TCPDF with patched versions. Prefer the official FPDI via composer/GitHub, ideally FPDI 2.0+. | 20 | 19 | 23 | 3K | 0 | 0.4 | 21.5 | — | — | |
| jane/jane | Deprecated Jane package; development moved to janephp/janephp. Use the new repository for current releases, documentation, and support. | 78 | 85 | 9 | 289 | 0 | 1.7 | 6.4 | MIT | 8 years ago | |
| jane/open-api | Deprecated package for generating API clients/models from OpenAPI specs with Jane. This repository is no longer maintained; use the consolidated JanePHP project instead: https://github.com/janephp/janephp | 185 | 198 | 26 | 188 | 0 | 2.1 | 3.0 | MIT | 8 years ago | |
| jane-php/json-schema | — | 11 | 12 | 6 | 47K | 0 | 0.8 | 49.5 | MIT | 7 years ago | |
| jane-php/open-api | — | 45 | 33 | 9 | 976 | 0 | 0.5 | 13.2 | MIT | 7 years ago | |
| jane-php/open-api-2 | — | 4 | 4 | 2 | 8K | 0 | 0.1 | 44.7 | MIT | — | |
| jane-php/open-api-3 | — | 20 | 21 | 6 | 34K | 0 | 0.3 | 44.2 | MIT | — | |
| jeremeamia/superclosure | Serialize and unserialize PHP Closures/anonymous functions, including use() context, via fast TokenAnalyzer or more robust AstAnalyzer. Note: project is no longer maintained; consider using opis/closure instead. | 1,707 | 1,715 | 94 | 182K | 0 | 14.5 | 28.1 | MIT | 8 years ago | |
| jetbrains/phpstorm-stubs | PhpStorm Stubs: syntactically correct PHP files with signatures, constants, and PHPDoc for PHP core and many extensions. Used by IDEs for completion, inspections, type inference, and documentation popups. Community-driven support for non-standard extensions. | 1,385 | 1,373 | 824 | 2M | 0 | 46.9 | 50.6 | Apache-2.0 | 1 month ago | |
| jms/translation-bundle | — | 425 | 444 | 282 | 95K | 78 | 57.0 | 66.0 | — | 1 month ago | |
| kaliop/ezmigrationbundle | Symfony bundle to manage eZPlatform/eZPublish database and content changes via code. Inspired by Doctrine migrations, it generates and runs migrations and offers console commands to apply, resume, and check status of deployments across environments. | 54 | 54 | 77 | 177 | 19 | 17.6 | 16.5 | GPL-2.0 | 2 years ago | |
| kcs/class-finder | Discover and filter PHP classes and namespaces in your project using Composer’s autoloader with PSR resolution. Iterate found classes and reflections, then narrow results by interfaces, subclasses, annotations, PHP 8 attributes, directories, namespaces, or custom callbacks. | 31 | 31 | 6 | 82K | 2 | 4.3 | 47.0 | MIT | 1 year ago | |
| kkszymanowski/traitor | Traitor brings traits to Eloquent like first-class relations. Define reusable, composable model fragments and access them via $model->traitName, eager load with with('traitName'), and query through them—keeping models slim while sharing behavior and attributes. | 130 | 130 | 3 | 125K | 1 | 3.5 | 41.1 | MIT | 2 years ago | |
| knuckleswtf/scribe | Generate human-friendly API docs from your Laravel codebase. Scribe outputs a sleek single-page HTML doc with code samples and “Try It Out”, plus Postman collections and OpenAPI specs. It can extract params from validation/FormRequests and auto-generate sample responses. | 2,308 | 2,302 | 356 | 595K | 93 | 71.1 | 66.7 | MIT | 3 weeks ago | |
| korbeil/phpstan-generic-rules | PHPStan extension that enforces and improves the use of PHP generics. Adds custom rules to catch missing or incorrect template types, invalid generic usages, and helps keep docblocks and type hints consistent for safer, more accurate static analysis. | 12 | 12 | 5 | 7K | 2 | 8.2 | — | — | 7 months ago | |
| laramint/laravel-brain | — | 764 | 744 | 40 | 40K | 4 | 28.2 | 29.3 | — | 2 weeks ago | |
| laramint/laravel-security-scanner | — | 0 | 0 | 0 | 350 | 0 | 19.6 | 41.2 | — | 3 weeks ago | |
| laramint/php-security-scanner | — | 0 | — | 0 | — | 0 | 19.3 | — | MIT | 3 weeks ago | |
| larastan/larastan | Larastan is a PHPStan extension for Laravel that analyzes your code to catch bugs early. It boots the Laravel container to resolve runtime-only types, adds static typing support for Laravel “magic,” and improves code quality and developer productivity. | 6,406 | 6,382 | 492 | 4M | 80 | 87.7 | 71.9 | MIT | 1 week ago | |
| laravel/chisel | Laravel Chisel provides primitives for starter-kit post-install scripts, letting users opt into features and automatically remove unwanted code. Define a chisel.php with questions and file/PHP mutations to prune sections, imports, interfaces, and config. | 5 | 0 | 1 | 93K | 0 | 19.9 | 64.7 | MIT | 3 weeks ago | |
| laravel/ranger | Beta Laravel introspection library that walks your codebase and exposes rich DTOs for routes, models, enums, broadcast events, env vars, and Inertia components. Register callbacks per item or collection, then run a single walk to process everything. | 61 | 59 | 13 | 23K | 1 | 25.7 | 41.6 | MIT | 2 weeks ago | |
| laravel/surveyor | Beta Laravel tool for mostly static analysis of PHP/Laravel apps. Parses files/classes to extract rich metadata (classes, methods, properties, types) and can inspect models and container bindings for extra detail. Returns structured results for other tools. | 83 | 76 | 24 | 22K | 0 | 26.3 | 39.4 | — | 1 week ago | |
| laravel-doctrine/orm | — | 836 | 845 | 181 | 69K | 6 | 37.4 | 32.5 | MIT | 1 month ago | |
| laravel-ready/packager | — | 8 | 8 | 2 | 0 | 3 | 2.0 | 0.4 | MIT | 2 years ago | |
| laraveldaily/filacheck | — | 113 | 112 | 6 | 18K | 0 | 24.5 | 35.7 | MIT | 1 week ago | |
| lartisan/filament-architect | — | 41 | 39 | 4 | 317 | 0 | 22.5 | 14.8 | MIT | 1 month ago | |
| lctrs/psalm-psr-container-plugin | Psalm plugin that improves static analysis for PSR-11 containers. Adds smarter type inference for container get/has calls so services and dependencies resolve to the right classes, reducing false positives and making container-heavy code safer to refactor. | 17 | 17 | 7 | 11K | 2 | 5.6 | 39.8 | MIT | 1 year ago | |
| league/container | league/container is a lightweight PSR-11 dependency injection container for PHP. Define entries, factories, and autowiring-friendly services to manage application dependencies cleanly, with modern PHP support and solid tooling for testing and analysis. | 867 | 904 | 105 | 2M | 5 | 34.4 | 53.9 | MIT | 2 months ago | |
| livewire/blaze | Blaze speeds up Laravel Blade anonymous components by compiling templates into optimized PHP functions. Drop-in replacement with no code changes. Optional memoization and folding for extra gains. Enable via @blaze directive or optimize directories. | 709 | 710 | 33 | 143K | 1 | 30.1 | 38.3 | MIT | 1 month ago | |
| lmc/coding-standard | Deprecated PHP coding standard for Alma Career Czechia (formerly LMC). Based on PSR-12 and partially PER 2.0, delivered via EasyCodingStandard with rules for PHP-CS-Fixer and PHP_CodeSniffer to enforce readable, consistent code and catch common mistakes. | 0 | 0 | 0 | 3K | 0 | 0.0 | 33.2 | MIT | — | |
| maglnet/composer-require-checker | CLI tool that scans your PHP sources and composer.json to ensure every used class/function comes from declared dependencies. Detects “soft” transitive deps and missing required PHP extensions, helping prevent breakage after dependency updates. | 998 | 1,005 | 78 | 484K | 32 | 44.2 | 58.5 | MIT | 2 months ago | |
| matheusmarnt/scoutify | — | 1 | 1 | 0 | 217 | 0 | 34.0 | 32.9 | MIT | 3 weeks ago | |
| mayflower/mo4-coding-standard | PHP_CodeSniffer ruleset implementing the MO4 coding standard. Extends Symfony’s standard with extra sniffs for array formatting and alignment, multiline arrays, property docblock @var rules, and lexicographically sorted use statements (configurable ordering). | 17 | 17 | 10 | 11K | 2 | 22.0 | 46.3 | MIT | 2 months ago | |
| nette/php-generator | Generate PHP code via a fluent API: build classes, interfaces, functions, methods, properties, namespaces, and PHPDoc, then render to valid PHP. Handy for code generators, scaffolding tools, and runtime code output with strict formatting and escaping. | 2,252 | 2,282 | 147 | 3M | 1 | 38.9 | 48.1 | NOASSERTION | 3 months ago | |
| nikic/php-fuzzer | A coverage-guided fuzzing tool for PHP that helps uncover crashes, assertion failures, and security bugs in PHP itself and extensions. Uses AFL-style instrumentation and supports running targets under various sanitizers for fast, automated bug hunting. | 440 | 439 | 17 | 13K | 3 | 6.7 | 20.7 | MIT | 1 year ago | |
| nunomaduro/larastan | Larastan is a PHPStan extension for Laravel that adds strong type inference and “code analysis” by booting the app container. It understands Laravel’s magic, finds bugs early, and improves code quality and developer productivity. | 6,407 | 6,419 | 492 | 410K | 80 | 90.2 | 59.3 | MIT | 1 week ago | |
| orklah/psalm-insane-comparison | Psalm plugin that flags “insane” string-to-number loose comparisons that change behavior in PHP 8 (RFC: Saner string to number comparisons). Helps you find risky == checks like non-empty string vs 0 before upgrading, and suggests safer typing/casts. | 34 | 35 | 4 | 11K | 0 | 4.3 | 34.4 | MIT | 1 year ago | |
| pcov/clobber | Clobber PHPUnit 5–7’s Xdebug code coverage driver to use PCOV instead. Install with composer and run vendor/bin/pcov clobber or unclobber (optionally targeting another directory). Useful when upgrading to PHPUnit 8 isn’t feasible. | 41 | 41 | 7 | 15K | 1 | 0.6 | 35.1 | MIT | — | |
| pepakriz/phpstan-exception-rules | PHPStan extension that adds custom rules for analyzing exceptions. It helps catch improper throwing/catching, missing @throws annotations, and other exception-related issues to improve correctness and maintainability in PHP codebases. | 109 | 111 | 10 | 7K | 8 | 12.1 | 27.1 | — | 4 years ago | |
| permafrost-dev/php-code-search | Search PHP projects by symbol or text to quickly find classes, methods, functions, and constants across your codebase. Fast, lightweight code search for local repositories, useful for audits, refactors, and navigating large Laravel or PHP applications. | 28 | 28 | 0 | 10K | 0 | 9.2 | 35.0 | MIT | 1 year ago | |
| pestphp/pest-plugin-drift | Pest Plugin Drift adds drift detection to your Pest test suite, helping catch behavioral changes and flaky differences across runs. Install alongside Pest to track and report unexpected output or snapshot mismatches during testing. | 73 | 73 | 10 | 326K | 0 | 1.2 | 50.3 | MIT | 3 years ago | |
| pestphp/pest-plugin-mutate | Pest Plugin Mutate brings mutation testing to Pest, helping you gauge test suite effectiveness by introducing small code changes and checking whether tests catch them. Ideal for strengthening coverage and confidence in your PHP applications. | 41 | 41 | 6 | 4M | 0 | 2.6 | 57.2 | MIT | 1 year ago | |
| php-imap/php-imap | Connect to POP3/IMAP/NNTP mailboxes using PHP’s IMAP extension. Fetch and parse emails with attachments and inline images, search/filter/sort by criteria, mark seen/unseen, delete messages, and manage folders—ideal for building email-handling apps. | 1,702 | 1,729 | 457 | 159K | 49 | 65.6 | 50.2 | MIT | 3 weeks ago | |
| php-stubs/generator | Generate PHP stub files from your codebase for better IDE autocomplete, static analysis, and documentation. php-stubs/generator scans sources and produces lightweight stubs suitable for packages and frameworks, helping consumers get accurate type hints without shipping full sources. | 79 | 81 | 23 | 15K | 4 | 16.1 | 1.3 | MIT | 4 months ago | |
| php-stubs/wordpress-stubs | WordPress core stubs for static analysis and IDE autocompletion (functions, classes, interfaces; no globals). Generated from johnpbloch/wordpress-core. Works with PHPStan (via phpstan-wordpress) and Psalm stubs config. Requires PHP 7.4/8.0. | 199 | 199 | 23 | 983K | 11 | 33.9 | 64.9 | MIT | 2 weeks ago | |
| php-translation/extractor | Extracts translation messages from PHP projects for the php-translation ecosystem. Scans source code and templates to collect translatable strings and generate catalogs, helping keep i18n files in sync across frameworks and custom apps. | 129 | 129 | 36 | 45K | 15 | 25.5 | 46.5 | MIT | 3 weeks ago | |
| phparkitect/phparkitect | PHPArkitect enforces architectural rules in PHP projects. Define constraints in code (namespaces, naming, dependencies, layering) to prevent architecture drift and catch violations early in IDEs and CI/CD pipelines. | 908 | 908 | 52 | 177K | 22 | 43.0 | 50.4 | MIT | 1 week ago | |
| phpdocumentor/phpdocumentor | phpDocumentor is a documentation generator for PHP projects. It analyzes source code and DocBlocks to produce complete API docs, supports Markdown and reStructuredText, can generate UML diagrams, and can embed API references into your docs to keep them in sync. | 4,332 | 4,394 | 645 | 11K | 144 | 85.2 | 39.2 | MIT | 3 weeks ago | |
| phpdocumentor/reflection | Static PHP code reflection library that parses files without executing them. Builds an object graph of your project’s structure, including DocBlocks. Can analyze code from PHP 5.2 up to your installed version; suitable for reflecting whole files or projects. | 125 | 126 | 61 | 2M | 8 | 34.6 | 67.2 | MIT | 1 week ago | |
| phploc/phploc | phploc is a command-line tool for quickly measuring the size of a PHP project, reporting LOC/NCLOC/CLOC, LLOC, and counts of classes, traits, methods, functions, and cyclomatic complexity. Archived: no longer maintained. | 2,346 | 2,378 | 163 | 108K | 0 | 8.3 | 16.3 | BSD-3-Clause | — | |
| phpmetrics/phpmetrics | PhpMetrics analyzes PHP codebases and generates a clean, readable HTML report with class/project metrics. Install via Composer and run against a folder to produce a browsable report. Supports configuration files for options, rules, and CI use. | 2,598 | 2,606 | 262 | 274K | 3 | 33.0 | 29.6 | MIT | 10 months ago | |
| phpro/grumphp | GrumPHP is a Composer plugin that installs Git hooks to run quality checks (tests, linters, code style) on staged changes before you commit. If tasks fail, the commit is blocked—helping teams enforce standards and improve code quality automatically. | 4,293 | 4,300 | 448 | 345K | 4 | 65.5 | 33.1 | MIT | 2 weeks ago | |
| phpstan/phpdoc-parser | PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes. | 1,528 | 1,526 | 74 | 10M | 8 | 35.0 | 65.0 | MIT | 4 months ago | |
| phpstan/phpstan-phpunit | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 531 | 534 | 56 | 3M | 35 | 38.6 | 74.3 | MIT | 3 months ago | |
| phpstan/phpstan-webmozart-assert | 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. | 184 | 184 | 33 | 649K | 6 | 12.6 | 50.5 | MIT | 1 year ago | |
| phpunit/php-code-coverage | phpunit/php-code-coverage collects, processes, and renders PHP code coverage data. Integrate it in test runs to start/stop coverage collection, filter included files, and generate reports such as OpenClover, including from serialized coverage data. | 8,927 | 8,978 | 385 | 13M | 6 | 71.7 | 55.7 | BSD-3-Clause | 2 weeks ago | |
| pmjones/php-styler | PHP-Styler is a PHP 8.1+ code formatter that fully reformats your code for consistent spacing, indentation, and line lengths. It preserves logic and comments, is diff-friendly by default, and is customizable via styles, rules, and parses. | 41 | 41 | 2 | 102 | 0 | 25.6 | 8.6 | MIT | 1 month ago | |
| povils/phpmnd | phpmnd scans your PHP project to detect magic numbers and highlight hard-coded numeric literals. It helps enforce constants and improve readability/maintainability, with configurable ignores and easy integration into CI workflows. | 583 | 585 | 47 | 92K | 12 | 23.5 | 8.1 | MIT | 3 months ago | |
| psalm/plugin-laravel | Laravel Psalm plugin for deep static analysis plus taint-based security scanning. Detect SQL injection, XSS, SSRF, shell injection, path traversal, and open redirects by tracking user input through Laravel code—without executing it. Complements Larastan/PHPStan. | 330 | 331 | 77 | 116K | 71 | 57.2 | 70.8 | MIT | 1 week ago | |
| psy/psysh | PsySH is an interactive PHP REPL, runtime developer console, and debugger. Explore code, inspect variables, and run commands in a powerful shell with history, configuration, themes, and integrations—ideal for fast debugging and experimentation. | 9,826 | 9,871 | 316 | 11M | 6 | 66.2 | 52.9 | MIT | 1 week ago | |
| rector/rector-laravel | Community Rector extension to automate Laravel upgrades. Adds Laravel and first-party package rules (e.g., Cashier, Livewire), with version-based set providers that detect your composer.json or manual level sets to apply the right refactors for your target Laravel version. | 1,224 | 1,219 | 103 | 11K | 19 | 44.7 | 27.1 | MIT | 2 weeks ago | |
| rector/swiss-knife | Swiss Knife for upgrades: CLI tools to keep codebases clean and PSR-4 compliant. Detect git merge conflicts and commented-out code, find multiple classes per file, fix namespaces to match PSR-4 roots, and finalize classes without children (with skips for mocks/files). | 205 | 206 | 17 | 109K | 0 | 6.2 | 39.1 | MIT | 9 months ago | |
| rector/type-perfect | Type Perfect adds 10 PHPStan rules to tighten type declarations: replace empty/isset checks with instanceof for precise narrowing, prefer explicit getters over magic array access, and enforce interface signatures. Easy to enable even on legacy code; improves reliability fast. | 103 | 103 | 7 | 360K | 0 | 0.7 | 48.7 | MIT | — | |
| roave/backward-compatibility-check | Checks your PHP library for backward compatibility breaks between git tags/versions. Designed for CI: compares the last SemVer tag to current HEAD, reports API breaks, and exits non-zero on failure. Install via Composer or run in Docker. | 596 | 596 | 66 | 104K | 37 | 45.4 | 52.3 | MIT | 3 weeks ago | |
| roave/better-reflection | Enhanced PHP reflection for static analysis: reflect classes without loading them, from PHP code strings or closures, extract AST from functions/methods, and read type declarations and docblocks. Feature-rich but slower than native reflection. | 1,241 | 1,245 | 137 | 326K | 14 | 42.8 | 45.4 | MIT | 1 month ago | |
| roave/no-floaters | PHPStan plugin that bans floats: no float properties, parameters, return types, or assigning float values. Optional strict mode disallows any float-producing expression. Helps prevent rounding errors in domains like money, grading, or scientific calculations. | 215 | 216 | 13 | 9K | 2 | 26.5 | 27.1 | MIT | 3 weeks ago | |
| s1k3/livewire-v4-patch | Dev-only Laravel tool to convert Livewire v4 class components into Model-Focused Components (MFC). Provides an Artisan command to convert single components or whole folders, with options to keep originals, generate JS/CSS, exclude directories, and disable Pint formatting. | 0 | 0 | 0 | 0 | 0 | 19.0 | — | — | 1 month ago | |
| sami/sami | Sami is an API documentation generator for PHP. It analyzes your codebase and builds clean, searchable docs from source and DocBlocks. Ideal for libraries and frameworks, with flexible configuration, theming, and support for versioned documentation. | 1,971 | 2,044 | 283 | 6K | 0 | 9.2 | 4.3 | MIT | — | |
| sebastian/complexity | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,258 | 1,258 | 10 | 13M | 1 | 21.4 | 62.6 | BSD-3-Clause | 3 months ago | |
| sebastian/lines-of-code | sebastian/lines-of-code is a lightweight PHP library for counting lines of code in PHP source files. Useful for reporting, metrics, and tooling, it can be installed via Composer as a runtime or dev dependency. | 1,174 | 1,175 | 8 | 12M | 1 | 27.3 | 64.7 | BSD-3-Clause | 2 weeks ago | |
| shalvah/upgrader | Automate upgrading users’ PHP library config files when releasing new versions. Compare old vs sample new config, apply moves/renames and ignored keys, support dot notation, preview changes with dry-run, and create a .bak backup before upgrading. | 15 | 15 | 0 | 593K | 1 | 4.1 | 55.2 | MIT | 2 years ago | |
| shipmonk/coverage-guard | Enforce PHP code coverage in CI by targeting specific core methods/blocks instead of overall %. Legacy-friendly: enforce only new/changed code via git patch. Lightweight (nikic/php-parser), extensible rules, easy CLI to check PHPUnit Clover reports. | 54 | 55 | 0 | 10K | 0 | 12.9 | 34.6 | MIT | 5 months ago | |
| shipmonk/dead-code-detector | PHPStan extension that detects and helps remove unused PHP code. Finds dead methods/properties/constants/enum cases, dead cycles and transitive dead members, even dead tested code. Supports popular frameworks like Symfony and is configurable via usage providers. | 472 | 470 | 22 | 438K | 7 | 36.3 | 51.7 | — | 2 weeks ago | |
| sidz/phpstan-rules | Custom PHPStan rules aimed at Laravel projects, helping catch common mistakes and enforce best practices. Adds extra static analysis checks tailored to typical framework patterns, improving code quality, consistency, and confidence during refactors. | 31 | 31 | 4 | 42K | 0 | 7.6 | 44.1 | MIT | 10 months ago | |
| slam/phpstan-extensions | 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 | 71 | 13 | 35K | 2 | 30.0 | 43.9 | MIT | 2 weeks ago | |
| solido/dto-management | Manage, discover, and enhance DTOs in PHP apps with Solido DTO Management. Provides tools to register and locate DTO classes and apply enhancements consistently across your codebase. Documentation and contribution guides available. | 2 | 2 | 1 | 54 | 0 | 0.1 | 10.8 | MIT | — | |
| spatie/7to5 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 33 | 305 | 0 | 2.6 | 4.2 | MIT | 8 years ago | |
| spiral/framework | Spiral Framework is a high-performance, long-running full-stack PHP framework built for RoadRunner. PSR-compliant components, resident memory kernel, and native support for queues, GRPC, WebSockets, and background workers. | 2,047 | 2,048 | 91 | 96K | 44 | 53.4 | 45.6 | MIT | 1 month ago | |
| spiral/prototype | Prototype generation tools for Spiral Framework to speed up application scaffolding. Provides helpers to define models, repositories, and services with less boilerplate, keeping code consistent while accelerating development and iteration. | 3 | 3 | 1 | 96 | 0 | 4.8 | 19.3 | MIT | 6 years ago | |
| ssch/typo3-rector | Instant upgrades and refactoring for TYPO3 sites and extensions, built on Rector. Apply automated code migrations between TYPO3 versions, remove deprecations, and modernize PHP code with a generated Rector config and CLI workflow (dry-run/process). | 260 | 264 | 68 | 118K | 26 | 38.8 | 52.8 | MIT | 1 month ago | |
| sstalle/php7cc | — | 1,510 | 1,456 | 121 | 1K | 20 | 17.2 | 7.1 | MIT | 8 years ago | |
| stillat/proteus | Utilities for parsing, updating, and writing Laravel-style PHP config files. Use the ConfigWriter facade to write or preview single or multiple keys, guard namespaces from mutation, and optionally rewrite function calls like env while preserving structure. | 18 | 18 | 1 | 18K | 1 | 23.0 | 46.9 | MIT | 2 months ago | |
| swissspidy/phpstan-no-private | PHPStan extension that reports deprecation warnings when code uses “pseudo-private” elements marked with @access private. Helps prevent relying on internal classes, methods, functions, or properties. Easy install via Composer with optional extension-installer support. | 9 | 9 | 1 | 156K | 1 | 1.4 | 55.2 | MIT | 1 year ago | |
| symfony/maker-bundle | Symfony MakerBundle speeds up development by generating boilerplate code via simple CLI commands. Create controllers, entities, forms, tests, and more with best-practice templates, consistent structure, and quick scaffolding for common Symfony tasks. | 3,392 | 3,401 | 425 | 2M | 134 | 74.4 | 70.7 | MIT | 2 months ago | |
| symfony/symfony | Symfony is a robust PHP framework and component library for building web apps and APIs. It offers a mature ecosystem, reusable components, strong tooling, and long-term support, powering everything from small sites to large enterprise platforms. | 31,061 | 31,363 | 9,841 | 268K | 272 | 79.9 | 31.5 | MIT | 1 week ago | |
| symfony/translation | Symfony Translation component helps internationalize PHP apps with a powerful Translator, loaders, and resources (arrays, files, etc.). Define locales, add message catalogs, and translate strings with parameters and pluralization support across your application. | 6,611 | 6,651 | 89 | 14M | 0 | 59.1 | 54.2 | MIT | 1 week ago | |
| symplify/config-transformer | Automates refactoring and normalization of configuration files, helping you transform legacy or inconsistent configs into a unified format. Supports common PHP config styles and streamlines upgrades by applying consistent, repeatable changes across large codebases. | 263 | 264 | 14 | 97K | 0 | 1.7 | 35.3 | MIT | — | |
| symplify/php-config-printer | Print Symfony service and parameter configs to clean PHP files using nikic/php-parser. Generate output for configured services only or full configs (e.g., from YAML arrays) via SmartPhpConfigPrinter and YamlToPhpConverter. Ideal for config transformations and automation. | 32 | 32 | 2 | 16K | 1 | 0.3 | 36.9 | MIT | — | |
| symplify/phpstan-rules | Extra PHPStan rules by Symplify to catch bugs, improve code quality, and enforce consistent conventions. Easy to install and configure, with a broad set of checks for Symfony/Laravel and modern PHP features to keep your codebase clean. | 266 | 265 | 31 | 525K | 0 | 3.5 | 45.5 | MIT | 1 year ago | |
| ta-tikoma/phpunit-architecture-test | Architecture testing for PHP projects using PHPUnit. Define and enforce dependency, namespace, and layer rules (e.g., no forbidden coupling, keep domains isolated) and catch architectural violations in CI with fast, expressive tests. | 107 | 107 | 12 | 4M | 2 | 1.3 | 55.1 | MIT | — | |
| thecodingmachine/phpstan-safe-rule | PHPStan rule set that flags calls to “unsafe” PHP functions that can return false on failure and suggests using the thecodingmachine/safe equivalents that throw exceptions, helping enforce safer, exception-based error handling in your codebase. | 62 | 62 | 25 | 235K | 3 | 15.9 | 53.6 | — | 6 months ago | |
| theseer/phpdox | phpDox is a PHP documentation generator that builds API docs from your source code using reflection, tokens, and optional PHPDoc. It produces structured HTML output and integrates with PHPUnit coverage, offering configurable builds for libraries and apps. | 601 | 606 | 121 | 8K | 47 | 21.1 | 17.7 | NOASSERTION | 7 years ago | |
| tightenco/tlint | Tighten’s opinionated linter for Laravel and PHP projects. Enforces consistent conventions and catches style issues using preset and custom rules, runnable via CLI or CI. Built on PHP_CodeSniffer with sensible Laravel-focused defaults. | 525 | 527 | 33 | 25K | 1 | 27.1 | 27.1 | MIT | 1 month ago | |
| tomasvotruba/class-leak | Finds class leaks in PHP apps: detects classes unintentionally pulled into your runtime via autoloading, service container or tests. Helps trim dependencies, speed up CI, and keep boundaries clean by reporting unexpected class usage with clear, actionable output. | 146 | 142 | 7 | 110K | 0 | 0.9 | 39.7 | MIT | — | |
| tomasvotruba/cognitive-complexity | — | 148 | 148 | 3 | 197K | 0 | 0.8 | 43.1 | MIT | — | |
| tomasvotruba/unused-public | PHPStan extension that finds unused public methods, properties, and constants by scanning calls across your codebase. Helps clean up dead APIs or spot members that should be private/protected. Supports gradual adoption via allowed % thresholds and excluding template-used methods. | 192 | 192 | 15 | 95K | 0 | 1.4 | 36.9 | MIT | — | |
| typhoon/reflection | Static, fast alternative to PHP’s native Reflection. Reflects code without running or autoloading it, uses lazy loading + caching, and stays compatible with native reflection. Supports Psalm/PHPStan phpDoc types, template resolution, and avoids memory leaks (safe with zend.enable_gc=0). | 39 | 37 | 3 | 2K | 1 | 4.7 | 23.9 | MIT | 1 year ago | |
| typo3/cms-install | TYPO3 CMS Install tool and installation framework package. Provides the installer, upgrade wizards, environment checks, and setup utilities used to bootstrap and maintain a TYPO3 instance, including configuration, database setup, and system status diagnostics. | 18 | 18 | 3 | 250K | 0 | 0.2 | 55.3 | GPL-2.0 | — | |
| vimeo/psalm | Psalm is a PHP static analysis tool that finds type issues, bugs, and dead code before runtime. It supports gradual typing via annotations, powerful checks, and configurable rules to improve code quality in applications and libraries. | 5,848 | 5,866 | 699 | 1M | 1,911 | 88.7 | 65.2 | MIT | 1 month ago | |
| worksome/envy | — | 688 | 687 | 32 | 41K | 0 | 21.8 | 29.2 | MIT | 3 months ago | |
| wyrihaximus/phpstan-react | PHPStan extension for ReactPHP projects that flags blocking PHP functions (e.g., file_get_contents, fopen, fread) and suggests async React alternatives from react/filesystem, react/socket, and react/stream. Include the provided ruleset to enforce non-blocking code. | 2 | 2 | 0 | 19K | 2 | 1.0 | 52.3 | MIT | 1 year ago | |
| zircote/swagger-php | Generate OpenAPI 3.0/3.1/3.2 docs from your PHP 8.2+ code using native attributes (preferred) or optional Doctrine annotations. Includes CLI and programmatic generation, parses phpdoc, provides helpful error reporting, and powers interactive API docs. | 5,297 | 5,372 | 938 | 4M | 14 | 73.0 | 51.5 | Apache-2.0 | 1 month ago |
How can I help you explore Laravel packages today?