Simple PHP package for add two numbers

Maintainers

Package info

github.com/nazububu/sum

pkg:composer/nazububu/sum

Statistics

Installs: 34

Dependents: 0

Suggesters: 0

Stars: 18

Open Issues: 1

1.1 2022-06-07 14:59 UTC

This package is auto-updated.

Last update: 2026-03-07 23:06:46 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/