PHPackages                             aharen/laravel-money - 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. aharen/laravel-money

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

aharen/laravel-money
====================

Simple class with Facade to handle money for Laravel 5.2

v2.0.0(3y ago)12402MITPHPPHP ^7.3|^8.0CI failing

Since Mar 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aharen/laravel-money)[ Packagist](https://packagist.org/packages/aharen/laravel-money)[ RSS](/packages/aharen-laravel-money/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Laravel Money
=============

[](#laravel-money)

Simple class with Facade to handle money for Laravel 5. The class stores and calculates all money related value (eg: prices etc..) in Laari (Pennies)

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

[](#installation)

```
composer require aharen/laravel-money

```

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

[](#configuration)

1. Add `MoneyServiceProvider` to `providers` in `config/app.php`

    aharen\\Money\\MoneyServiceProvider::class,
2. Add `Money` Facade to `aliases` in `config/app.php`

    Money =&gt; aharen\\Money\\MoneyManagerFacade::class,

Usage
-----

[](#usage)

Initiate from either Rufiyaa

```
$money = Money::fromRufiyaa(10);
```

or Laari

```
$money = Money::fromLaari(1000);
```

### Addition

[](#addition)

Expects the provided ammount to be added in Laari

```
Money::fromRufiyaa(20)
         ->add(100) // 1 rufiyaa
         ->inRufiyaa();
```

Adding other money objects

```
Money::fromRufiyaa(20)
         ->add(Money::fromRufiyaa(20.5))
         ->inRufiyaa();
```

### Subtraction

[](#subtraction)

Expects the provided ammount to be subtracted in Laari

```
Money::fromRufiyaa(20)
         ->subtract(100) // 1 rufiyaa
         ->inRufiyaa();
```

Subtracting other money objects

```
Money::fromRufiyaa(20)
         ->subtract(Money::fromRufiyaa(5)
         ->inRufiyaa();
```

### Multiplication

[](#multiplication)

Expects the provided ammount to be multiplied in Laari

```
Money::fromRufiyaa(2)
      ->multiply(200) // 2 rufiyaa
      ->inRufiyaa();
```

Multiplying other money objects

```
Money::fromRufiyaa(20)
       ->multiply(Money::fromRufiyaa(5))
       ->inRufiyaa();
```

### Division

[](#division)

Expects the provided ammount to be multiplied in Laari

```
Money::fromRufiyaa(4)
       ->divide(200) // 2 rufiyaa
       ->inRufiyaa();
```

Dividing other money objects

```
Money::fromRufiyaa(4)
       ->divide(Money::fromRufiyaa(2))
       ->inRufiyaa();
```

### Chaining Methods

[](#chaining-methods)

You have the ability to manipulate the values in a chainable way.

```
Money::fromRufiyaa(20)
       ->add(200) // 2 rufiyaa
       ->subtract(100) // 1 rufiyaa
       ->inRufiyaa();
```

### Output

[](#output)

There are 3 output options available:

1. Output in Laari

```
	$money->inLaari();
```

2. Output in Rufiyaa

```
   $money->inRufiyaa();
```

3. Output in Rufiyaa and Laari

```
	$money->inRufiyaaAndLaari();
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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 ~704 days

Total

4

Last Release

1287d ago

Major Versions

v1.1.1 → v2.0.02022-12-21

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

v2.0.0PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelmoney

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aharen-laravel-money/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[torann/currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.

4031.1M6](/packages/torann-currency)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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