kdyby/strict-objects
kdyby/strict-objects provides a PHP trait that makes objects strict: reading or writing undeclared properties throws an exception instead of silently creating dynamic ones. It catches typos and enforces explicit property declarations in Nette projects.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| localheinz/phpstan-rules | 0.85 | A Composer package of PHPStan rules from ergebnis that enforce stricter coding standards, covering areas like final classes, named arguments, and class extension. Install via Composer and include rules.neon, or let phpstan/extension-installer handle it automatically. Best layered on top of PHPStan's... | 462 | 462 | 23 | 382 | 1 | 32.5 | 4.2 | MIT | 1 week ago | |
| dave-liddament/php-language-extensions | 0.85 | PHP Language Extensions adds attributes for immutable classes, pure functions, read-only properties, and named parameters, with PHPStan rules to enforce them. Bring stronger safety and clearer APIs to PHP without waiting for new syntax. | 196 | 193 | 6 | 27K | 4 | 3.9 | 31.3 | MIT | 11 months ago | |
| kkszymanowski/traitor | 0.84 | 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 | 150K | 1 | 3.5 | 41.9 | MIT | 2 years ago | |
| swissspidy/phpstan-no-private | 0.84 | 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 | 187K | 1 | 1.4 | 55.2 | MIT | 1 year ago | |
| voku/phpstan-rules | 0.84 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 7K | 1 | 0.5 | 32.1 | MIT | — | |
| jetbrains/phpstorm-attributes | 0.84 | JetBrains PhpStorm attributes provide PHP 8 attributes for richer code completion and analysis in PhpStorm, including Deprecated, ArrayShape, ObjectShape, and Immutable. Bundled with PhpStorm; add as a dev dependency for other static analysis tools. | 415 | 414 | 11 | 490K | 7 | 21.2 | 50.2 | Apache-2.0 | 2 months ago | |
| php-ddd/domain-driven-design | 0.83 | php-ddd/domain-driven-design helps Laravel/PHP developers structure applications around bounded contexts and domain logic, with reusable DDD building blocks and conventions for entities, value objects, aggregates, repositories, services, and domain events. | 29 | — | 4 | — | 1 | 0.2 | — | MIT | 11 years ago |
|
| shipmonk/phpstan-dev | 0.83 | Utilities for developing PHPStan rules: write expected errors directly in fixture files using // error: comments and avoid brittle line-number assertions. Includes an autofix mode to generate/update inline error comments during rule development. | 7 | 7 | 1 | 6K | 1 | 7.2 | 41.5 | MIT | 9 months ago | |
| slam/phpstan-extensions | 0.83 | 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 | 72 | 13 | 42K | 2 | 21.8 | 43.2 | MIT | 5 months ago | |
| tbn/getter-trait-bundle | 0.83 | tbn/getter-trait-bundle provides reusable PHP traits for adding getter methods to your classes. It reduces boilerplate, keeps property access consistent, and works smoothly in Laravel or standalone PHP projects. | 2 | 2 | 1 | 203 | 0 | 0.0 | 25.4 | MIT | 1 year ago | |
| phpat/phpat | 0.83 | PHP Architecture Tester (PHPat) is a PHPStan extension that lets you define architectural rules in natural language and verify your code complies with them. Enforce layer dependencies, naming, and inheritance rules; catch violations during static analysis. Install via Composer. | 1,290 | 1,273 | 61 | 632K | 11 | 38.2 | 47.1 | MIT | 1 month ago | |
| romanzipp/dto | 0.83 | Lightweight data transfer objects for PHP and Laravel. Define typed properties, cast and validate values, and convert DTOs to and from arrays with ease, keeping request and response data structured and type-safe. | 12 | 12 | 1 | 337 | 1 | 0.2 | 19.7 | MIT | — | |
| dave-liddament/phpstan-php-language-extensions | 0.83 | A PHPStan extension that adds support for extra PHP language features and type declarations, widening static analysis coverage so PHPStan understands more of your code. Helps catch bugs earlier and reduces false positives in Laravel and PHP projects. | 44 | 45 | 4 | 25K | 0 | 2.1 | 38.5 | MIT | 11 months ago | |
| ergebnis/phpstan-rules | 0.83 | A Composer package of PHPStan rules from ergebnis, bundled in rules.neon and auto-included via phpstan/extension-installer. Adds stricter checks such as final classes, forbidden extends, and no named arguments to complement PHPStan core and strict rules. | 461 | 463 | 23 | 649K | 1 | 32.5 | 51.0 | MIT | 1 week ago | |
| zachleigh/laravel-property-bag | 0.83 | Add a flexible property bag to Laravel Eloquent models: store arbitrary key-value data as JSON without extra tables or migrations, with a clean API for setting, getting, and managing custom properties. | 84 | — | 8 | — | 2 | 0.7 | 0.3 | MIT | 6 years ago | |
| php-static-analysis/phpstan-extension | 0.83 | A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. | 15 | 15 | 0 | 2K | 0 | 0.1 | 30.0 | MIT | 1 year ago | |
| widmogrod/php-functional | 0.83 | Functional programming toolkit for PHP with immutable data structures, monads and typed abstractions. Includes Option/Either/Try, collections, pattern matching, and helpers for safer, composable code. Useful for DDD, CQRS and FP-style application architecture. | 369 | 374 | 32 | 264K | 7 | 9.0 | 41.4 | MIT | 1 year ago | |
| micro-module/value-object | 0.83 | Immutable, self-validating value objects for PHP and Laravel. Wrap primitives like emails, IDs, and money in typed classes that guard their own invariants, so invalid values can't exist and domain logic stays clean, testable, and free of scattered validation checks. | 1 | 1 | 1 | 127 | 0 | 0.0 | 25.0 | — | 1 year ago | |
| patchlevel/event-sourcing-phpstan-extension | 0.83 | PHPStan extension for patchlevel/event-sourcing that validates aggregates before runtime: flags uninitialized and unused properties, write-only state, event recording inside apply methods, and state changes outside apply. | 1 | 1 | 0 | 14K | 1 | 15.8 | 59.7 | MIT | 3 months ago | |
| phpstan/phpstan-webmozart-assert | 0.83 | 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. | 185 | 185 | 33 | 639K | 5 | 12.3 | 50.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?