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. | 155 | 154 | 23 | 211K | 1 | 28.4 | 50.9 | MIT | 2 months 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 | 5K | 0 | 0.0 | 43.0 | — | — | |
| phpstan/phpstan-strict-rules | 0.89 | Extra-strict, opinionated PHPStan rules for highly defensive, strongly typed PHP. Enforces boolean conditions, numeric operands, strict calls (e.g., in_array), detects useless casts, prevents loop variable overwrites, and requires matching switch/case types. | 703 | 713 | 62 | 3M | 38 | 47.0 | 75.0 | MIT | 3 days ago | |
| 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 | 1K | 0 | 10.7 | 42.6 | MIT | 6 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. | 14,036 | 14,104 | 954 | 9M | 1,060 | 94.2 | 72.3 | MIT | 2 weeks 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 | 5 | 1 | 2.6 | 10.7 | 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,456 | 6,460 | 497 | 5M | 85 | 87.3 | 72.5 | MIT | 1 month ago | |
| korbeil/phpstan-generic-rules | 0.84 | 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 | 9.0 | 39.5 | — | 9 months 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 | 17.6 | 39.2 | Apache-2.0 | 5 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 | 29K | 0 | 5.0 | 41.0 | MIT | 11 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 | 227K | 6 | 34.2 | 59.1 | MIT | 2 weeks 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. | 268 | 267 | 30 | 538K | 0 | 22.1 | 52.8 | 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 | 234K | 3 | 26.2 | 57.7 | — | 4 weeks 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. | 535 | 538 | 57 | 4M | 36 | 44.7 | 78.9 | MIT | 2 weeks ago | |
| crudly/testly | 0.58 | A simple test package placeholder for crudly/testly. Currently contains minimal scaffolding and documentation (“This is a test”) and may be used for experimentation or as a starting point for future CRUD-related tooling. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 6 years ago | |
| stillat/proteus | 0.58 | 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 | 19K | 0 | 27.3 | 48.7 | MIT | 3 days ago | |
| endroid/quality | 0.58 | Quality-related helper package by Endroid for PHP/Laravel apps, providing small utilities for enforcing or improving code/data quality in your project. Suitable as a lightweight dependency when you need simple quality checks or supporting components. | 3 | 3 | 1 | 123 | 0 | 0.0 | 20.7 | — | — | |
| laracasts/testdummy | 0.57 | Generate Eloquent models for tests without factories. Define blueprints and quickly create/build records with sensible defaults, relationships, and overrides—ideal for speeding up Laravel test setup and prototyping with minimal boilerplate. | 456 | 467 | 78 | 3K | 17 | 19.1 | 19.5 | MIT | 5 years ago | |
| contributte/tester | 0.57 | Contributte Tester integrates Nette Tester into your project with a ready-to-use setup and tooling. Install via Composer and follow the included docs to run and manage automated tests on PHP 8.2+ with Nette 3.2+. | 2 | 3 | 2 | 3K | 1 | 11.4 | 44.8 | MIT | 6 months ago | |
| mockery/mockery | 0.57 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,724 | 10,811 | 466 | 10M | 106 | 68.0 | 62.4 | BSD-3-Clause | 2 years ago |
How can I help you explore Laravel packages today?