1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00
Commit graph

11 commits

Author SHA1 Message Date
578c5c48ba remove pest() 2025-03-11 17:31:46 +01:00
lukinovec
b50e49358a
Add L10 support (#20)
* Add L10 support

* Upgrade phpstan

* Set `archtechx/helpers` version

* Fix PHPStan errors

* Try using older PHPStan version

* Revert PHPStan downgrade

* Delete immutability tests

* Bring back immutability tests

* Correct typehint

* Update immutability tests

* Remove L8 support

* Allow PHP 8.0, run tests for 8.0 as well

* Swap Laravel 9 & 10

* Add setup-php step

* Revert formatting changes

* Fix formatting

* Revert adding setup-php

* Try adding setup-php

* Change formatting

* Remove PHP 8.0

* Fix formatting
2023-02-16 17:06:45 +01:00
David Andersson
269274586a
Fixes #11 - Remove trailing zeros from formatted price (#18)
* Remove trailing zeros from formatted price

* Add setting for how to handle trailing decimal zeros

* Write tests

* Fix code style

* Rewrite function description

* Change test name

* Add empty line at end of file

* rename deleteTrailingDecimalZeros to trimTrailingDecimalZeros

* Fix grammar

* Remove unnecessary parameter declarations

* fix test name

* fix comment grammar

* fix docblock grammar

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-05-16 13:12:13 +02:00
Gaurav
2a60b7b3d8 test: updates 2022-03-15 17:06:44 +05:30
Gaurav
93aeb2c300 feat: extract currency from the formatted string 2022-03-10 11:39:53 +05:30
Gaurav
38c6326a4d feature: money instance creation from a formatted string 2022-03-09 12:50:04 +05:30
Gaurav
dce1269799 text: readme updates and code cleanup 2022-03-08 19:56:34 +05:30
Mikael Dalholm
356aad9cc6 Divide rate with 100
Needed for the calculation to be correct according to the documentation. `$money->addTax(20)` and not `$money->addTax(0.2)`
2021-12-28 11:45:02 +01:00
Samuel Štancl
c6ef5aa54c addDecimal() and subtractDecimal() 2021-11-28 18:47:59 +01:00
Samuel Štancl
f5bf658155 cents() method 2021-11-28 18:38:54 +01:00
Samuel Štancl
8847454577 Initial commit 2021-11-16 19:06:57 +01:00