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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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. | 81 | 81 | 5 | 208K | 0 | 17.6 | 53.2 | MIT | 3 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 | 29K | 0 | 21.3 | 64.9 | MIT | 2 weeks 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 | 171 | 0 | 0.9 | 26.8 | BSD-3-Clause | 4 years ago | |
| lookyman/coding-standard | 0.84 | Opinionated PHP coding standard package for your projects. Install via Composer and reference the bundled ruleset.xml in PHP_CodeSniffer to enforce consistent formatting and style, with room to add your own project-specific rules. | 0 | 0 | 0 | 2 | 0 | 1.1 | 4.7 | MIT | 8 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. | 0 | 321 | — | 1 | — | 1.9 | — | — | — | |
| typhoon/type | 0.83 | 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. | 64 | 63 | 2 | 2K | 2 | 23.2 | 24.8 | MIT | 1 month ago | |
| php-standard-library/foundation | 0.83 | A lightweight PHP foundation library offering common building blocks and utilities to bootstrap projects. Provides reusable helpers and core abstractions to reduce boilerplate and standardize patterns across apps and packages. | 1 | 1 | 0 | 33K | 0 | 21.2 | 64.8 | MIT | 2 weeks ago | |
| korbeil/phpstan-generic-rules | 0.83 | 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 | 8.2 | — | — | 7 months ago | |
| digitalrevolution/utils | 0.83 | — | 1 | 1 | 8 | 3K | 1 | 27.5 | 51.6 | MIT | 1 month ago | |
| flow-php/types | 0.83 | Flow PHP type system library with typed value objects and type definitions for consistent, safe data handling across the Flow ecosystem. Designed for ETL pipelines, it helps enforce data contracts and reduce runtime type errors. | 2 | 2 | 1 | 61K | 0 | 0.0 | 55.3 | MIT | — | |
| arty/php-coding-standard | 0.83 | — | 2 | 3 | 0 | 2 | 0 | 13.9 | 4.6 | MIT | 5 months ago | |
| symfony/type-info | 0.82 | Symfony TypeInfo extracts and normalizes PHP type information from reflections and type strings, with support for generics, nullables, enums, and collections. Resolve types via TypeResolver and work with a rich Type API for inspection and string casting. | 199 | 199 | 3 | 5M | 0 | 33.4 | 65.0 | MIT | 1 week ago | |
| e-lodgy/coding-standard | 0.82 | 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 | |
| boson-php/weak-types | 0.82 | Weak-types helpers for the Boson PHP ecosystem. Install via Composer and use alongside Boson to build desktop apps with configuration, windows, webviews, bindings, scripts, and request interception—see the Boson docs for guides and APIs. | 0 | 0 | 0 | 54 | 0 | 0.0 | 23.7 | MIT | — | |
| php-standard-library/file | 0.82 | Typed PHP file handles for safe reading and writing, with explicit write modes and advisory locking. Part of PHP Standard Library, aiming for clear, reliable filesystem I/O primitives suitable for applications and reusable packages. | 1 | 1 | 0 | 27K | 0 | 21.2 | 64.9 | MIT | 2 weeks ago | |
| phpstan/phpstan-strict-rules | 0.81 | 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 | |
| phpstan/php-8-stubs | 0.80 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 11 | 401K | 4 | 21.0 | 1.3 | MIT | 3 weeks ago | |
| php-standard-library/php-standard-library | 0.79 | PSL is a modern standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers consistent, well-typed APIs for async, collections, I/O, networking, crypto, terminal UI, and more—safer alternatives to built-ins with predictable errors and async-ready design. | 1,543 | 1,544 | 87 | 254K | 21 | 46.2 | 44.0 | MIT | 2 weeks ago | |
| php-standard-library/os | 0.78 | Type-safe OS detection for PHP via an OperatingSystemFamily enum. Quickly identify Windows, macOS, Linux, and more without brittle string checks. Part of PHP Standard Library; lightweight and focused on reliable environment detection. | 0 | 0 | 0 | 929 | 0 | 21.2 | 48.1 | MIT | 2 weeks ago | |
| php-standard-library/filesystem | 0.77 | Type-safe filesystem utilities for PHP Standard Library. Perform common file and directory operations with consistent APIs and proper exception handling, improving safety and clarity over raw PHP functions. Documentation and contribution links included. | 1 | 1 | 0 | 21K | 0 | 21.2 | 64.9 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?