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

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

agenter-labs/laravel-money
==========================

Currency formatting and conversion package for Laravel

1.2.2(4y ago)0315MITPHPPHP &gt;=5.6.4

Since Nov 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/agenter-labs/laravel-money)[ Packagist](https://packagist.org/packages/agenter-labs/laravel-money)[ RSS](/packages/agenter-labs-laravel-money/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (21)Used By (0)

Currency formatting and conversion package for Laravel
======================================================

[](#currency-formatting-and-conversion-package-for-laravel)

[![Downloads](https://camo.githubusercontent.com/4407d0de47c74678e7108e71eb67eedd8f5002797a67556a7cc2535d8487cab3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616b61756e74696e672f6c61726176656c2d6d6f6e6579)](https://camo.githubusercontent.com/4407d0de47c74678e7108e71eb67eedd8f5002797a67556a7cc2535d8487cab3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616b61756e74696e672f6c61726176656c2d6d6f6e6579)[![Tests](https://camo.githubusercontent.com/8f608fcb977e82052df73eb87395d545b931fd043998512b50634a7231c8eb7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616b61756e74696e672f6c61726176656c2d6d6f6e65792f54657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/8f608fcb977e82052df73eb87395d545b931fd043998512b50634a7231c8eb7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616b61756e74696e672f6c61726176656c2d6d6f6e65792f54657374733f6c6162656c3d7465737473)[![StyleCI](https://camo.githubusercontent.com/58789554dbb390b1f3e1230047ab49c0ed3fc4f965d2f365a2ccbfbe428ff5f2/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3131323132313530382f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://styleci.io/repos/112121508)[![Quality](https://camo.githubusercontent.com/1d09a029ce6132537205ab3f87eab101b7f99e6119d50716239b36fa12cb0789/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f616b61756e74696e672f6c61726176656c2d6d6f6e65793f6c6162656c3d7175616c697479)](https://scrutinizer-ci.com/g/akaunting/laravel-money)[![License](https://camo.githubusercontent.com/a5016802cdb5a6ba6a9870d0f5915748ffee5d0692cc7189c4daf057faff456a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616b61756e74696e672f6c61726176656c2d6d6f6e6579)](LICENSE.md)

This package intends to provide tools for formatting and conversion monetary values in an easy, yet powerful way for Laravel projects.

### Why not use the moneyphp package?

[](#why-not-use-the-moneyphp-package)

Because `moneyphp` uses the `intl` extension for number formatting. `intl` extension isn't present by default on PHP installs and can give [different results](http://moneyphp.org/en/latest/features/formatting.html#intl-formatter) in different servers.

Getting Started
---------------

[](#getting-started)

### 1. Install

[](#1-install)

Run the following command:

```
composer require akaunting/laravel-money
```

### 2. Register (for Laravel &lt; 5.5)

[](#2-register-for-laravel--55)

Register the service provider in `config/app.php`

```
Akaunting\Money\Provider::class,
```

### 3. Publish

[](#3-publish)

Publish config file.

```
php artisan vendor:publish --tag=money
```

### 4. Configure

[](#4-configure)

You can change the currencies information of your app from `config/money.php` file

Usage
-----

[](#usage)

```
use Akaunting\Money\Currency;
use Akaunting\Money\Money;

echo Money::USD(500); // '$5.00' unconverted
echo new Money(500, new Currency('USD')); // '$5.00' unconverted
echo Money::USD(500, true); // '$500.00' converted
echo new Money(500, new Currency('USD'), true); // '$500.00' converted
```

### Advanced

[](#advanced)

```
$m1 = Money::USD(500);
$m2 = Money::EUR(500);

$m1->getCurrency();
$m1->isSameCurrency($m2);
$m1->compare($m2);
$m1->equals($m2);
$m1->greaterThan($m2);
$m1->greaterThanOrEqual($m2);
$m1->lessThan($m2);
$m1->lessThanOrEqual($m2);
$m1->convert(Currency::GBP, 3.5);
$m1->add($m2);
$m1->subtract($m2);
$m1->multiply(2);
$m1->divide(2);
$m1->allocate([1, 1, 1]);
$m1->isZero();
$m1->isPositive();
$m1->isNegative();
$m1->format();
```

### Helpers

[](#helpers)

```
money(500, 'USD')
currency('USD')
```

### Blade Directives

[](#blade-directives)

```
@money(500, 'USD')
@currency('USD')
```

Changelog
---------

[](#changelog)

Please see [Releases](../../releases) for more information what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are more than welcome. You must follow the PSR coding standards.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Denis Duliçi](https://github.com/denisdulici)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~66 days

Recently: every ~109 days

Total

20

Last Release

1819d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

1.1.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd46fd4f768f5e375e0cae98652143335896c9bcb188ae404751e82cefbebcf7?d=identicon)[agenter-labs](/maintainers/agenter-labs)

---

Top Contributors

[![denisdulici](https://avatars.githubusercontent.com/u/5254835?v=4)](https://github.com/denisdulici "denisdulici (44 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (7 commits)")[![cuneytsenturk](https://avatars.githubusercontent.com/u/10936547?v=4)](https://github.com/cuneytsenturk "cuneytsenturk (3 commits)")[![alliuqemal](https://avatars.githubusercontent.com/u/36800086?v=4)](https://github.com/alliuqemal "alliuqemal (2 commits)")[![alanbrande](https://avatars.githubusercontent.com/u/16725715?v=4)](https://github.com/alanbrande "alanbrande (2 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")[![lguima](https://avatars.githubusercontent.com/u/1562097?v=4)](https://github.com/lguima "lguima (1 commits)")

---

Tags

laravelmoneycurrencyconvertformat

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[cknow/laravel-money

Laravel Money

1.0k4.3M22](/packages/cknow-laravel-money)[torann/currency

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

4081.1M6](/packages/torann-currency)[casinelli/currency

Handles currency for Laravel 5.

1911.8k](/packages/casinelli-currency)[ikr/money-math

gmp-based arbitrary precision operations on currency amounts "XXX.YY"; because floats are BAD for representing money

3115.0k1](/packages/ikr-money-math)

PHPackages © 2026

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