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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpstan/phpstan | 0.85 | PHPStan is a PHP static analysis tool that finds bugs without running your code. It checks types and logic, flags common error patterns early, and helps enforce higher code quality—bringing PHP closer to compiled-language safety before tests or runtime. | 13,894 | 13,945 | 947 | 8M | 1,103 | 90.8 | 72.0 | MIT | 1 week ago | |
| nunomaduro/larastan | 0.85 | Larastan is a PHPStan extension for Laravel that analyzes your app to catch bugs early. It boots the container to resolve dynamic types, supports Laravel’s “magic,” and improves code quality with stronger static typing. | 6,360 | 6,368 | 492 | 418K | 76 | 89.1 | 60.8 | MIT | 1 month ago | |
| phpstan/phpstan-strict-rules | 0.83 | Extra strict, opinionated PHPStan rules for strongly typed PHP. Catches loose/unsafe patterns like non-boolean conditions, useless casts, non-numeric arithmetic, missing strict flags in in_array/array_search, variable overwrites in loops, and switch type mismatches. | 691 | 695 | 58 | 2M | 36 | 45.5 | 74.4 | MIT | 1 month ago | |
| symplify/phpstan-rules | 0.82 | 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. | 262 | 261 | 33 | 501K | 3 | 24.2 | 53.8 | MIT | 11 months ago | |
| ergebnis/rector-rules | 0.81 | Custom Rector rules from Ergebnis to standardize and modernize PHP code. Includes sorting associative arrays and match arms, converting Faker generator property fetches to method calls, and fixing namespaced symbol references. Install via Composer for dev. | 9 | 9 | 0 | 18K | 0 | 30.3 | 52.8 | 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 | 1K | 0 | 25.3 | 39.4 | Apache-2.0 | 1 month ago | |
| driftingly/rector-laravel | 0.81 | Community-maintained Rector extension for Laravel. Apply automated refactoring rules to upgrade Laravel (and first-party packages like Cashier/Livewire) via composer-based detection or manual version sets, helping modernize codebases safely and consistently. | 1,201 | 1,196 | 99 | 1M | 18 | 44.5 | 58.7 | MIT | 1 day 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 | 19K | 0 | 24.8 | 45.1 | MIT | 8 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. | 117 | 118 | 45 | 326K | 6 | 33.6 | 62.2 | MIT | 1 month 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 | 194K | 2 | 26.3 | 56.7 | — | 4 months ago | |
| carthage-software/mago | 0.79 | Mago is an extremely fast PHP linter, formatter, and static analyzer written in Rust. It brings Rust-inspired speed and reliability to PHP projects with a modern toolchain and great developer experience, plus multiple install options (script, Homebrew, Composer). | 2,992 | 2,993 | 144 | 115K | 84 | 71.6 | 55.8 | Apache-2.0 | 1 day ago | |
| phpstan/phpstan-phpunit | 0.79 | 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. | 527 | 531 | 56 | 3M | 33 | 44.1 | 78.9 | MIT | 1 month ago | |
| thecodingmachine/phpstan-strict-rules | 0.78 | 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. | 289 | 289 | 27 | 71K | 9 | 34.1 | 43.3 | — | 4 years ago | |
| rector/rector | 0.73 | Rector instantly upgrades and refactors PHP code. Automate migrations from PHP 5.3–8.5 and major frameworks (Symfony, PHPUnit, Doctrine), apply single rules or rule sets, and run in CI to keep code quality high with safe, repeatable changes. | 10,264 | 10,261 | 740 | 4M | 24 | 77.0 | 51.4 | MIT | 1 day ago |
How can I help you explore Laravel packages today?