Author: Manuel Lemos
Updated on: 2020-12-17
Posted on: 2020-12-17
Package: Laravel Money Package
This package implements operations with money amounts that go behind money value formatting as text, like for instance deposit and withdraw funds or calculating sums of amounts stored in objects of model classes implemented with the Laravel framework.
This package can greatly simplify complex operations that you may need to perform with money amounts of applications related finances.
About the Laravel Money Package Package
The package Laravel Money Package is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Manipulate model attribute as money values
Here follows in more detail what it does:
This package can manipulate model attribute as money values.
It provides a trait that can be used in model classes of Laravel framework based applications to treat specific attributes as money amounts. Currently it can:
- Format the money attributes to display them in a given currency
- Perform money operations like withdraw an amount (subtraction) or deposit an amount (addition)
- Retrieve model class objects that match certain conditions of the values of the money attributes, like finding all objects with money attributes with given values
- Perform money amount operations with all objects of a model class with money attributes, like calculating the sum of the amounts of money of all objects of a model class
Conclusion
The Laravel Money Package can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
Comments:
No comments were submitted yet.