cline / assert
Assertion library for PHP 8.4+
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cline/assert
Requires
- php: ^8.4.0
- cline/open-rpc: ^1.1.0
- illuminate/bus: ^12.28
- illuminate/http: ^12.28
- illuminate/support: ^12.28
- illuminate/validation: ^12.28
- saloonphp/saloon: ^3.14
- spatie/laravel-data: ^4.17.1
Requires (Dev)
- cline/php-cs-fixer: ^1.0.4
- driftingly/rector-laravel: ^2.0.7
- ergebnis/composer-normalize: ^2.49@dev
- laravel/pint: ^1.25.1
- orchestra/testbench: ^10.6
- pestphp/pest: ^3.8.4
- pestphp/pest-plugin-drift: ^3.0
- pestphp/pest-plugin-laravel: ^3.2
- pestphp/pest-plugin-type-coverage: ^3.6.1
- phpstan/phpstan: ^2.1.31
- rector/rector: ^2.2.3
- symfony/var-dumper: ^7.3.4
README
This library provides a comprehensive assertion library for PHP 8.4+, enabling robust validation and preconditions for your code.
Requirements
Requires PHP 8.4+
Installation
composer require cline/assert
Documentation
- Getting Started - Introduction to assertions and basic usage
- String Assertions - String validation and checks
- Numeric Assertions - Number validation and comparisons
- Array Assertions - Array validation and operations
- Type Assertions - Type checking and validation
- Comparison Assertions - Value comparison utilities
- Object Assertions - Object property and method checks
- Boolean Assertions - Boolean value validation
- Null and Empty Assertions - Null and empty checks
- File System Assertions - File and directory validation
- Validation Assertions - Email, URL, and format validation
- Custom Assertions - Creating custom assertion rules
- Lazy Assertions - Batch validation and error collection
- Assertion Chains - Fluent assertion interface
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.