money icon indicating copy to clipboard operation
money copied to clipboard

A money and currency library for PHP

Results 22 money issues
Sort by recently updated
recently updated
newest added

Good afternoon, I was wondering if we could safely drop the `final` definition from the classes within the package. I understand the value of defining certain classes as such, but...

on hold

As was discussed here https://github.com/brick/money/issues/38#issuecomment-905386679, it would be handy to be able to extend Money class. Test included.

on hold

Usually exceptions divide into checked and unchecked. It is more [java concept](https://crunchify.com/better-understanding-on-checked-vs-unchecked-exceptions-how-to-handle-exception-better-way-in-java/), but also suitable for php world. When `\LogicException` (unchecked) arises you don't usually want to catch and continue...

I would like to open a discussion about the possibility of implementing a way to override the **context**, and **rounding mode** of money methods. These are hard coded all the...

on hold

Hi, Although you do support custom currencies through `new Currency`, the project does not support the expectation that the Money class may not rely on the ISOCurrencyProvider, and could instead...

In the ExchangeRateProvider interface, we have a getExchangeRate(string $sourceCurrencyCode, string $targetCurrencyCode) method. Can we change the parameter type to getExchangeRate(Currency $sourceCurrency, Currency $targetCurrency)? I'm guessing most databases use an int...

As I was helping a friend designing a money library in javascript ([dinero.js](https://v2.dinerojs.com/docs)), I tried to find how non decimal currencies were solved in PHP libraries, as it's the language...

We have some currencies like BTC which are treated "equally" to other currencies in our database -- it would be nice if instead of needing to make a `new Currency`...

Using laravel, it can automatically serialize array or object into json. For example ```php class IndexController extends Controller { public function index() { return ['amount' => 0.1, 'currency' => 'AUD'];...

# Feature Request IMHO a MoneyMismatchException should not be thrown under certain circumstances when performing arithmetic operations where one Money's amount is exactly zero. For example: 1. 123.45 GBP +...