Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svpernova09/php-easy-math
https://github.com/svpernova09/php-easy-math
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/svpernova09/php-easy-math
- Owner: svpernova09
- License: mit
- Created: 2018-09-15T00:11:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T18:38:12.000Z (9 months ago)
- Last Synced: 2024-10-11T15:48:06.370Z (3 months ago)
- Language: PHP
- Size: 3.9 MB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Easy Math
![](https://github.com/svpernova09/php-easy-math/workflows/.github/workflows/php.yml/badge.svg)
## A simple library to do math for you
PHP Easy Math provides two classes containing two methods each. The Addition class provides the `add()` method which takes two paramters and returns the sum. The Addition class also contains the `sum()` method that will take any number of floats and return the sum. The Subtraction class provides a single `subtract()` class that takes two parameters and will return the difference of the supplied parameters.## Installation
Using [Composer](https://getcomposer.org/):
```
composer require svpernova/php-easy-math
```## Usage
See [example.php](example.php)
## Getting Help
Please open a new [Github issue](https://github.com/svpernova09/php-easy-math/issues/new) detailing your problem.
## Contributing
Pull requests welcome, however since this library was built for demonstration purposes only pull requests may not be merged in an effort to keep the library basic and easy to understand.