{"repo":"PostScripton/laravel-money","free":true,"listed":false,"github":"https://github.com/PostScripton/laravel-money","clone":"git clone https://github.com/PostScripton/laravel-money.git","description":"💵 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","language":"PHP","stars":19,"topics":["currency","php","convert-numbers","database","money","money-converter","laravel","rate-exchange","formatting","exchage-rates"],"license":"MIT","category":"databases-storage","readme_excerpt":"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 - 3.x to 4.x Requirements - PHP: ^8.1 - guzzlehttp/guzzle : ^7.5 - bcmath extension Installation Publishing Publish the config file through: or After all, the config file at config/money.php should be modified for your own purposes. Table of Contents 1. ⏰ Quick start 2. ✅ Usage - 🧰 Creating - 🖨️ Output - 📄 Cloning - 🎯 Casting - 🚨 Validation rule 3. 🎨️ Formatting 4. 💲 Currencies - Default currency - Information - Position - Display - Preferred symbol - Collection methods 5. 💵 Money - 💲 Currency - Static methods - Money::setFormatter() - Money::of() - Money::zero() - Money::parse() - Money::min() - Money::max() - Money::avg() - Money::sum() - Object methods - Getters - getAmount() - Calculations - add() - subtract() - multiply() - divide() - rebase() - Object manipulations - floor() - ceil() - absolute() - negate() - clone() - Logical operations - Comparing currencies - isNegative() - isPositive() - isZero() - lessThan() - lessThanOrEqual() - greaterThan() - greaterThanOrEqual() - equals() - Converting to string - Converting currencies 6. API rate exchangers - Add your own License Laravel-money is an open-source library under the MIT lic","default_branch":null,"files":null,"tree":[],"storefront":"/r/PostScripton","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PostScripton/laravel-money/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}