PHPackages                             gesparo/calculator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gesparo/calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gesparo/calculator
==================

This is the test package for hw4

v1.1.1(2y ago)016mitPHPPHP &gt;=7.0

Since Aug 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Gesparo/calculator)[ Packagist](https://packagist.org/packages/gesparo/calculator)[ RSS](/packages/gesparo-calculator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Why do you need this?
=====================

[](#why-do-you-need-this)

This package helps you to make simple arithmetic operations with OOP approach.

Installation
============

[](#installation)

```
composer require gesparo/calculator
```

Usage
=====

[](#usage)

To create a new instance of Calculator class, use the following code:

```
use Gesparo\Calculator\Calculator;

$calc = new Calculator();
```

Then you can make simple arithmetic operations:

```
$calc->add(1, 2); // 3
$calc->subtract(1, 2); // -1
$calc->multiply(1, 2); // 2
$calc->divide(1, 2); // 0.5
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

999d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.1.1PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![Gesparo](https://avatars.githubusercontent.com/u/9802906?v=4)](https://github.com/Gesparo "Gesparo (5 commits)")

### Embed Badge

![Health badge](/badges/gesparo-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/gesparo-calculator/health.svg)](https://phpackages.com/packages/gesparo-calculator)
```

###  Alternatives

[monsoonconsulting/magento2-pwa

Adds a service worker to Magento2 to enable PWA features.

2322.9k](/packages/monsoonconsulting-magento2-pwa)[yii2mod/yii2-selectize

selectize.js wrapper for yii2

1730.7k1](/packages/yii2mod-yii2-selectize)

PHPackages © 2026

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