bmykyta / sum
A simple package to add two numbers with same/different data types.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bmykyta/sum
Requires
- php: ^8.0
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5
README
Sum
A simple package to add two numbers with same/different data types.
How to install
To get the latest version of Sum, simply require the project using Composer:
composer require bmykyta/sum
Or manually update require block of composer.json and run composer update.
{
"require": {
"bmykyta/sum": "^1.0"
}
}
How to use
use bmykyta\Sum\Sum; $sum = new Sum; echo $sum->calculate(617, 617); // 1234
Execute tests
You can run tests with command
vendor/bin/phpunit tests/