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 | 150K | 0 | 23.3 | 53.0 | MIT | 1 month ago | |
| php-standard-library/interoperability | 0.84 | Lightweight PHP interoperability helpers for working with common standards and cross-package integrations. Provides small, reusable utilities to bridge libraries and normalize behavior without heavy dependencies. | 1 | — | 0 | — | 0 | 20.0 | — | MIT | 2 weeks 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. | 319 | 321 | 15 | 3 | 0 | 11.9 | 0.1 | MIT | 5 years ago | |
| symfony/type-info | 0.83 | Symfony TypeInfo extracts and normalizes PHP type information. Resolve types from reflections or strings, build complex types via factories (nullable, list, generic, enum), cast to readable strings, and query identifiers/conditions for safer tooling and analysis. | 196 | 197 | 4 | 4M | 0 | 31.9 | 65.0 | MIT | 1 week ago | |
| php-standard-library/str | 0.82 | Lightweight string utility library for PHP, providing common helpers for formatting, parsing, and safe string handling. Designed as a simple “standard library” add-on with a small API surface and easy composer integration. | 1 | — | 0 | — | 0 | 20.0 | — | MIT | 2 weeks ago | |
| phpstan/phpstan | 0.82 | 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 | |
| php-standard-library/foundation | 0.82 | 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 | — | 0 | — | 0 | 20.0 | — | MIT | 2 weeks ago | |
| 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 | 0 | 0 | 9K | 0 | 20.6 | 59.7 | MIT | 2 weeks ago | |
| azjezz/psl | 0.81 | PSL is a modern, well-typed standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers safer, predictable APIs for async, collections, networking, I/O, crypto, terminal UI, and robust data validation—replacing brittle built-ins with consistent alternatives. | 1,513 | 1,516 | 83 | 523K | 19 | 46.2 | 48.8 | MIT | 2 weeks ago | |
| php-standard-library/collection | 0.81 | Object-oriented Vector, Map, and Set collections for PHP with both immutable and mutable variants. Part of PHP Standard Library, focused on generic, reusable data structures with consistent APIs. Docs and contribution links available at php-standard-library.dev. | 1 | 0 | 0 | 9K | 0 | 20.6 | 59.3 | MIT | 2 weeks ago | |
| php-standard-library/php-standard-library | 0.81 | 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,513 | 1,512 | 83 | 63K | 19 | 44.7 | 34.2 | MIT | 2 weeks ago | |
| php-standard-library/math | 0.80 | Strictly typed math utilities for PHP with predictable, consistent error handling. Part of the PHP Standard Library project, providing reliable mathematical functions and a stable developer experience for safer numeric operations. | 1 | 0 | 0 | 4K | 0 | 20.6 | 53.9 | MIT | 2 weeks ago | |
| cuyz/valinor | 0.80 | Valinor maps raw input (JSON/arrays) into fully typed PHP objects, validating along the way with clear, human-readable errors. Supports advanced types (PHPStan/Psalm), shaped arrays, generics, ranges, and can normalize objects back to JSON/CSV while preserving structure. | 1,498 | 1,496 | 88 | 1M | 25 | 47.5 | 58.8 | MIT | 2 weeks ago | |
| php-standard-library/json | 0.79 | php-standard-library/json provides JSON encode/decode helpers with sensible defaults and typed exceptions. Safer, clearer error handling than native json_encode/json_decode, ideal for consistent JSON handling in PHP apps and libraries. | 1 | 0 | 0 | 8K | 0 | 20.6 | 58.1 | MIT | 2 weeks ago | |
| php-standard-library/os | 0.77 | 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 | 2K | 0 | 20.6 | 52.6 | 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 | 0 | 0 | 5K | 0 | 20.6 | 55.8 | MIT | 2 weeks ago | |
| php-standard-library/option | 0.77 | Option type for PHP with Some/None to replace nullable values with explicit presence semantics. Helps avoid null checks, clarifies intent, and models optional data safely. Part of PHP Standard Library; see docs and contributing links. | 1 | 0 | 0 | 9K | 0 | 20.6 | 59.4 | MIT | 2 weeks ago | |
| php-standard-library/locale | 0.75 | PHP Standard Library Locale component providing locale-aware formatting and parsing utilities. Helps handle language/region settings, localized dates, numbers, and other internationalization tasks in PHP apps with a lightweight, straightforward API. | 1 | 0 | 0 | 11K | 0 | 20.6 | 60.5 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?