New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

cline/assert

Assertion library for PHP 8.4+
12,024
Install
composer require cline/assert
Latest Version:4.0.3
PHP:^8.5.0
Laravel:10 – 13
License:MIT
Last Updated:Mar 18, 2026
Links: GitHub  ·  Packagist
Maintainer: faustbrian

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads


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

Assertion Types

Advanced Usage

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.

Related Packages

pestphp/pest-plugin-global-assertions

A plugin to add global assertions to Pest

199,294 7
nunomaduro/laravel-mojito

A lightweight package for testing Laravel views.

498,767 367
marvinrabe/laravel-graphql-test

Provides you with a simple GraphQL testing trait.

435,897 56
okaybueno/validation

Validation as Service for Laravel applications.

4,829 0

Version History

Version Released PHP Laravel License
4.0.3 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
4.0.2 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
4.0.1 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
4.0.0 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
3.4.1 ^8.5.0 ^10.0 || ^11.0 || ^12.0 MIT