bmykyta / sum
A simple package to add two numbers with same/different data types.
v1.0.1
2022-05-01 20:18 UTC
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/