There is no license information available for the latest version (1.0.0) of this package.

A simple library to do math for you

1.0.0 2018-09-15 00:24 UTC

This package is auto-updated.

Last update: 2024-07-19 19:11:51 UTC


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.


Using Composer:

composer require svpernova/php-easy-math


See example.php

Getting Help

Please open a new Github issue detailing your problem.


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.