All posts

Tagged: Fowler's Money pattern

1 article.

Format monetary values by using a Money library and Laravel Blade directives

For a project which has to deal with prices, we decided to use the PHP Money library. It is an implementation of Fowler's Money pattern and has great features and no dependencies. Most important, you shouldn't represent (and store) monetary values by a float. It takes away the problem of rounding er...