sebastian/type
A collection of value objects that model the PHP type system, including simple, union, intersection, and special types. Use it to inspect, compare, and represent type information programmatically in PHP projects.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| flow-php/types | 0.87 | 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 | 2 | 62K | 0 | 0.1 | 55.3 | MIT | — | |
| phpstan/phpstan-strict-rules | 0.86 | Extra strict, opinionated PHPStan rules for defensive, strongly typed PHP: require booleans in conditions, strict function-call flags, numeric arithmetic operands, matching switch types, no useless casts, and safer loop variable handling. | 714 | 721 | 63 | 5M | 35 | 45.9 | 75.1 | MIT | 5 days ago | |
| larastan/larastan | 0.86 | Larastan is a PHPStan extension for Laravel that adds static typing and catches whole classes of bugs before you write tests. It boots your application's container to resolve types only computable at runtime while supporting Laravel's magic. | 6,547 | 6,560 | 529 | 11M | 39 | 85.8 | 78.7 | MIT | 4 days ago | |
| apie/type-converter | 0.86 | Apie type converter converts PHP objects into other objects, ideal for mapping DTOs to domain objects and back. It ships with default converters and lets you easily write your own. | 0 | 0 | 0 | 3K | 0 | 16.4 | 53.7 | MIT | 2 months ago | |
| romanzipp/dto | 0.86 | 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 | 347 | 1 | 0.2 | 19.9 | MIT | — | |
| spatie/typed | 0.86 | 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. | 316 | 317 | 15 | 18 | 0 | 1.9 | 0.2 | MIT | 5 years ago | |
| based/laravel-typescript | 0.86 | based/laravel-typescript generates TypeScript definitions from Laravel models, resources, and routes, keeping frontend and backend types in sync via artisan commands and configurable output. | 396 | 399 | 53 | 1K | 10 | 6.9 | 13.1 | MIT | 5 years ago | |
| tomasvotruba/type-coverage | 0.86 | PHPStan extension that measures and enforces a minimum type declaration coverage rate across your properties, params, and return types. Set per-category thresholds in phpstan.neon and raise them gradually, making it easy to adopt even on legacy projects. | 226 | 223 | 14 | 2M | 0 | 21.0 | 61.7 | MIT | 4 weeks ago | |
| php-standard-library/type | 0.86 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| webparking/laravel-type-safe-collection | 0.86 | Webparking's Laravel Type-Safe Collection adds strongly typed collections to Laravel. Define the permitted item class once to get runtime type checks, clearer errors, IDE autocompletion, and safer map/filter operations, keeping collection contents predictable and preventing mixed-type bugs. | 37 | 37 | 2 | 0 | 0 | 0.5 | — | MIT | 6 years ago | |
| radebatz/type-info-extras | 0.86 | Type Info Extras extends the radebatz/type-info package with additional type classes and utilities for working with complex PHP types. It helps inspect unions, intersections, generics, and docblock types, making it useful for static analysis, reflection, and code generation tools. | 4 | 5 | 0 | 3M | 0 | 22.6 | 64.8 | MIT | 1 week ago | |
| symfony/type-info | 0.85 | Symfony TypeInfo extracts and models PHP type information, resolving types from reflection or strings and letting you build, inspect, and cast types like nullable, list, object, enum, and generic with ease. | 208 | 201 | 3 | 8M | 0 | 34.1 | 64.9 | MIT | 1 week ago | |
| spatie/better-types | 0.85 | 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 | 82 | 5 | 278K | 0 | 9.2 | 51.2 | MIT | 8 months ago | |
| phpstan/phpstan-php-parser | 0.85 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| rector/type-perfect | 0.85 | 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. | 105 | 105 | 7 | 403K | 0 | 10.5 | 43.6 | MIT | 3 months ago | |
| phpdocumentor/reflection-common | 0.85 | ReflectionCommon provides the shared interfaces and base classes behind phpDocumentor's reflection layer, defining common contracts for elements, types, and locations used across the ecosystem. A lightweight, dependency-free foundation for building reflection-based tooling in PHP. | 9,031 | 9,044 | 22 | 12M | 0 | 47.6 | 50.4 | MIT | 1 month ago | |
| diephp/laravel-resources-typescript | 0.85 | — | 3 | 3 | 0 | 91 | 0 | 0.1 | 19.0 | MIT | — | |
| 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 | 196 | 5 | 27K | 3 | 3.1 | 30.6 | MIT | 11 months ago | |
| ergebnis/classy | 0.85 | This Composer package provides collectors for finding classy constructs, including classes, enums, interfaces, and traits, in PHP source code. It offers token-, file-, SplFileInfo-, and Finder-based collectors to gather these declarations for analysis or tooling. | 39 | 39 | 4 | 60K | 0 | 24.7 | 50.7 | MIT | 1 month ago | |
| php-standard-library/foundation | 0.85 | Foundation provides the core building blocks for PHP Standard Library packages: a consistent exception hierarchy, the Ref reference wrapper for safe value passing, and invariant functions for validating preconditions and enforcing assumptions. Lightweight, dependency-free, and designed for reuse acr... | 1 | 1 | 0 | 105K | 0 | 21.6 | 64.9 | MIT | 1 week ago |
How can I help you explore Laravel packages today?