sebastian/type
sebastian/type provides lightweight value objects that model PHP’s type system. Useful for tools and libraries that need to represent, compare, and work with types (including complex and composite types) in a consistent, structured way.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sebastian/lines-of-code | 0.80 | sebastian/lines-of-code is a lightweight PHP library for counting lines of code in PHP source files. Useful for reporting, metrics, and tooling, it can be installed via Composer as a runtime or dev dependency. | 1,170 | 1,172 | 8 | 12M | 2 | 27.4 | 65.0 | BSD-3-Clause | 2 months ago | |
| sebastianfeldmann/cli | 0.79 | Lightweight PHP library for building CLI tools: defines commands and options, parses argv, validates input, and renders help/usage output. Clean API for composing console applications with consistent argument handling and exit codes. | 21 | 21 | 8 | 264K | 4 | 29.8 | 65.9 | MIT | 1 year ago | |
| sebastian/phpcpd | 0.79 | PHPCPD is a copy/paste detector for PHP that finds duplicated code (clones) across files and reports duplicate lines and locations. Distributed as a PHAR and installable via Phive. Note: this project is unmaintained and archived. | 2,212 | 2,253 | 189 | 397K | 0 | 8.4 | 22.0 | BSD-3-Clause | — | |
| sebastian/version | 0.78 | Library for deriving a PHP project’s version from Git. Provide a release string and project path; Version::asString() returns the release, a -dev suffix, or git describe output (tags/commits) depending on repo state and release format. | 6,583 | 6,602 | 36 | 13M | 0 | 47.4 | 53.4 | BSD-3-Clause | 2 months ago | |
| rector/type-perfect | 0.78 | 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. | 102 | 101 | 7 | 319K | 0 | 0.7 | 48.2 | MIT | — | |
| tomasvotruba/type-coverage | 0.77 | CLI tool for measuring PHP type coverage. Scans your codebase and reports how much is covered by native types and PHPDoc (params, returns, properties), helping you spot missing types, raise strictness, and improve static analysis readiness. | 208 | 208 | 14 | 581K | 3 | 22.5 | 56.4 | MIT | 4 months ago | |
| sebastian/environment | 0.77 | Runtime environment helper for PHP projects. Detects PHP/HHVM runtime specifics so you can choose safe execution paths, handle version and platform differences, and write portable code with minimal conditionals—useful in libraries and test tooling. | 6,776 | 6,790 | 37 | 13M | 2 | 50.5 | 53.8 | BSD-3-Clause | 4 days ago | |
| php-standard-library/type | 0.77 | 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. | 1 | 0 | 0 | 12K | 0 | 20.6 | 61.3 | MIT | 2 weeks ago | |
| spatie/better-types | 0.77 | 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 | |
| sebastian/complexity | 0.77 | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,252 | 1,255 | 10 | 12M | 1 | 27.6 | 64.7 | BSD-3-Clause | 2 months ago | |
| radebatz/type-info-extras | 0.76 | Extra type information helpers for radebatz/type-info. Adds additional utilities for describing, inspecting, and working with PHP types, improving reflection-based tooling and type metadata in your projects. | 4 | 5 | 0 | 324K | 0 | 22.4 | 65.0 | MIT | 1 month ago | |
| sebastian/object-enumerator | 0.76 | Traverses array structures and object graphs to enumerate all referenced objects, helping you inspect, analyze, or collect objects reachable from complex data structures. Install via Composer for production or as a dev dependency for testing and tooling. | 6,542 | 6,546 | 9 | 12M | 0 | 46.2 | 53.2 | BSD-3-Clause | 2 months ago | |
| php-standard-library/php-standard-library | 0.76 | 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 | |
| phpstan/phpstan-strict-rules | 0.76 | Extra strict, opinionated PHPStan rules for strongly typed PHP. Catches loose/unsafe patterns like non-boolean conditions, useless casts, non-numeric arithmetic, missing strict flags in in_array/array_search, variable overwrites in loops, and switch type mismatches. | 691 | 695 | 58 | 2M | 36 | 45.5 | 74.4 | MIT | 1 month ago | |
| jetbrains/phpstorm-stubs | 0.76 | PHPStorm stubs: syntactically correct PHP files with signatures, constants, and full PHPDoc for PHP core and most extensions. Used by IDEs for completion, inspections, type inference, and documentation popups. Community-maintained for non-standard extensions. | 1,379 | 1,373 | 824 | 2M | 0 | 48.1 | 50.9 | Apache-2.0 | 2 months ago | |
| symfony/type-info | 0.76 | 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 | |
| sebastian/global-state | 0.75 | sebastian/global-state snapshots and restores PHP global state (globals, superglobals, ini settings, etc.), extracted from PHPUnit as a standalone component. Useful for test isolation and detecting side effects by capturing state before and after code runs. | 6,606 | 6,608 | 19 | 12M | 0 | 47.1 | 53.0 | BSD-3-Clause | 2 months ago | |
| phpdocumentor/reflection-common | 0.75 | Shared building blocks for phpDocumentor’s reflection ecosystem. Provides common value objects and utilities used by reflection packages, helping model PHP code elements consistently for parsing, analysis, and documentation tooling. | 9,063 | 9,075 | 21 | 9M | 0 | 49.2 | 48.8 | MIT | 5 years ago | |
| phootwork/collection | 0.66 | phootwork/collection is a lightweight PHP collection library providing convenient data structures and fluent helpers to work with arrays and iterables. Includes common operations like map/filter/reduce, searching, sorting, and easy conversion between collection types. | 39 | 40 | 4 | 980K | 0 | 28.1 | 65.0 | MIT | 1 year ago |
How can I help you explore Laravel packages today?