PHPackages                             khaled-shaaban/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. khaled-shaaban/calculator

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

khaled-shaaban/calculator
=========================

Calculator with minimal mathematical operations for learning purposes

00PHP

Since Mar 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/khaled-shaaban/calculator)[ Packagist](https://packagist.org/packages/khaled-shaaban/calculator)[ RSS](/packages/khaled-shaaban-calculator/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

:Introduction
=============

[](#introduction)

Laravel Calculator package with only + &amp; - operations.

This package was developed for learning purposes.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require khaled-shaaban/calculator
```

Usage
-----

[](#usage)

```
use KhaledShaaban\Calculator\Facades\Calculator;
$result = Calculator::add(4)->subtract(5)->getResult();
```

Available Methods
-----------------

[](#available-methods)

```
Calculator::add(int $number)
Calculator::subtract(int $number)
Calculator::clear() //reset to 0
Calculator::getResult()
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

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/4f1fa395d3a540335148c172dc88ebb2bca95ca9d6b139af793663bea57e1379?d=identicon)[KhaledShaaban](/maintainers/KhaledShaaban)

### Embed Badge

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

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

PHPackages © 2026

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