Skip to content

Commit

Permalink
refactor: updated moneyphp/money
Browse files Browse the repository at this point in the history
  • Loading branch information
petrknap committed Oct 8, 2023
1 parent 7878239 commit 9d0e999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ use Money\Money;
use PetrKnap\SpaydQr\SpaydQr;

$iban = 'CZ7801000000000000000123';
$amount = 799.50;
$amount = Money::CZK((int)(799.50 * 100));

echo '<img src="' .
SpaydQr::create(
$iban,
Money::CZK($amount * 100)
)->getDataUri()
SpaydQr::create($iban, $amount)
->getDataUri()
. '">';
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"require": {
"php": ">=8.0",
"endroid/qr-code": "^3.5",
"moneyphp/money": "^3.2",
"moneyphp/money": "^4.0",
"sunfoxcz/spayd-php": "^2.0"
},
"require-dev": {
Expand Down

0 comments on commit 9d0e999

Please sign in to comment.