bnf/phpstan-psr-container
PHPStan dynamic return type extension for PSR-11 ContainerInterface. Improves type inference for $container->get() so services are typed correctly during static analysis. Install via Composer and include extension.neon (or use phpstan/extension-installer).
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| composer/pcre | 0.87 | Type-safe wrappers around PHP's preg_* functions that fail loudly instead of returning unexpected nulls. Enforces PREG_UNMATCHED_AS_NULL, simplifies return types for PHPStan and Psalm, and includes a PHPStan extension for better regex analysis. | 720 | 721 | 15 | 22M | 0 | 23.9 | 61.1 | MIT | 4 months ago | |
| cscfa_tool_division/docker_util | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.9 | — | — | 9 years ago | |
| php-standard-library/foundation | 0.86 | Foundation provides the core building blocks for PHP Standard Library packages: a consistent exception hierarchy, the Ref reference wrapper for safe value passing, and invariant functions for validating preconditions and enforcing assumptions. Lightweight, dependency-free, and designed for reuse acr... | 1 | 1 | 0 | 105K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| phpstan/php-8-stubs | 0.86 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 12 | 333K | 3 | 30.2 | 65.5 | MIT | 1 week ago | |
| netipar/laravel-chunky | 0.85 | Resumable, chunk-based file uploads for Laravel. Send large files reliably over flaky connections with server-side chunk tracking and fingerprint-based resume. Typed backend plus Vue, React, Alpine and Livewire frontends. No queue worker or broadcasting required by default. | 0 | 0 | 0 | 167 | 0 | 26.1 | 36.5 | MIT | 3 months ago | |
| illuminate/container | 0.85 | The Illuminate Container is Laravel's powerful dependency injection container. It manages class dependencies, binds and resolves services, supports contextual and method injection, and provides a simple, flexible foundation for building decoupled PHP applications. | 34,987 | 322 | 12,028 | 2M | 55 | 78.2 | 60.4 | MIT | 4 days ago | |
| geekcell/container-facade | 0.85 | Laravel package that adds lightweight container-backed facades, letting you resolve services from the IoC container via a simple static-like interface. Useful for organizing service access and reducing boilerplate when binding and retrieving dependencies. | 1 | 1 | 1 | 124 | 0 | 0.2 | 17.5 | MIT | 3 years ago | |
| larastan/larastan | 0.85 | Larastan is a PHPStan extension for Laravel that adds static typing and catches whole classes of bugs before you write tests. It boots your application's container to resolve types only computable at runtime while supporting Laravel's magic. | 6,547 | 6,560 | 529 | 11M | 39 | 85.8 | 78.7 | MIT | 4 days ago | |
| sanmai/di-container | 0.85 | A straightforward PSR-11 dependency injection container with zero-configuration autowiring. It resolves constructor dependencies via reflection, reuses created objects, maps interfaces to concrete implementations, and supports builder objects for complex construction. | 7 | 7 | 4 | 1M | 0 | 24.2 | 63.6 | BSD-3-Clause | 2 months ago | |
| zendframework/zend-diactoros | 0.85 | zendframework/zend-diactoros provides PSR-7 HTTP message implementations for PHP, including ServerRequest, Response, Stream, UploadedFile and Uri. Useful for building middleware, APIs and frameworks with interoperable request/response handling. | 1,518 | 1,593 | 146 | 197K | 27 | 14.6 | 26.7 | BSD-3-Clause | 6 years ago | |
| nunomaduro/larastan | 0.85 | Larastan is a PHPStan extension for Laravel that adds static typing and catches bugs before you write tests. It understands Laravel's magic and boots your app container to resolve runtime types, supporting Laravel 9 through 11+. | 6,547 | 6,561 | 529 | 454K | 39 | 85.5 | 57.3 | MIT | 4 days ago | |
| contributte/phpstan | 0.85 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 24K | 0 | 4.8 | 56.9 | MIT | 10 months ago | |
| bnf/di | 0.85 | Lightweight dependency injection container for PHP/Laravel projects. Configure bindings and resolve services automatically with simple, minimal setup—ideal for small apps or packages that need clean inversion of control without a heavy framework. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| eliashaeussler/phpstan-config | 0.85 | 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 | 12K | 1 | 9.9 | 51.9 | GPL-3.0 | 10 months ago | |
| kcs/phpstan-strict-rules | 0.85 | Fork of thecodingmachine/phpstan-strict-rules to support PHPStan v2. Adds stricter best-practice rules beyond core PHPStan, especially around exception handling (avoid throwing base Exception, empty catches, proper rethrowing). | 3 | 3 | 0 | 4K | 0 | 0.0 | 42.1 | — | — | |
| sanmai/phpstan-rules | 0.84 | Extra PHPStan rules from sanmai that extend static analysis for PHP projects. Helps catch additional issues not covered by core rules, improving code quality and consistency with minimal setup. | 3 | 4 | 0 | 2K | 0 | 11.9 | 40.8 | Apache-2.0 | 8 months ago | |
| elasticms/helpers | 0.84 | PHP Helpers wraps and simplifies common PHP functions into PHPStan-compliant helpers, making static analysis easier and code safer across elasticMS projects. Part of the elasticMS monorepo, with docs and issue tracking available on GitHub. | 0 | 0 | 0 | 196 | 0 | 34.2 | 37.1 | LGPL-3.0 | 2 weeks ago | |
| lookyman/phpstan-symfony | 0.84 | PHPStan extension for Symfony projects. Improves static analysis with Symfony-specific type inference and container/framework awareness, helping catch bugs earlier and reduce false positives when analyzing services, controllers, and common Symfony patterns. | 42 | 41 | 5 | 16 | 0 | 1.2 | 1.3 | MIT | 8 years ago | |
| thecodingmachine/phpstan-safe-rule | 0.84 | 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 | |
| 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 |
How can I help you explore Laravel packages today?