Moved away from the phpmoney library since it requires intl extension
This commit is contained in:
parent
777bd5e26d
commit
e03abc1a64
@ -71,8 +71,9 @@ class FinanceService extends BaseService
|
||||
* Get the user's payment amount for a PIREP
|
||||
* @param Pirep $pirep
|
||||
* @return Money
|
||||
* @throws \Money\Exception\UnknownCurrencyException
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \Money\Exception\UnknownCurrencyException
|
||||
*/
|
||||
public function getPilotPilotPay(Pirep $pirep)
|
||||
{
|
||||
|
@ -5,10 +5,8 @@
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Money\Currencies\ISOCurrencies;
|
||||
use Money\Currency;
|
||||
use Money\Formatter\DecimalMoneyFormatter;
|
||||
use Money\Money as MoneyBase;
|
||||
use Akaunting\Money\Currency;
|
||||
use Akaunting\Money\Money as MoneyBase;
|
||||
|
||||
/**
|
||||
* Compositional wrapper to MoneyPHP with some helpers
|
||||
@ -25,6 +23,7 @@ class Money
|
||||
/**
|
||||
* @param $amount
|
||||
* @return MoneyBase
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public static function create($amount)
|
||||
@ -36,20 +35,16 @@ class Money
|
||||
* Convert a whole unit into it's subunit, e,g: dollar to cents
|
||||
* @param $amount
|
||||
* @return float|int
|
||||
* @throws \Money\Exception\UnknownCurrencyException
|
||||
*/
|
||||
public static function convertToSubunit($amount)
|
||||
{
|
||||
if (!self::$subunit_multiplier) {
|
||||
self::$iso_currencies = new ISOCurrencies();
|
||||
static::$subunit_multiplier = 10 ** self::$iso_currencies->subunitFor(static::currency());
|
||||
}
|
||||
|
||||
return $amount * static::$subunit_multiplier;
|
||||
$currency = config('phpvms.currency');
|
||||
return $amount * config('money.'.$currency.'.subunit');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Currency
|
||||
* @throws \OutOfBoundsException
|
||||
*/
|
||||
public static function currency()
|
||||
{
|
||||
@ -59,7 +54,7 @@ class Money
|
||||
/**
|
||||
* Money constructor.
|
||||
* @param $amount
|
||||
* @throws \Money\Exception\UnknownCurrencyException
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function __construct($amount)
|
||||
@ -68,6 +63,14 @@ class Money
|
||||
$this->money = static::create($amount);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->money->getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MoneyBase
|
||||
*/
|
||||
@ -77,12 +80,11 @@ class Money
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return int
|
||||
*/
|
||||
public function getAmount()
|
||||
public function getPrecision()
|
||||
{
|
||||
$moneyFormatter = new DecimalMoneyFormatter(self::$iso_currencies);
|
||||
return $moneyFormatter->format($this->money);
|
||||
return $this->money->getCurrency()->getPrecision();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -91,8 +93,7 @@ class Money
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
// TODO: Implement __toString() method.
|
||||
return $this->money->getAmount();
|
||||
return $this->money->format();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -107,6 +108,7 @@ class Money
|
||||
/**
|
||||
* @param $percent
|
||||
* @return $this
|
||||
* @throws \OutOfBoundsException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function addPercent($percent)
|
||||
@ -124,6 +126,7 @@ class Money
|
||||
* Subtract an amount
|
||||
* @param $amount
|
||||
* @return Money
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function subtract($amount)
|
||||
{
|
||||
@ -135,6 +138,8 @@ class Money
|
||||
* Multiply by an amount
|
||||
* @param $amount
|
||||
* @return Money
|
||||
* @throws \OutOfBoundsException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function multiply($amount)
|
||||
{
|
||||
@ -146,6 +151,8 @@ class Money
|
||||
* Divide by an amount
|
||||
* @param $amount
|
||||
* @return Money
|
||||
* @throws \OutOfBoundsException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function divide($amount)
|
||||
{
|
||||
@ -156,7 +163,7 @@ class Money
|
||||
/**
|
||||
* @param $money
|
||||
* @return bool
|
||||
* @throws \Money\Exception\UnknownCurrencyException
|
||||
* @throws \UnexpectedValueException
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function equals($money)
|
||||
|
@ -36,7 +36,7 @@
|
||||
"vierbergenlars/php-semver": "3.0.x",
|
||||
"php-units-of-measure/php-units-of-measure": "2.1.x",
|
||||
"markrogoyski/math-php": "^0.38.0",
|
||||
"moneyphp/money": "^3.1"
|
||||
"akaunting/money": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~7.0",
|
||||
|
338
composer.lock
generated
338
composer.lock
generated
@ -4,8 +4,69 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "3537cd8fc6b9ca36d3d6f7bb9080a130",
|
||||
"content-hash": "fbfbc4dcf0b6ac78e6aa35c15736fd34",
|
||||
"packages": [
|
||||
{
|
||||
"name": "akaunting/money",
|
||||
"version": "1.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/akaunting/money.git",
|
||||
"reference": "a39d0e18e1e56da8d82760528376fb797c161552"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/akaunting/money/zipball/a39d0e18e1e56da8d82760528376fb797c161552",
|
||||
"reference": "a39d0e18e1e56da8d82760528376fb797c161552",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/support": ">=5.1",
|
||||
"illuminate/view": ">=5.1",
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "~0.9",
|
||||
"phpunit/phpunit": "~4.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Akaunting\\Money\\Provider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Akaunting\\Money\\": "./src"
|
||||
},
|
||||
"files": [
|
||||
"src/helpers.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Denis Duliçi",
|
||||
"email": "info@akaunting.com",
|
||||
"homepage": "https://akaunting.com",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Currency formatting and conversion package for Laravel.",
|
||||
"keywords": [
|
||||
"convert",
|
||||
"currency",
|
||||
"format",
|
||||
"laravel",
|
||||
"money"
|
||||
],
|
||||
"time": "2017-12-09T07:25:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "arrilot/laravel-widgets",
|
||||
"version": "3.9.0",
|
||||
@ -120,7 +181,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Common classes for PSR-6 adapters",
|
||||
"homepage": "http://www.php-cache.com/en/latest/",
|
||||
"homepage": "https://www.php-cache.com/en/latest/",
|
||||
"keywords": [
|
||||
"cache",
|
||||
"psr-6",
|
||||
@ -188,7 +249,7 @@
|
||||
}
|
||||
],
|
||||
"description": "A PSR-6 cache implementation using a php array. This implementation supports tags",
|
||||
"homepage": "http://www.php-cache.com/en/latest/",
|
||||
"homepage": "https://www.php-cache.com/en/latest/",
|
||||
"keywords": [
|
||||
"array",
|
||||
"cache",
|
||||
@ -250,7 +311,7 @@
|
||||
}
|
||||
],
|
||||
"description": "A helper trait and interface to your PSR-6 cache to support hierarchical keys.",
|
||||
"homepage": "http://www.php-cache.com/en/latest/",
|
||||
"homepage": "https://www.php-cache.com/en/latest/",
|
||||
"keywords": [
|
||||
"cache",
|
||||
"hierarchical",
|
||||
@ -305,7 +366,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Framework interoperable interfaces for tags",
|
||||
"homepage": "http://www.php-cache.com/en/latest/",
|
||||
"homepage": "https://www.php-cache.com/en/latest/",
|
||||
"keywords": [
|
||||
"cache",
|
||||
"psr",
|
||||
@ -354,17 +415,17 @@
|
||||
{
|
||||
"name": "Nils Adermann",
|
||||
"email": "naderman@naderman.de",
|
||||
"homepage": "http://www.naderman.de"
|
||||
"homepage": "https://www.naderman.de"
|
||||
},
|
||||
{
|
||||
"name": "Jordi Boggiano",
|
||||
"email": "j.boggiano@seld.be",
|
||||
"homepage": "http://seld.be"
|
||||
"homepage": "https://seld.be"
|
||||
},
|
||||
{
|
||||
"name": "Rob Bast",
|
||||
"email": "rob.bast@gmail.com",
|
||||
"homepage": "http://robbast.nl"
|
||||
"homepage": "https://robbast.nl"
|
||||
}
|
||||
],
|
||||
"description": "Semver library that offers utilities, version constraint parsing and validation.",
|
||||
@ -434,7 +495,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Common String Manipulations with regard to casing and singular/plural rules.",
|
||||
"homepage": "http://www.doctrine-project.org",
|
||||
"homepage": "https://www.doctrine-project.org",
|
||||
"keywords": [
|
||||
"inflection",
|
||||
"pluralize",
|
||||
@ -490,7 +551,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
|
||||
"homepage": "http://www.doctrine-project.org",
|
||||
"homepage": "https://www.doctrine-project.org",
|
||||
"keywords": [
|
||||
"lexer",
|
||||
"parser"
|
||||
@ -605,16 +666,16 @@
|
||||
},
|
||||
{
|
||||
"name": "erusev/parsedown",
|
||||
"version": "1.6.4",
|
||||
"version": "1.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erusev/parsedown.git",
|
||||
"reference": "fbe3fe878f4fe69048bb8a52783a09802004f548"
|
||||
"reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/erusev/parsedown/zipball/fbe3fe878f4fe69048bb8a52783a09802004f548",
|
||||
"reference": "fbe3fe878f4fe69048bb8a52783a09802004f548",
|
||||
"url": "https://api.github.com/repos/erusev/parsedown/zipball/6678d59be48c4be64eaca6ce70bea48a09488cc2",
|
||||
"reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -637,16 +698,16 @@
|
||||
{
|
||||
"name": "Emanuil Rusev",
|
||||
"email": "hello@erusev.com",
|
||||
"homepage": "http://erusev.com"
|
||||
"homepage": "https://erusev.com"
|
||||
}
|
||||
],
|
||||
"description": "Parser for Markdown.",
|
||||
"homepage": "http://parsedown.org",
|
||||
"homepage": "https://parsedown.org",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"parser"
|
||||
],
|
||||
"time": "2017-11-14T20:44:03+00:00"
|
||||
"time": "2018-02-28T11:41:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "firebase/php-jwt",
|
||||
@ -747,7 +808,7 @@
|
||||
"Apache-2.0"
|
||||
],
|
||||
"description": "Client library for Google APIs",
|
||||
"homepage": "http://developers.google.com/api-client-library/php",
|
||||
"homepage": "https://developers.google.com/api-client-library/php",
|
||||
"keywords": [
|
||||
"google"
|
||||
],
|
||||
@ -784,7 +845,7 @@
|
||||
"Apache-2.0"
|
||||
],
|
||||
"description": "Client library for Google APIs",
|
||||
"homepage": "http://developers.google.com/api-client-library/php",
|
||||
"homepage": "https://developers.google.com/api-client-library/php",
|
||||
"keywords": [
|
||||
"google"
|
||||
],
|
||||
@ -829,7 +890,7 @@
|
||||
"Apache-2.0"
|
||||
],
|
||||
"description": "Google Auth Library for PHP",
|
||||
"homepage": "http://github.com/google/google-auth-library-php",
|
||||
"homepage": "https://github.com/google/google-auth-library-php",
|
||||
"keywords": [
|
||||
"Authentication",
|
||||
"google",
|
||||
@ -890,7 +951,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Guzzle is a PHP HTTP client library",
|
||||
"homepage": "http://guzzlephp.org/",
|
||||
"homepage": "https://guzzlephp.org/",
|
||||
"keywords": [
|
||||
"client",
|
||||
"curl",
|
||||
@ -1070,7 +1131,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers",
|
||||
"homepage": "http://hashids.org/php",
|
||||
"homepage": "https://hashids.org/php",
|
||||
"keywords": [
|
||||
"bitly",
|
||||
"decode",
|
||||
@ -1383,22 +1444,22 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v5.6.5",
|
||||
"version": "v5.6.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "2e68209991e15aca1382ef9a3443d13f2e0d8755"
|
||||
"reference": "18402cd4b83fd1d944f3baa0d8cc26d7dfcce333"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/2e68209991e15aca1382ef9a3443d13f2e0d8755",
|
||||
"reference": "2e68209991e15aca1382ef9a3443d13f2e0d8755",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/18402cd4b83fd1d944f3baa0d8cc26d7dfcce333",
|
||||
"reference": "18402cd4b83fd1d944f3baa0d8cc26d7dfcce333",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/inflector": "~1.1",
|
||||
"dragonmantank/cron-expression": "~2.0",
|
||||
"erusev/parsedown": "~1.6",
|
||||
"erusev/parsedown": "~1.7",
|
||||
"ext-mbstring": "*",
|
||||
"ext-openssl": "*",
|
||||
"league/flysystem": "~1.0",
|
||||
@ -1475,6 +1536,7 @@
|
||||
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).",
|
||||
"league/flysystem-cached-adapter": "Required to use Flysystem caching (~1.0).",
|
||||
"league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).",
|
||||
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (~1.0).",
|
||||
"nexmo/client": "Required to use the Nexmo transport (~1.0).",
|
||||
"pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).",
|
||||
"predis/predis": "Required to use the redis cache and queue drivers (~1.0).",
|
||||
@ -1514,7 +1576,7 @@
|
||||
"framework",
|
||||
"laravel"
|
||||
],
|
||||
"time": "2018-02-22T19:21:38+00:00"
|
||||
"time": "2018-02-28T14:50:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravelcollective/html",
|
||||
@ -1723,12 +1785,12 @@
|
||||
{
|
||||
"name": "Antoine Corcy",
|
||||
"email": "contact@sbin.dk",
|
||||
"homepage": "http://sbin.dk",
|
||||
"homepage": "https://sbin.dk",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Geo-related tools PHP 7.0+ library",
|
||||
"homepage": "http://geotools-php.org/",
|
||||
"homepage": "https://geotools-php.org/",
|
||||
"keywords": [
|
||||
"async",
|
||||
"batch",
|
||||
@ -1861,86 +1923,6 @@
|
||||
],
|
||||
"time": "2017-12-11T05:05:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "moneyphp/money",
|
||||
"version": "v3.1.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/moneyphp/money.git",
|
||||
"reference": "5e6a3c98ba2cb190d48d35656967eacf30716034"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/moneyphp/money/zipball/5e6a3c98ba2cb190d48d35656967eacf30716034",
|
||||
"reference": "5e6a3c98ba2cb190d48d35656967eacf30716034",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"cache/taggable-cache": "^0.4.0",
|
||||
"doctrine/instantiator": "^1.0.5",
|
||||
"ext-bcmath": "*",
|
||||
"ext-gmp": "*",
|
||||
"ext-intl": "*",
|
||||
"florianv/swap": "^3.0",
|
||||
"leanphp/phpspec-code-coverage": "^3.0 || ^4.0",
|
||||
"moneyphp/iso-currencies": "^3.0",
|
||||
"php-http/message": "^1.4",
|
||||
"php-http/mock-client": "^0.3.3",
|
||||
"phpspec/phpspec": "^3.0",
|
||||
"phpunit/phpunit": "^5",
|
||||
"psr/cache": "^1.0",
|
||||
"sllh/php-cs-fixer-styleci-bridge": "^2.1",
|
||||
"symfony/phpunit-bridge": "^4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-bcmath": "Calculate without integer limits",
|
||||
"ext-gmp": "Calculate without integer limits",
|
||||
"ext-intl": "Format Money objects with intl",
|
||||
"florianv/swap": "Exchange rates library for PHP",
|
||||
"psr/cache-implementation": "Used for Currency caching"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Money\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Mathias Verraes",
|
||||
"email": "mathias@verraes.net",
|
||||
"homepage": "http://verraes.net"
|
||||
},
|
||||
{
|
||||
"name": "Frederik Bosch",
|
||||
"email": "f.bosch@genkgo.nl"
|
||||
},
|
||||
{
|
||||
"name": "Márk Sági-Kazár",
|
||||
"email": "mark.sagi-kazar@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "PHP implementation of Fowler's Money pattern",
|
||||
"homepage": "http://verraes.net/2011/04/fowler-money-pattern-in-php/",
|
||||
"keywords": [
|
||||
"Value Object",
|
||||
"money",
|
||||
"vo"
|
||||
],
|
||||
"time": "2018-02-16T11:04:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "1.23.0",
|
||||
@ -2007,11 +1989,11 @@
|
||||
{
|
||||
"name": "Jordi Boggiano",
|
||||
"email": "j.boggiano@seld.be",
|
||||
"homepage": "http://seld.be"
|
||||
"homepage": "https://seld.be"
|
||||
}
|
||||
],
|
||||
"description": "Sends your logs to files, sockets, inboxes, databases and various web services",
|
||||
"homepage": "http://github.com/Seldaek/monolog",
|
||||
"homepage": "https://github.com/Seldaek/monolog",
|
||||
"keywords": [
|
||||
"log",
|
||||
"logging",
|
||||
@ -2055,25 +2037,25 @@
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "1.22.1",
|
||||
"version": "1.23.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||
"reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc"
|
||||
"reference": "4a874a39b2b00d7e0146cd46fab6f47c41ce9e65"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc",
|
||||
"reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4a874a39b2b00d7e0146cd46fab6f47c41ce9e65",
|
||||
"reference": "4a874a39b2b00d7e0146cd46fab6f47c41ce9e65",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"symfony/translation": "~2.6 || ~3.0"
|
||||
"symfony/translation": "~2.6 || ~3.0 || ~4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "~2",
|
||||
"phpunit/phpunit": "~4.0 || ~5.0"
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@ -2094,17 +2076,17 @@
|
||||
{
|
||||
"name": "Brian Nesbitt",
|
||||
"email": "brian@nesbot.com",
|
||||
"homepage": "http://nesbot.com"
|
||||
"homepage": "https://nesbot.com"
|
||||
}
|
||||
],
|
||||
"description": "A simple API extension for DateTime.",
|
||||
"homepage": "http://carbon.nesbot.com",
|
||||
"homepage": "https://carbon.nesbot.com",
|
||||
"keywords": [
|
||||
"date",
|
||||
"datetime",
|
||||
"time"
|
||||
],
|
||||
"time": "2017-01-16T07:55:07+00:00"
|
||||
"time": "2018-02-28T09:22:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
@ -2255,7 +2237,7 @@
|
||||
"lib/random.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
@ -2300,7 +2282,7 @@
|
||||
},
|
||||
"suggest": {
|
||||
"php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories",
|
||||
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
|
||||
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check https://docs.php-http.org/en/latest/discovery.html for more details."
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@ -2324,7 +2306,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Finds installed HTTPlug implementations and PSR-7 message factories",
|
||||
"homepage": "http://php-http.org",
|
||||
"homepage": "https://php-http.org",
|
||||
"keywords": [
|
||||
"adapter",
|
||||
"client",
|
||||
@ -2374,7 +2356,7 @@
|
||||
{
|
||||
"name": "Jonathan Hanson",
|
||||
"email": "jonathan@jonathan-hanson.org",
|
||||
"homepage": "http://www.jonathan-hanson.org/",
|
||||
"homepage": "https://www.jonathan-hanson.org/",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
@ -2457,7 +2439,7 @@
|
||||
}
|
||||
],
|
||||
"description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.",
|
||||
"homepage": "http://phpseclib.sourceforge.net",
|
||||
"homepage": "https://phpseclib.sourceforge.net",
|
||||
"keywords": [
|
||||
"BigInteger",
|
||||
"aes",
|
||||
@ -2688,7 +2670,7 @@
|
||||
"Prettus\\Validator\\": "src/Prettus/Validator/"
|
||||
}
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Anderson Andrade",
|
||||
@ -2738,7 +2720,7 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for caching libraries",
|
||||
@ -2777,14 +2759,14 @@
|
||||
"Psr\\Container\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common Container Interface (PHP FIG PSR-11)",
|
||||
@ -2833,7 +2815,7 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP messages",
|
||||
@ -2883,7 +2865,7 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for logging libraries",
|
||||
@ -2923,14 +2905,14 @@
|
||||
"Psr\\SimpleCache\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interfaces for simple caching",
|
||||
@ -3162,7 +3144,7 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "Santiago Garcia",
|
||||
"homepage": "http://santigarcor.me"
|
||||
"homepage": "https://santigarcor.me"
|
||||
}
|
||||
],
|
||||
"description": "This package provides a flexible way to add Role-based Permissions to Laravel",
|
||||
@ -3332,7 +3314,7 @@
|
||||
"lib/swift_required.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
@ -3346,7 +3328,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Swiftmailer, free feature-rich PHP mailer",
|
||||
"homepage": "http://swiftmailer.symfony.com",
|
||||
"homepage": "https://swiftmailer.symfony.com",
|
||||
"keywords": [
|
||||
"email",
|
||||
"mail",
|
||||
@ -4283,33 +4265,33 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/translation",
|
||||
"version": "v3.4.4",
|
||||
"version": "v4.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/translation.git",
|
||||
"reference": "10b32cf0eae28b9b39fe26c456c42b19854c4b84"
|
||||
"reference": "a9c4e4cc56f7eff0960c4f6c157da8f6b13211fc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/10b32cf0eae28b9b39fe26c456c42b19854c4b84",
|
||||
"reference": "10b32cf0eae28b9b39fe26c456c42b19854c4b84",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/a9c4e4cc56f7eff0960c4f6c157da8f6b13211fc",
|
||||
"reference": "a9c4e4cc56f7eff0960c4f6c157da8f6b13211fc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.5.9|>=7.0.8",
|
||||
"php": "^7.1.3",
|
||||
"symfony/polyfill-mbstring": "~1.0"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/config": "<2.8",
|
||||
"symfony/config": "<3.4",
|
||||
"symfony/dependency-injection": "<3.4",
|
||||
"symfony/yaml": "<3.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/log": "~1.0",
|
||||
"symfony/config": "~2.8|~3.0|~4.0",
|
||||
"symfony/config": "~3.4|~4.0",
|
||||
"symfony/dependency-injection": "~3.4|~4.0",
|
||||
"symfony/finder": "~2.8|~3.0|~4.0",
|
||||
"symfony/intl": "^2.8.18|^3.2.5|~4.0",
|
||||
"symfony/intl": "~3.4|~4.0",
|
||||
"symfony/yaml": "~3.4|~4.0"
|
||||
},
|
||||
"suggest": {
|
||||
@ -4320,7 +4302,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.4-dev"
|
||||
"dev-master": "4.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@ -4347,7 +4329,7 @@
|
||||
],
|
||||
"description": "Symfony Translation Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2018-01-18T22:16:57+00:00"
|
||||
"time": "2018-01-18T22:19:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/var-dumper",
|
||||
@ -4601,7 +4583,7 @@
|
||||
}
|
||||
],
|
||||
"description": "A small utility library that detects the OS the server is running on",
|
||||
"homepage": "http://tivie.github.com/php-os-detector/",
|
||||
"homepage": "https://tivie.github.com/php-os-detector/",
|
||||
"keywords": [
|
||||
"detection",
|
||||
"detector",
|
||||
@ -4654,12 +4636,12 @@
|
||||
{
|
||||
"name": "Antoine Corcy",
|
||||
"email": "contact@sbin.dk",
|
||||
"homepage": "http://sbin.dk",
|
||||
"homepage": "https://sbin.dk",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Geo-related tools PHP 5.3 library for Laravel 5",
|
||||
"homepage": "http://geotools-php.org/",
|
||||
"homepage": "https://geotools-php.org/",
|
||||
"keywords": [
|
||||
"async",
|
||||
"batch",
|
||||
@ -4765,7 +4747,7 @@
|
||||
{
|
||||
"name": "Vance Lucas",
|
||||
"email": "vance@vancelucas.com",
|
||||
"homepage": "http://www.vancelucas.com"
|
||||
"homepage": "https://www.vancelucas.com"
|
||||
}
|
||||
],
|
||||
"description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
|
||||
@ -4880,7 +4862,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Common files for PHP Geocoder",
|
||||
"homepage": "http://geocoder-php.org",
|
||||
"homepage": "https://geocoder-php.org",
|
||||
"keywords": [
|
||||
"abstraction",
|
||||
"geocoder",
|
||||
@ -5124,7 +5106,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Docblock Annotations Parser",
|
||||
"homepage": "http://www.doctrine-project.org",
|
||||
"homepage": "https://www.doctrine-project.org",
|
||||
"keywords": [
|
||||
"annotations",
|
||||
"docblock",
|
||||
@ -5175,7 +5157,7 @@
|
||||
{
|
||||
"name": "Marco Pivetta",
|
||||
"email": "ocramius@gmail.com",
|
||||
"homepage": "http://ocramius.github.com/"
|
||||
"homepage": "https://ocramius.github.com/"
|
||||
}
|
||||
],
|
||||
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
|
||||
@ -5280,7 +5262,7 @@
|
||||
"Faker\\": "src/Faker/"
|
||||
}
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
@ -5380,7 +5362,7 @@
|
||||
{
|
||||
"name": "Jakub Onderka",
|
||||
"email": "jakub.onderka@gmail.com",
|
||||
"homepage": "http://www.acci.cz"
|
||||
"homepage": "https://www.acci.cz"
|
||||
}
|
||||
],
|
||||
"time": "2014-04-08T15:00:19+00:00"
|
||||
@ -5424,7 +5406,7 @@
|
||||
{
|
||||
"name": "Jakub Onderka",
|
||||
"email": "acci@acci.cz",
|
||||
"homepage": "http://www.acci.cz/"
|
||||
"homepage": "https://www.acci.cz/"
|
||||
}
|
||||
],
|
||||
"time": "2015-04-20T18:58:01+00:00"
|
||||
@ -5470,16 +5452,16 @@
|
||||
{
|
||||
"name": "Pádraic Brady",
|
||||
"email": "padraic.brady@gmail.com",
|
||||
"homepage": "http://blog.astrumfutura.com"
|
||||
"homepage": "https://blog.astrumfutura.com"
|
||||
},
|
||||
{
|
||||
"name": "Dave Marshall",
|
||||
"email": "dave.marshall@atstsolutions.co.uk",
|
||||
"homepage": "http://davedevelopment.co.uk"
|
||||
"homepage": "https://davedevelopment.co.uk"
|
||||
}
|
||||
],
|
||||
"description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.",
|
||||
"homepage": "http://github.com/padraic/mockery",
|
||||
"homepage": "https://github.com/padraic/mockery",
|
||||
"keywords": [
|
||||
"BDD",
|
||||
"TDD",
|
||||
@ -5632,7 +5614,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -5679,7 +5661,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -5736,7 +5718,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
@ -5747,7 +5729,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Common reflection classes used by phpdocumentor to reflect the code structure",
|
||||
"homepage": "http://www.phpdoc.org",
|
||||
"homepage": "https://www.phpdoc.org",
|
||||
"keywords": [
|
||||
"FQSEN",
|
||||
"phpDocumentor",
|
||||
@ -5899,7 +5881,7 @@
|
||||
{
|
||||
"name": "Konstantin Kudryashov",
|
||||
"email": "ever.zet@gmail.com",
|
||||
"homepage": "http://everzet.com"
|
||||
"homepage": "https://everzet.com"
|
||||
},
|
||||
{
|
||||
"name": "Marcello Duarte",
|
||||
@ -6499,7 +6481,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6510,7 +6492,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Provides functionality to handle HHVM/PHP environments",
|
||||
"homepage": "http://www.github.com/sebastianbergmann/environment",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/environment",
|
||||
"keywords": [
|
||||
"Xdebug",
|
||||
"environment",
|
||||
@ -6551,7 +6533,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6578,7 +6560,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Provides the functionality to export PHP variables for visualization",
|
||||
"homepage": "http://www.github.com/sebastianbergmann/exporter",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/exporter",
|
||||
"keywords": [
|
||||
"export",
|
||||
"exporter"
|
||||
@ -6619,7 +6601,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6630,7 +6612,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Snapshotting of global state",
|
||||
"homepage": "http://www.github.com/sebastianbergmann/global-state",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/global-state",
|
||||
"keywords": [
|
||||
"global state"
|
||||
],
|
||||
@ -6669,7 +6651,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6714,7 +6696,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6759,7 +6741,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -6778,7 +6760,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Provides functionality to recursively process PHP variables",
|
||||
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/recursion-context",
|
||||
"time": "2017-03-03T06:23:57+00:00"
|
||||
},
|
||||
{
|
||||
@ -6948,7 +6930,7 @@
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "http://packagist.org/downloads/",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
@ -7056,12 +7038,12 @@
|
||||
{
|
||||
"name": "Robert Allen",
|
||||
"email": "zircote@gmail.com",
|
||||
"homepage": "http://www.zircote.com"
|
||||
"homepage": "https://www.zircote.com"
|
||||
},
|
||||
{
|
||||
"name": "Bob Fanger",
|
||||
"email": "bfanger@gmail.com",
|
||||
"homepage": "http://bfanger.nl"
|
||||
"homepage": "https://bfanger.nl"
|
||||
}
|
||||
],
|
||||
"description": "Swagger-PHP - Generate interactive documentation for your RESTful API using phpdoc annotations",
|
||||
|
1808
config/money.php
Normal file
1808
config/money.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -22,8 +22,7 @@ return [
|
||||
'skin' => env('APP_SKIN', 'default'),
|
||||
|
||||
/**
|
||||
* The ISO "Currency Code" to use
|
||||
* http://www.xe.com/iso4217.php
|
||||
* The ISO "Currency Code" to use, the list is in config/money.php
|
||||
*
|
||||
* Note, do not change this after you've set it, unless you don't
|
||||
* care that the currencies aren't "exchanged" into the new format
|
||||
|
@ -8,7 +8,6 @@ return [
|
||||
'extensions' => [
|
||||
'openssl',
|
||||
'pdo',
|
||||
'intl',
|
||||
'mbstring',
|
||||
'tokenizer',
|
||||
'json',
|
||||
|
@ -23,8 +23,7 @@ return [
|
||||
'vacentral_api_key' => '',
|
||||
|
||||
/**
|
||||
* The ISO "Currency Code" to use
|
||||
* http://www.xe.com/iso4217.php
|
||||
* The ISO "Currency Code" to use, the list is in config/money.php
|
||||
*
|
||||
* Note, do not change this after you've set it, unless you don't
|
||||
* care that the currencies aren't "exchanged" into the new format
|
||||
|
Loading…
Reference in New Issue
Block a user