Simple PHP package for add two numbers

Maintainers

Details

github.com/nazububu/sum

Source

Issues

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 2

Forks: 2

Open Issues: 1

pkg:composer/nazububu/sum

1.1 2022-06-07 14:59 UTC

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/