Link:  https://github.com/andriichuk/laracash

Laracash is a good package that provides a convenient way to work with the money column as a Value Object.

laracash laravel money package

I created a Laravel package that is

  • a wrapper over MoneyPHP library

  • provides a convenient way to work with the money column as a Value Object

  • uses the Custom Casts Laravel 7.x feature

Core Features

  • Convenient work with the native MoneyPHP library and Laravel Eloquent ORM

  • Money columns casting

  • Currencies columns casting

  • Supported concepts

    • Money columns with default Currency (without a specific column)

    • Currency columns without Money

    • Many Money columns reference to one Currency column

    • Money to Currencies columns mapping