Shift
626200a79c
Bump dependencies for Laravel 12
2025-02-16 19:20:07 +00:00
b642e32a4b
Resolve PHP 8.4 deprecations ( fix #24 )
2024-12-29 03:10:59 +01:00
Samuel Štancl
8a0eeae7c7
Add Laravel 11 support ( #23 )
...
* drop L9, add L11 support
* bump PHP version
* bump archtechx/helpers dependency
* add setup-php to all ci jobs
2024-03-29 02:12:37 +01:00
Samuel Štancl
9ea102297d
change default rate to a float value
2023-03-24 23:09:45 +01:00
David Andersson
e1ae6f3fcb
Update README.md ( #21 )
...
Sorry to even bother you with such a small typo, but it should not take you that many seconds to approve. :)
2023-03-23 14:05:31 +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
Michael Vickers
b1b02f459d
Readme decimals method ( #19 )
...
Correct decimal method name
2022-08-06 02:16:37 +02:00
Samuel Štancl
fd2fa86cf0
Fix array syntax in example
2022-05-26 16:08:09 +02:00
PHP CS Fixer
2021b13092
Fix code style (php-cs-fixer)
2022-05-16 11:12:34 +00: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
Samuel Štancl
545610efb0
Merge pull request #16 from gauravmak/from_string_implementation
...
Money instance creation from a formatted string
2022-04-05 15:26:05 +02:00
Gaurav
5952ace37e
text: exception message and docblock updates
2022-04-05 09:49:36 +05:30
Gaurav
34740e66a6
fix: import exception
2022-03-31 10:09:40 +05:30
Gaurav
2a60b7b3d8
test: updates
2022-03-15 17:06:44 +05:30
Gaurav
d6cb1ba6ae
update: add dedicated exception class
2022-03-15 17:03:57 +05:30
Gaurav Makhecha
96786939bd
Apply text suggestions from code review
...
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-03-15 16:46:08 +05:30
Gaurav
a8d32a0be8
fix: no more currency guessing
2022-03-10 11:45:39 +05:30
Gaurav
93aeb2c300
feat: extract currency from the formatted string
2022-03-10 11:39:53 +05:30
Samuel Štancl
db2d96ec06
Merge pull request #15 from gauravmak/master
...
Docker-compose not required
2022-03-09 15:07:54 +01:00
Gaurav
c18cb97b61
fix: remove unused .env variable
2022-03-09 19:16:16 +05:30
PHP CS Fixer
fa337d29b4
Fix code style (php-cs-fixer)
2022-03-09 07:37:04 +00:00
Gaurav
2329dcf790
Merge branch 'from_string_implementation' of github.com:gauravmak/money into from_string_implementation
2022-03-09 13:06:45 +05:30
Gaurav
77bec6ed02
fix: make PHPStan happy by protecting against some rare scenarios
2022-03-09 13:06:40 +05:30
PHP CS Fixer
01fd16f71b
Fix code style (php-cs-fixer)
2022-03-09 07:20:34 +00:00
Gaurav
38c6326a4d
feature: money instance creation from a formatted string
2022-03-09 12:50:04 +05:30
Gaurav
8bdf0d1a2b
refactor: improve code readability
2022-03-09 12:49:00 +05:30
Gaurav
f74cade383
cleanup: docker-compose not required
2022-03-09 09:31:00 +05:30
Samuel Štancl
c7ccaa42c5
Merge pull request #14 from gauravmak/master
...
Readme updates and code cleanup
2022-03-08 20:54:12 +01:00
Gaurav
dce1269799
text: readme updates and code cleanup
2022-03-08 19:56:34 +05:30
Samuel Štancl
1b34e3f4c2
Merge pull request #13 from archtechx/l9-support-preparing
...
Support Laravel 9
2022-01-20 21:35:39 +01:00
Abrar Ahmad
16f343e758
Merge branch 'l9-support-preparing' of https://github.com/archtechx/money into l9-support-preparing
2022-01-21 00:19:38 +05:00
Abrar Ahmad
02f3dddef0
Update ci.yml
2022-01-21 00:18:01 +05:00
Abrar Ahmad
43fd8c873b
Update .github/workflows/ci.yml
...
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-01-20 23:49:15 +05:00
Abrar Ahmad
fda9ade4d8
Update ci.yml
2022-01-20 23:46:14 +05:00
Abrar Ahmad
e280bf0a8b
wip
2022-01-20 23:42:07 +05:00
Samuel Štancl
4474c2b115
Merge pull request #6 from dalholm/master
...
Divide rate with 100
2021-12-28 16:10:22 +01:00
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
8ca21240df
Make new() public
2021-12-13 01:18:37 +01:00
Samuel Štancl
0d8e3c824f
Support any version of archtechx/helpers
2021-12-09 17:52:56 +01:00
Samuel Štancl
c6ef5aa54c
addDecimal() and subtractDecimal()
2021-11-28 18:47:59 +01:00
Samuel Štancl
b6b94e0530
Merge branch 'master' of github.com:archtechx/money
2021-11-28 18:39:06 +01:00
Samuel Štancl
f5bf658155
cents() method
2021-11-28 18:38:54 +01:00
Samuel Štancl
37efb95b9d
Merge pull request #4 from archtechx/fix-readme
...
Fix typo (fromDecimals -> fromDecimal)
2021-11-18 11:05:54 +01:00
lukinovec
83f86e851f
Fix typo (fromDecimals -> fromDecimal)
2021-11-18 10:27:21 +01:00
Samuel Štancl
9283895769
Fix syntax highlighting
2021-11-17 20:53:14 +01:00
Samuel Štancl
ab97f27fd1
Update README.md
2021-11-17 10:37:58 +01:00
Samuel Štancl
0a1552b1f0
Update README.md
2021-11-16 21:57:09 +01:00
Samuel Štancl
b57b9837a0
Update README.md
2021-11-16 21:34:22 +01:00
Samuel Štancl
8dc5287868
Update README.md
2021-11-16 21:22:26 +01:00
Samuel Štancl
5b7e3e118a
wip
2021-11-16 21:06:45 +01:00