Use bcmath to calculate correct prices.

This commit is contained in:
Jan Böhmer 2019-09-01 13:56:14 +02:00
parent 43c439bc9e
commit 4391be448d
9 changed files with 82 additions and 98 deletions

85
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "f66e6f1196a0dbebea3453e306b7e58f",
"content-hash": "ce7f2c4f8eb45f90abbc99599f3fbe83",
"packages": [
{
"name": "clue/stream-filter",
@ -1570,54 +1570,6 @@
],
"time": "2019-04-15T16:29:43+00:00"
},
{
"name": "gerardojbaez/money",
"version": "v0.3.1",
"source": {
"type": "git",
"url": "https://github.com/gerardojbaez/money.git",
"reference": "1a29ca19899fad8ae559e9f2c982815ea21f8a6c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/gerardojbaez/money/zipball/1a29ca19899fad8ae559e9f2c982815ea21f8a6c",
"reference": "1a29ca19899fad8ae559e9f2c982815ea21f8a6c",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"require-dev": {
"phpunit/phpunit": "5.4.*"
},
"type": "library",
"autoload": {
"psr-4": {
"Gerardojbaez\\Money\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Gerardo Báez",
"email": "gerardojbaez@gmail.com"
}
],
"description": "A simple and cross-platform alternative to PHP money_format(). 91 currencies supported, including INR.",
"keywords": [
"currency",
"formatter",
"money",
"money_format"
],
"time": "2018-02-24T18:59:00+00:00"
},
{
"name": "guzzlehttp/guzzle",
"version": "6.3.3",
@ -7379,16 +7331,16 @@
},
{
"name": "zendframework/zend-code",
"version": "3.3.1",
"version": "3.3.2",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-code.git",
"reference": "c21db169075c6ec4b342149f446e7b7b724f95eb"
"reference": "936fa7ad4d53897ea3e3eb41b5b760828246a20b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/c21db169075c6ec4b342149f446e7b7b724f95eb",
"reference": "c21db169075c6ec4b342149f446e7b7b724f95eb",
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/936fa7ad4d53897ea3e3eb41b5b760828246a20b",
"reference": "936fa7ad4d53897ea3e3eb41b5b760828246a20b",
"shasum": ""
},
"require": {
@ -7396,10 +7348,10 @@
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
},
"require-dev": {
"doctrine/annotations": "~1.0",
"doctrine/annotations": "^1.0",
"ext-phar": "*",
"phpunit/phpunit": "^6.2.3",
"zendframework/zend-coding-standard": "^1.0.0",
"phpunit/phpunit": "^7.5.15",
"zendframework/zend-coding-standard": "^1.0",
"zendframework/zend-stdlib": "^2.7 || ^3.0"
},
"suggest": {
@ -7422,13 +7374,13 @@
"license": [
"BSD-3-Clause"
],
"description": "provides facilities to generate arbitrary code using an object oriented interface",
"homepage": "https://github.com/zendframework/zend-code",
"description": "Extensions to the PHP Reflection API, static code scanning, and code generation",
"keywords": [
"ZendFramework",
"code",
"zf2"
"zf"
],
"time": "2018-08-13T20:36:59+00:00"
"time": "2019-08-31T14:14:34+00:00"
},
{
"name": "zendframework/zend-eventmanager",
@ -7538,16 +7490,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.2.3",
"version": "v4.2.4",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "e612609022e935f3d0337c1295176505b41188c8"
"reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/e612609022e935f3d0337c1295176505b41188c8",
"reference": "e612609022e935f3d0337c1295176505b41188c8",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"shasum": ""
},
"require": {
@ -7585,7 +7537,7 @@
"parser",
"php"
],
"time": "2019-08-12T20:17:41+00:00"
"time": "2019-09-01T07:51:21+00:00"
},
{
"name": "roave/security-advisories",
@ -8476,7 +8428,8 @@
"ext-ctype": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-mbstring": "*"
"ext-mbstring": "*",
"ext-bcmath": "*"
},
"platform-dev": []
}