Download the PHP package spatie/better-types without Composer
On this page you can find all versions of the php package spatie/better-types. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/better-types
More information about spatie/better-types
Files in spatie/better-types
Package better-types
Short Description Improved abstraction for dealing with union and named types.
License MIT
Homepage https://github.com/spatie/better-types
Informations about the package better-types
Better types
Check whether a reflection type or method accepts a given input
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
Usage
Using the Type
class directly:
Using the Method
class:
Using Handlers
to determine which methods accept a given set of input:
Using the Attributes
class to find and instantiate attributes with a fluent API:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Brent Roose
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of better-types with dependencies
illuminate/collections Version ^8.58|^9.0|^10|^11
symfony/polyfill-php81 Version ^1.23