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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| shipmonk/phpstan-rules | 0.90 | 40 super-strict PHPStan rules from ShipMonk to plug gaps in extra-strict setups. Install via Composer, include rules.neon, then enable/disable or tune rules per-project. Targets tricky PHP edge cases like unsafe comparisons, casts, arrays, enums and more. | 152 | 154 | 24 | 139K | 1 | 31.1 | 49.3 | — | 2 weeks ago | |
| wyrihaximus/phpstan-rules-wrapper | 0.90 | Meta package that bundles popular PHPStan rule sets via phpstan/extension-installer. Install once to enable strict, deprecation, PHPUnit/Mockery, dead-code detection, type-coverage, PSR-3, and more with minimal configuration. | 6 | 6 | 0 | 61K | 1 | 27.8 | 63.2 | MIT | 1 month ago | |
| kcs/phpstan-strict-rules | 0.89 | 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 | 41.6 | — | — | |
| contributte/phpstan | 0.89 | 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 | 3K | 0 | 13.5 | 49.3 | MIT | 4 months ago | |
| phpstan/phpstan | 0.88 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 13,968 | 14,039 | 951 | 9M | 1,051 | 93.7 | 72.2 | MIT | 1 week ago | |
| e-lodgy/coding-standard | 0.88 | E-Lodgy’s shared Easy Coding Standard (ECS) configuration for PHP projects. Install via Composer, import the provided ecs.php, and apply consistent formatting and code style rules across your src, tests, and config files. | 0 | 0 | 1 | 23 | 1 | 2.6 | 19.0 | MIT | 2 years ago | |
| larastan/larastan | 0.87 | 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 | |
| sanmai/phpstan-rules | 0.81 | 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 | 19.3 | 41.9 | Apache-2.0 | 3 months ago | |
| sidz/phpstan-rules | 0.80 | 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 | |
| phpstan/phpstan-nette | 0.80 | PHPStan extension for Nette Framework. Improves type inference for components, DI container, forms, presenters/sessions, Html dynamic methods, SmartObject magic properties, events, and regex-based Strings utilities. Includes optional Nette-specific rules. | 118 | 119 | 44 | 282K | 6 | 27.2 | 57.5 | MIT | 3 months ago | |
| phpstan/phpstan-strict-rules | 0.79 | Opinionated extra rules for PHPStan to enforce strict, strongly typed PHP. Catches loose booleans in conditions, unsafe strict parameters, useless casts, non-numeric arithmetic, variable overwrites in loops, and switch/case type mismatches for safer defensive code. | 697 | 707 | 61 | 3M | 39 | 45.4 | 73.6 | MIT | 1 month ago | |
| symplify/phpstan-rules | 0.79 | 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 | |
| thecodingmachine/phpstan-safe-rule | 0.79 | 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 | 227K | 3 | 15.8 | 53.4 | — | 6 months ago | |
| rector/rector | 0.65 | Rector automatically upgrades and refactors PHP code. Apply single rules or curated sets to move from PHP 5.3 to 8.5+, modernize frameworks like Symfony/PHPUnit/Doctrine, and keep code quality high via CI with safe dry-run diffs. | 10,323 | 10,344 | 741 | 5M | 10 | 73.8 | 46.8 | MIT | 1 week ago |
How can I help you explore Laravel packages today?