Download the PHP package php-addons/bc-assert without Composer
On this page you can find all versions of the php package php-addons/bc-assert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-addons/bc-assert
More information about php-addons/bc-assert
Files in php-addons/bc-assert
Download php-addons/bc-assert
More information about php-addons/bc-assert
Files in php-addons/bc-assert
Vendor php-addons
Package bc-assert
Short Description A wrapper around webmozart/assert that implements assertions with bcmath functions.
License MIT
Homepage https://github.com/php-addons/bc-assert
Package bc-assert
Short Description A wrapper around webmozart/assert that implements assertions with bcmath functions.
License MIT
Homepage https://github.com/php-addons/bc-assert
Please rate this library. Is it a good library?
Informations about the package bc-assert
Bcmath Assert
A wrapper around webmozart/assert that implements assertions with bcmath functions.
Required PHP 7.3.0 or above.
Installation
How to use
If the last parameter ($scale
) is not set, the default scale from the system will be used.
Assertions
The [Assert
] class provides the following assertions:
Comparison Assertions
Method | Description |
---|---|
bcSame($value, $value2, $message = '', $scale = null) |
Check that a value is identical to another (bccomp($value, $value2, $scale) === 0 ) |
bcNotSame($value, $value2, $message = '', $scale = null) |
Check that a value is not identical to another (bccomp($value, $value2, $scale) !== 0 ) |
bcGreaterThan($value, $value2, $message = '', $scale = null) |
Check that a value is greater than another |
bcGreaterThanEq($value, $value2, $message = '', $scale = null) |
Check that a value is greater than or equal to another |
bcLessThan($value, $value2, $message = '', $scale = null) |
Check that a value is less than another |
bcLessThanEq($value, $value2, $message = '', $scale = null) |
Check that a value is less than or equal to another |
bcRange($value, $min, $max, $message = '', $scale = null) |
Check that a value is within a range |
All versions of bc-assert with dependencies
PHP Build Version
Package Version
The package php-addons/bc-assert contains the following files
Loading the files please wait ....