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

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

devjay/calculator
=================

This Laravel package will do some mathematic calculations

012PHP

Since Aug 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jaygohilmartixhive/laravel-package-calculator)[ Packagist](https://packagist.org/packages/devjay/calculator)[ RSS](/packages/devjay-calculator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-package-calculator
==========================

[](#laravel-package-calculator)

A demo package for Laravel calculator

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

[](#installation)

### Using Composer

[](#using-composer)

```
composer require devjay/calculator
```

Or manually by modifying `composer.json` file:

```
{
    "require": {
        "devjay/calculator": "dev-master"
    }
}
```

And run `composer update && composer dump-autoload`

Then add Service provider to `config/app.php`

```
    'providers' => [
        // ...
        Devjay\Calculator\CalculatorServiceProvider::class,
    ]
```

#### Shortcut methods for common request methods (It will provide you view in response)

[](#shortcut-methods-for-common-request-methods-it-will-provide-you-view-in-response)

For the `GET` request methods shortcut methods are available. For example:

```
Route::get('calculator', function(){
	echo 'Hello from the calculator package!';
});
```

For Adding two value 'a' and 'b' the `GET` request methods is called shown as below:

```
Route::get('add/{a}/{b}', 'Devjay\Calculator\CalculatorController@add');
```

For Substracting two value 'a' and 'b' the `GET` request methods is called shown as below:

```
Route::get('subtract/{a}/{b}', 'Devjay\Calculator\CalculatorController@subtract');
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53734985?v=4)[jaygohilmartixhive](/maintainers/jaygohilmartixhive)[@jaygohilmartixhive](https://github.com/jaygohilmartixhive)

---

Top Contributors

[![jaygohilmartixhive](https://avatars.githubusercontent.com/u/53734985?v=4)](https://github.com/jaygohilmartixhive "jaygohilmartixhive (39 commits)")

### Embed Badge

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

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

###  Alternatives

[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

375765.1k5](/packages/unisharp-laravel-ckeditor)[juststeveking/laravel-feature-flags

A simple to use Feature Flags package for Laravel

17752.4k](/packages/juststeveking-laravel-feature-flags)[phpoffice/phpproject

PHPProject - Read, Create and Write Project Management documents in PHP

20718.0k](/packages/phpoffice-phpproject)[sylius/money-bundle

Currencies and money formatting engine bundle for Symfony.

18670.7k23](/packages/sylius-money-bundle)[roave/psalm-html-output

Psalm HTML Output

23331.9k1](/packages/roave-psalm-html-output)[yireo/magento2-disable-csp

Disable CSP

20141.2k](/packages/yireo-magento2-disable-csp)

PHPackages © 2026

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