PHPackages                             quicksolve/laravel-calc - 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. quicksolve/laravel-calc

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

quicksolve/laravel-calc
=======================

High-precision calculation engine for Laravel POS.

v1.0.1(3mo ago)04↓90.9%1[1 issues](https://github.com/QuickSolve-JS/QuickSolve-JS/issues)MITPHPPHP &gt;=8.1CI passing

Since Mar 30Pushed 2mo agoCompare

[ Source](https://github.com/QuickSolve-JS/QuickSolve-JS)[ Packagist](https://packagist.org/packages/quicksolve/laravel-calc)[ RSS](/packages/quicksolve-laravel-calc/feed)WikiDiscussions main Synced 3w ago

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

---

 [![QuickSolve-JS](https://camo.githubusercontent.com/15ac6fcabb94c6966bc0a2eb7325cc211e5f24282af86a8428bbe806b1c3bf39/68747470733a2f2f692e6962622e636f2f6d353266737030302f517569636b2d536f6c76652d4a532e6a7067)](https://camo.githubusercontent.com/15ac6fcabb94c6966bc0a2eb7325cc211e5f24282af86a8428bbe806b1c3bf39/68747470733a2f2f692e6962622e636f2f6d353266737030302f517569636b2d536f6c76652d4a532e6a7067)

QuickSolve Calculation Engine 🚀
===============================

[](#quicksolve-calculation-engine-)

 [![PHP Version](https://camo.githubusercontent.com/ff05b421b61ac72823a0639c75d85307c0f16024613fcdab61cc186ede2b30fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d3737376262342e737667)](https://camo.githubusercontent.com/ff05b421b61ac72823a0639c75d85307c0f16024613fcdab61cc186ede2b30fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d3737376262342e737667) [![Laravel Version](https://camo.githubusercontent.com/278fa01466b279db969c95b9d795d8b651d85e3856507465f100789df1e32129/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392e782532307c25323031302e782532307c25323031312e782532307c25323031322e782532307c25323031332e782d6666326432302e737667)](https://camo.githubusercontent.com/278fa01466b279db969c95b9d795d8b651d85e3856507465f100789df1e32129/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392e782532307c25323031302e782532307c25323031312e782532307c25323031322e782532307c25323031332e782d6666326432302e737667) [![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)

A high-precision, action-based calculation engine for Laravel, specifically designed for **POS and Financial Systems**. Built with **SOLID principles** and **BCMath** for "Bank-level" mathematical accuracy.

✨ Features
----------

[](#-features)

- ✅ **Action Pattern:** Clean, modular logic for Taxes and Discounts.
- 🔢 **BCMath Integration:** Eliminates floating-point precision errors.
- 🔗 **Fluent Interface:** Beautiful and readable method chaining.
- 🧪 **Unit Tested:** Ensuring 100% reliability in financial calculations.
- 🚀 **Laravel Ready:** Includes Facades for seamless integration.

📦 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require quicksolve/laravel-calc
```

> **Note:** Ensure the `bcmath` PHP extension is enabled on your server.

🚀 Usage
-------

[](#-usage)

Using the engine is simple and intuitive. You can use the `QuickSolve` Facade:

```
use QuickSolve\Calc\Facades\QuickSolve;

// Basic calculation
$total = QuickSolve::setAmount(1000)
            ->addTax(15)        // Adds 15% Tax
            ->applyFlatDiscount(50) // Deducts flat 50
            ->get();            // Returns 1100.00

// Formatting for display
echo QuickSolve::setAmount(1250.50)->format('LKR');
// Output: LKR 1,250.50
```

🛠 Planned Features (Roadmap)
----------------------------

[](#-planned-features-roadmap)

- **Multiple Tax Support:** Ability to stack multiple tax types (VAT, SSCL, etc.).
- **Service Charges:** Built-in action for hospitality service fees.
- **Rounding Strategies:** Support for various rounding modes (Half Up, Half Down, etc.).

🤝 Contributing
--------------

[](#-contributing)

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

📄 License
---------

[](#-license)

Distributed under the MIT License. See `LICENSE` for more information.

---

Developed with ❤️ by Niduranga Jayarathna

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance83

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/139a52bbcc50fb98db10ce630131413e08ce12ab0752f0b195a1e1ca7bdca390?d=identicon)[niduranga](/maintainers/niduranga)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quicksolve-laravel-calc/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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