Download the PHP package mattiasgeniar/php-percentages without Composer
On this page you can find all versions of the php package mattiasgeniar/php-percentages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mattiasgeniar/php-percentages
More information about mattiasgeniar/php-percentages
Files in mattiasgeniar/php-percentages
Package php-percentages
Short Description A clean interface to calculate percentages in PHP: changes between values, percentage increases, partial values, ...
License MIT
Homepage https://github.com/mattiasgeniar/php-percentages
Informations about the package php-percentages
A PHP package to work with percentages
A clean interface to calculate percentages in PHP: changes between values, percentage increases, partial values, extensions, ...
Think of it as a very lightweight math library for the basic stuff. Aimed to make your code more readable and easier to understand.
Installation
You can install the package via composer:
Usage
Helper functions
The above expressions can also be used through a variety of helper functions:
percentage()
percentage_between()
percentage_abs_between()
percentage_of()
percentage_extension()
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mattias Geniar
- All Contributors
License
The MIT License (MIT). Please see License File for more information.