PHPackages                             mr.incognito/laravel-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. mr.incognito/laravel-calculator

ActiveLibrary

mr.incognito/laravel-calculator
===============================

A Simple calculator laravel package

v1.1(1y ago)010MITPHPPHP &gt;=8.0

Since Mar 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SandeepX/calcultor-package)[ Packagist](https://packagist.org/packages/mr.incognito/laravel-calculator)[ RSS](/packages/mrincognito-laravel-calculator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Calculator Service
==========================

[](#laravel-calculator-service)

A simple calculator service for Laravel applications that provides basic arithmetic operations such as addition, subtraction, multiplication, and division.

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

[](#installation)

Follow the steps below to install the `mr.incognito/laravel-calculator` package into your Laravel application.

### 1. Install via Composer

[](#1-install-via-composer)

Run the following command to add the package to your Laravel project:

`composer require mr.incognito/laravel-calculator`

### or

[](#or)

`composer require mr.incognito/laravel-calculator --ignore-platform-reqs`

Usage
-----

[](#usage)

Once installed, you can begin using the CalculatorService in your Laravel application.

### 1. Addition

[](#1-addition)

`$result = $calculator::add(5, 10); output 15`

### 2. subtraction

[](#2-subtraction)

`$result = $calculator::subtract(10, 10); output 0`

### 3. multpilication

[](#3-multpilication)

`$result = $calculator::subtract(5, 10); output 50`

### 4. divide

[](#4-divide)

`$result = $calculator::subtract(10, 5); output 2`

### Alternatively, you can resolve the CalculatorService directly from the service container:

[](#alternatively-you-can-resolve-the-calculatorservice-directly-from-the-service-container)

`$calculator = app(MrIncognito\LaravelCalculator\Services\CalculatorService::class); $result = $calculator->add(5, 10); // Returns 15`

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance45

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

2

Last Release

429d ago

### Community

Maintainers

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

---

Top Contributors

[![SandeepX](https://avatars.githubusercontent.com/u/47293893?v=4)](https://github.com/SandeepX "SandeepX (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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