Download the PHP package atournayre/assert without Composer
On this page you can find all versions of the php package atournayre/assert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download atournayre/assert
More information about atournayre/assert
Files in atournayre/assert
Download atournayre/assert
More information about atournayre/assert
Files in atournayre/assert
Vendor atournayre
Package assert
Short Description Assertions to validate method input/output with nice error messages.
License MIT
Package assert
Short Description Assertions to validate method input/output with nice error messages.
License MIT
Please rate this library. Is it a good library?
Informations about the package assert
Atournayre Assert
This library extends webmozart/assert with additional assertions.
Installation
Use Composer to install the package:
Assertions
The [Assert] class provides the following assertions:
Type Assertions
| Method | Description |
|---|---|
isListOf(array $array, string $classOrType, string $message = '') |
Check that the array is a list of a given type |
isMapOf(array $array, string $classOrType, string $message = '') |
Check that the array is a map of a given type |
isType(mixed $value, string $type, string $message = '') |
Check that a value is of a given type |
allIsType(mixed $value, string $type, string $message = '') |
Check that all values are of a given type |
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
License
All contents of this package are licensed under the MIT license.
All versions of assert with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-ctype Version *
webmozart/assert Version ^1.11
symfony/validator Version ^6.2
symfony/intl Version ^6.2
ext-ctype Version *
webmozart/assert Version ^1.11
symfony/validator Version ^6.2
symfony/intl Version ^6.2
The package atournayre/assert contains the following files
Loading the files please wait ...