fonclub / laravel-money

πŸ’΅ Laravel Money is an open source package that provides you a convinient way to work with numbers from database with high precision and use them as monetary objects

Home Page:https://packagist.org/packages/postscripton/laravel-money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Banner Logo

Introduction

πŸ’΅ Laravel Money is an open source package that provides you a convinient way to work with numbers from database with high precision and use them as monetary objects. With this package, you can easily operate, compare, format, and even convert monetary objects to other currencies using external API providers.

Upgrade guide

Requirements

  • PHP: ^8.1
  • guzzlehttp/guzzle: ^7.5
  • bcmath extension

Installation

composer require postscripton/laravel-money 

Publishing

Publish the config file through:

php artisan vendor:publish --provider=PostScription\Money\MoneyServiceProvider

or

php artisan vendor:publish --tag=money

After all, the config file at config/money.php should be modified for your own purposes.

Table of Contents

  1. ⏰ Quick start
  2. βœ… Usage
  3. 🎨️ Formatting
  4. πŸ’² Currencies
  5. πŸ’΅ Money
  6. API rate exchangers

License

Laravel-money is an open-source library under the MIT license.

About

πŸ’΅ Laravel Money is an open source package that provides you a convinient way to work with numbers from database with high precision and use them as monetary objects

https://packagist.org/packages/postscripton/laravel-money

License:MIT License


Languages

Language:PHP 99.8%Language:Dockerfile 0.2%