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

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

laranex/laravel-money
=====================

A Laravel package to work with Money Fields

02[4 PRs](https://github.com/laranex/laravel-money/pulls)PHPCI passing

Since Oct 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/laranex/laravel-money)[ Packagist](https://packagist.org/packages/laranex/laravel-money)[ RSS](/packages/laranex-laravel-money/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

A Laravel package to work with Money Fields
===========================================

[](#a-laravel-package-to-work-with-money-fields)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ee2ca9d742ed73be8e72a2da57aad021c13c62145df1c1eab925ca9bb946eb9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e65782f6c61726176656c2d6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laranex/laravel-money)[![GitHub Tests Action Status](https://camo.githubusercontent.com/55d104e2bed0b3a644a9e81784977cab3b1a47fb0f0dcdf3a54aee8d10f0a119/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6172616e65782f6c61726176656c2d6d6f6e65792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/laranex/laravel-money/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/acd795056e9580886f8d63dcf7758a7d1ff99cdebc46747e6be8373e67f294d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6172616e65782f6c61726176656c2d6d6f6e65792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/laranex/laravel-money/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3446801552b083a3f577e915ccce577e8e98c6b163ac3a54f8a238e6893b351d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616e65782f6c61726176656c2d6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laranex/laravel-money)

Tired of working with money fields in Laravel? This package is for you. It provides a simple way to work with money fields in Laravel. Before using this package, get yourself familiar with [MoneyPHP](https://moneyphp.org/).

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

[](#installation)

You can install the package via composer:

```
composer require laranex/laravel-money
```

Usage
-----

[](#usage)

- parseMoney (A helper to convert string into Money/Money Object. See More At [\\Laranex\\LaravelMoney\\LaravelMoney.php](./src/LaravelMoney.php)```
    (new \Laranex\LaravelMoney\LaravelMoney())->parseMoney($amount);
    \Laranex\LaravelMoney\Facades\LaravelMoney::parseMoney($amount);
    ```
- MoneyTrait (A trait to work with money fields in Laravel Eloquent Model. See More At [\\Laranex\\LaravelMoney\\HasMoneyFields.php](./src/Traits/HasMoneyFields.php)```
    use Laranex\LaravelMoney\Traits\HasMoneyFields;

    class Wallet extends Model
    {
        protected $moneyFields = ['balance'];

        use HasMoneyFields;
    }

    // Storing Money Field
    $wallet = new Wallet();
    $wallet->balance = \Laranex\LaravelMoney\Facades\LaravelMoney::parseMoney($amount);

    // Retrieving Money Field
    $wallet = Wallet::find(1);
    $moneyObject = $wallet->balance; // Returns Money Object
    ```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Nay Thu Khant](https://github.com/naythukhant)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance60

Regular maintenance activity

Popularity2

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.6% 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://www.gravatar.com/avatar/e2325853b60b6406c6858e62ccac7bc18920067222cd3d704e288aacc0d29798?d=identicon)[NayThuKhant](/maintainers/NayThuKhant)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (359 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (26 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (23 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (20 commits)")[![pforret](https://avatars.githubusercontent.com/u/474312?v=4)](https://github.com/pforret "pforret (16 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (14 commits)")[![patinthehat](https://avatars.githubusercontent.com/u/5508707?v=4)](https://github.com/patinthehat "patinthehat (10 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (9 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (8 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (7 commits)")[![NayThuKhant](https://avatars.githubusercontent.com/u/61656360?v=4)](https://github.com/NayThuKhant "NayThuKhant (7 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (7 commits)")[![thecaliskan](https://avatars.githubusercontent.com/u/13554944?v=4)](https://github.com/thecaliskan "thecaliskan (5 commits)")[![irfanm96](https://avatars.githubusercontent.com/u/42065936?v=4)](https://github.com/irfanm96 "irfanm96 (5 commits)")[![IGedeon](https://avatars.githubusercontent.com/u/694313?v=4)](https://github.com/IGedeon "IGedeon (4 commits)")[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (3 commits)")[![jessarcher](https://avatars.githubusercontent.com/u/4977161?v=4)](https://github.com/jessarcher "jessarcher (3 commits)")[![koossaayy](https://avatars.githubusercontent.com/u/6431084?v=4)](https://github.com/koossaayy "koossaayy (3 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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