php-standard-library/type
Runtime type validation for PHP using “Parse, Don’t Validate”: coerce and assert unstructured input into well-typed data. Useful for APIs, configs, and user input with clear parsing rules, assertions, and predictable failures.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| atournayre/assert | 0.87 | — | 0 | 0 | 0 | 23 | 1 | 1.3 | 19.0 | MIT | 3 years ago | |
| spatie/better-types | 0.86 | Reflection-powered type checking for PHP: verify whether a ReflectionType or method signature accepts given arguments (including unions/nullables and named params). Useful for dispatching/overload-like method selection and safer dynamic calls. | 82 | 81 | 5 | 218K | 0 | 16.3 | 52.6 | MIT | 5 months ago | |
| campanda/commons-ensure-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | LGPL-3.0 | 7 years ago | |
| typhoon/type | 0.85 | Typhoon Type provides an object abstraction over PHP’s modern type system for building tools that understand complex types. Define, print (stringify), and work with array shapes, object types, non-empty lists, and more in a consistent API. | 65 | 64 | 2 | 5K | 2 | 20.9 | 30.3 | MIT | 3 months ago | |
| elasticms/helpers | 0.85 | — | 0 | 0 | 0 | 121 | 0 | 32.0 | 33.7 | LGPL-3.0 | 1 month ago | |
| webmozart/assert | 0.85 | Lightweight PHP assertion library for validating method input/output. Provides fast, readable checks via Webmozart\Assert\Assert with consistent error-message placeholders, throwing InvalidArgumentException on failure. Ideal for safer, less repetitive validation code. | 7,650 | 7,721 | 164 | 12M | 24 | 64.1 | 61.3 | MIT | 1 month ago | |
| digitalrevolution/utils | 0.85 | — | 1 | 1 | 8 | 2K | 1 | 26.0 | 48.1 | MIT | 2 months ago | |
| sebastian/type | 0.84 | sebastian/type provides lightweight value objects for representing and working with PHP’s type system (built-in, class, union, intersection, nullable, etc.). Useful for static analysis tools, reflection helpers, and test utilities that need precise type modeling. | 1,503 | 1,504 | 13 | 14M | 1 | 28.1 | 63.0 | BSD-3-Clause | 2 months ago | |
| php-standard-library/interoperability | 0.84 | Lightweight PHP interoperability helpers in the php-standard-library ecosystem. Provides small, standards-oriented utilities to bridge common interfaces and behaviors between components, improving compatibility and reuse without pulling in heavy dependencies. | 1 | 1 | 0 | 30K | 0 | 19.5 | 64.0 | MIT | 2 months ago | |
| arty/php-coding-standard | 0.84 | — | 2 | 3 | 0 | 8 | 0 | 11.8 | 12.5 | MIT | 6 months ago | |
| aaronadal/validator | 0.84 | Lightweight PHP/Laravel validation package providing a simple API to validate data against rules, collect errors, and customize messages. Useful for quick input checking in apps, forms, and APIs without heavy setup. | 0 | 0 | 0 | 24 | 0 | 3.0 | 19.3 | MIT | 5 years ago | |
| respect/validation | 0.84 | Powerful PHP validation engine with 150+ tested validators. Build readable, chainable rules like numeric()->positive()->between(). Includes advanced exception handling and thorough docs. Great for complex input validation in any PHP app. | 6,031 | 6,156 | 772 | 892K | 8 | 69.6 | 39.2 | MIT | 1 month ago | |
| ecphp/php-conventions | 0.84 | Predefined GrumPHP configuration for PHP projects at the European Commission. Adds quality checks via git hooks (or manual runs): license file, composer validation/normalization, linters (YAML/JSON/PHP), Twig CS, PHP-CS-Fixer, PHPCS, PHPStan, Psalm. | 1 | 1 | 1 | 162 | 0 | 0.9 | 28.6 | BSD-3-Clause | 4 years ago | |
| spatie/typed | 0.84 | Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. | 318 | 321 | 15 | 6 | 0 | 1.9 | 0.1 | MIT | 5 years ago | |
| ctrl-f5/ctrl-common | 0.84 | Shared utilities and helpers for the Ctrl-F5 ecosystem: common PHP/Laravel components, small abstractions, and reusable support code used across multiple packages and apps. Intended as a lightweight foundation dependency. | 0 | 0 | 0 | 2 | 0 | 0.0 | 6.6 | — | — | |
| 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 | |
| chameleon-system/sanitycheck | 0.84 | Laravel package for running sanity checks in Chameleon System projects. Provides a structured way to define checks, execute them via CLI, and report results to help catch misconfigurations and deployment issues early in development and operations. | 3 | 3 | 5 | 64 | 0 | 0.3 | 17.0 | MIT | — | |
| braincrafted/symfony2cs-bundle | 0.84 | — | 3 | 4 | 0 | 0 | 0 | 0.6 | — | MIT | 11 years ago | |
| alex-dwt/verified-request | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| antonioturdo/italia-bundle | 0.84 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | MIT | — |
How can I help you explore Laravel packages today?