PHPackages                             herzult/simple-php-easy-plus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. herzult/simple-php-easy-plus

ActiveLibrary

herzult/simple-php-easy-plus
============================

A simple, pragmatic numeric operation api written in PHP. It does addition.

1.2k3546[17 issues](https://github.com/Herzult/SimplePHPEasyPlus/issues)[4 PRs](https://github.com/Herzult/SimplePHPEasyPlus/pulls)PHP

Since Dec 8Pushed 5y ago38 watchersCompare

[ Source](https://github.com/Herzult/SimplePHPEasyPlus)[ Packagist](https://packagist.org/packages/herzult/simple-php-easy-plus)[ RSS](/packages/herzult-simple-php-easy-plus/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

### This awesome yet simple and pragmatic PHP library performs an addition of two numbers.

[](#this-awesome-yet-simple-and-pragmatic-php-library-performs-an-addition-of-two-numbers)

[![Build Status](https://camo.githubusercontent.com/0220aa65f2c6f432b5b3317294505593afda98d66935cc8473e84142a4b61fa4/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4865727a756c742f53696d706c6550485045617379506c75732e706e67)](http://travis-ci.org/Herzult/SimplePHPEasyPlus)

In early stages of Internet, developers were forced to work with poor, dry, imperative, horrific languages. Everything had to be done through austere functions and operators. There was no objects. No interfaces. No dependency injection.

For example, to make something as simple as an addition, our dads had to write: `1+1`. Yeah, really.

Hopefuly now, we have PHP 5.3 and its solid OOP implementation. SimplePHPEasyPlus lets you make this addition in a more fashionable way, using real OOP. It is fast, simple, flexible and tested. To add `1` to `1`, all you have to do is:

```
use SimplePHPEasyPlus\Number\NumberCollection;
use SimplePHPEasyPlus\Number\SimpleNumber;
use SimplePHPEasyPlus\Number\CollectionItemNumberProxy;
use SimplePHPEasyPlus\Parser\SimpleNumberStringParser;
use SimplePHPEasyPlus\Iterator\CallbackIterator;
use SimplePHPEasyPlus\Operator\AdditionOperator;
use SimplePHPEasyPlus\Operation\ArithmeticOperation;
use SimplePHPEasyPlus\Operation\OperationStream;
use SimplePHPEasyPlus\Engine;
use SimplePHPEasyPlus\Calcul\Calcul;
use SimplePHPEasyPlus\Calcul\CalculRunner;

$numberCollection = new NumberCollection();

$numberParser = new SimpleNumberStringParser();

$firstParsedNumber = $numberParser->parse('1');
$firstNumber = new SimpleNumber($firstParsedNumber);
$firstNumberProxy = new CollectionItemNumberProxy($firstNumber);

$numberCollection->add($firstNumberProxy);

$secondParsedNumber = $numberParser->parse('1');
$secondNumber = new SimpleNumber($secondParsedNumber);
$secondNumberProxy = new CollectionItemNumberProxy($secondNumber);

$numberCollection->add($secondNumberProxy);

$addition = new AdditionOperator('SimplePHPEasyPlus\Number\SimpleNumber');

$operation = new ArithmeticOperation($addition);

$engine = new Engine($operation);

$calcul = new Calcul($engine, $numberCollection);

$runner = new CalculRunner();

$runner->run($calcul);

$result = $calcul->getResult();
$numericResult = $result->getValue(); // 2
```

This library is now available for production purposes. Enjoy!

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b618dae136df8ae90c9b560fbcc84ed23917b89139ba653ef0d5d37991bab40?d=identicon)[cordoval](/maintainers/cordoval)

![](https://www.gravatar.com/avatar/b5779a4a3645c0292649fa3bd6c22f422a3ffb6204ff1532179894090cf14119?d=identicon)[Herzult](/maintainers/Herzult)

---

Top Contributors

[![Herzult](https://avatars.githubusercontent.com/u/177588?v=4)](https://github.com/Herzult "Herzult (35 commits)")[![ornicar](https://avatars.githubusercontent.com/u/140370?v=4)](https://github.com/ornicar "ornicar (23 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (11 commits)")[![mbontemps](https://avatars.githubusercontent.com/u/231249?v=4)](https://github.com/mbontemps "mbontemps (2 commits)")[![woodworker](https://avatars.githubusercontent.com/u/85796?v=4)](https://github.com/woodworker "woodworker (2 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (1 commits)")[![ruxkor](https://avatars.githubusercontent.com/u/470181?v=4)](https://github.com/ruxkor "ruxkor (1 commits)")[![sobit](https://avatars.githubusercontent.com/u/1245542?v=4)](https://github.com/sobit "sobit (1 commits)")[![umpirsky](https://avatars.githubusercontent.com/u/208957?v=4)](https://github.com/umpirsky "umpirsky (1 commits)")[![neynt](https://avatars.githubusercontent.com/u/716486?v=4)](https://github.com/neynt "neynt (1 commits)")[![htimur](https://avatars.githubusercontent.com/u/575813?v=4)](https://github.com/htimur "htimur (1 commits)")[![konrness](https://avatars.githubusercontent.com/u/165372?v=4)](https://github.com/konrness "konrness (1 commits)")[![lndbrg](https://avatars.githubusercontent.com/u/90185?v=4)](https://github.com/lndbrg "lndbrg (1 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (1 commits)")

### Embed Badge

![Health badge](/badges/herzult-simple-php-easy-plus/health.svg)

```
[![Health](https://phpackages.com/badges/herzult-simple-php-easy-plus/health.svg)](https://phpackages.com/packages/herzult-simple-php-easy-plus)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
