gigac / happymath
Do math operation in spreadsheets formula style
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gigac/happymath
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-10-17 23:51:34 UTC
README
Calculate expressions formula style like spreadsheets
Install
Via Composer
$ composer require gigac/happymath
Usage
$expression = 'AVG(5,3,SUM(1,2,MAX(1,2),3,12))'; $result = new Gigac\HappyMath\HappyMath($expression);
Testing
$ ./vendor/bin/phpunit
ToDo
- Fix subtraction
- Refactor structure
- Finish tests
- Check valid expression
- ...
Credits
License
The MIT License (MIT). Please see License File for more information.