How to Implement PHP Money Calculations in Laravel Model Objects - Laravel Money Package package blog

Recommend this page to a friend!
  All package blogs All package blogs   Laravel Money Package Laravel Money Package   Blog Laravel Money Package package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement PHP ...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2020-12-17

Posted on: 2020-12-17

Viewers: 87 (December 2020)

Package: Laravel Money Package

Many applications need to perform operations with money amounts like those that implement e-commerce solutions.

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

1,570,067 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   Laravel Money Package Laravel Money Package   Blog Laravel Money Package package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement PHP ...  

For more information send a message to info at phpclasses dot org.