nazububu / sum
Simple PHP package for add two numbers
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 2
Forks: 2
Open Issues: 1
pkg:composer/nazububu/sum
Requires
- php: ^7 || ^8
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2026-01-07 22:37:38 UTC
README
Simple PHP package for add two numbers
Installation
To get the latest version of Sum, simply require the project using Composer:
composer require nazububu/sum
Or manually update require block of composer.json and run composer update.
{
"require": {
"nazububu/sum": "^1.0"
}
}
Using
use Nazububu\Sum\Sum; $sum = new Sum; echo $sum->calculate(1, 1); // 2
Testing
You can run tests with command
vendor/bin/phpunit tests/