bmykyta/sum

A simple package to add two numbers with same/different data types.

v1.0.1 2022-05-01 20:18 UTC

This package is auto-updated.

Last update: 2025-06-29 02:24:20 UTC


README

Stand With Ukraine

Made in Ukraine Issues Packagist License Packagist PHP Version Support GitHub Repo stars

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/