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

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

shipfastlabs/toolkit-calculator
===============================

Calculator tool for the Laravel AI SDK

1.0.0(1mo ago)00MITPHPPHP ^8.4.0

Since May 31Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

shipfastlabs/toolkit-calculator
===============================

[](#shipfastlabstoolkit-calculator)

[![Latest Version](https://camo.githubusercontent.com/1bca96a0e63f0e6af2efce82806afca67e194847ef3f572d7353e7bcdb5869bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686970666173746c6162732f746f6f6c6b69742d63616c63756c61746f722e737667)](https://packagist.org/packages/shipfastlabs/toolkit-calculator)[![Total Downloads](https://camo.githubusercontent.com/83ea5e2bf747993f5516aa3a6abce34aadc195713d0f1f7e212a7666f8c1bf48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686970666173746c6162732f746f6f6c6b69742d63616c63756c61746f722e737667)](https://packagist.org/packages/shipfastlabs/toolkit-calculator)

> Calculator tool for the Laravel AI SDK

Part of the [shipfastlabs/toolkit](https://github.com/shipfastlabs/toolkit) catalog of reusable AI tools for the Laravel AI SDK.

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

[](#installation)

```
composer require shipfastlabs/toolkit-calculator
```

Usage
-----

[](#usage)

Instantiate the tool and pass it to an agent's `tools()`:

```
use Shipfastlabs\Toolkit\Calculator\CalculatorTool;

$tools = [new CalculatorTool];
```

Input schema
------------

[](#input-schema)

ParameterTypeRequiredDescription`expression`stringyesThe mathematical expression to evaluate, e.g. `"3 * (4 + 1)"`.Supports `+`, `-`, `*`, `/`, `%`, `^` (exponent, right-associative), parentheses, unary `+`/`-` and decimal numbers.

Configuration
-------------

[](#configuration)

None. The calculator is pure and ships no config or service provider.

Safety
------

[](#safety)

The expression is parsed by a small recursive-descent evaluator; PHP's `eval()` is never used. Invalid input, division or modulo by zero, and non-finite results are returned to the model as plain strings rather than thrown, so the model can recover.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31663512?v=4)[Pushpak Chhajed](/maintainers/pushpak1300)[@pushpak1300](https://github.com/pushpak1300)

---

Top Contributors

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

---

Tags

ailaravellaravel-aitoollaravelaitoolmathcalculator

### Embed Badge

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

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

###  Alternatives

[eslam-reda-div/filament-copilot

A Filament plugin for AI-powered copilot features.

3510.4k](/packages/eslam-reda-div-filament-copilot)[webcrafts-studio/lens-for-laravel

A local-first WCAG accessibility auditor for Laravel with axe-core, source mapping, CI workflows, and optional AI fixes.

452.8k](/packages/webcrafts-studio-lens-for-laravel)

PHPackages © 2026

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