├── .github ├── FUNDING.yml └── workflows │ └── tests.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── phpunit.xml ├── resources └── symbols.php ├── src ├── Calculator.php ├── Concerns │ ├── FormatsPrices.php │ ├── HasModifiers.php │ ├── HasUnits.php │ ├── HasVat.php │ ├── OperatesOnBase.php │ └── ParsesPrices.php ├── Formatting │ ├── CustomFormatter.php │ └── Formatter.php ├── Modifier.php ├── Parser.php ├── Price.php ├── PriceAmendable.php └── Vat.php └── tests ├── Fixtures ├── AfterVatAmendableModifier.php ├── AmendableModifier.php ├── CustomAmendableModifier.php ├── CustomInvertedFormatter.php └── NonAmendableModifier.php ├── Helpers.php ├── Pest.php └── Unit ├── CreatesInstancesTest.php ├── FormatsPricesTest.php ├── ForwardsToMoneyTest.php ├── HasModifiersTest.php ├── HasUnitsTest.php ├── HasValueAccessorsTest.php ├── HasVatTest.php ├── ParsesMonetaryStringsTest.php └── SerializesToJsonTest.php /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: whitecube 2 | -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/phpunit.xml -------------------------------------------------------------------------------- /resources/symbols.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/resources/symbols.php -------------------------------------------------------------------------------- /src/Calculator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Calculator.php -------------------------------------------------------------------------------- /src/Concerns/FormatsPrices.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/FormatsPrices.php -------------------------------------------------------------------------------- /src/Concerns/HasModifiers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/HasModifiers.php -------------------------------------------------------------------------------- /src/Concerns/HasUnits.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/HasUnits.php -------------------------------------------------------------------------------- /src/Concerns/HasVat.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/HasVat.php -------------------------------------------------------------------------------- /src/Concerns/OperatesOnBase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/OperatesOnBase.php -------------------------------------------------------------------------------- /src/Concerns/ParsesPrices.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Concerns/ParsesPrices.php -------------------------------------------------------------------------------- /src/Formatting/CustomFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Formatting/CustomFormatter.php -------------------------------------------------------------------------------- /src/Formatting/Formatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Formatting/Formatter.php -------------------------------------------------------------------------------- /src/Modifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Modifier.php -------------------------------------------------------------------------------- /src/Parser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Parser.php -------------------------------------------------------------------------------- /src/Price.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Price.php -------------------------------------------------------------------------------- /src/PriceAmendable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/PriceAmendable.php -------------------------------------------------------------------------------- /src/Vat.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/src/Vat.php -------------------------------------------------------------------------------- /tests/Fixtures/AfterVatAmendableModifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/tests/Fixtures/AfterVatAmendableModifier.php -------------------------------------------------------------------------------- /tests/Fixtures/AmendableModifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/tests/Fixtures/AmendableModifier.php -------------------------------------------------------------------------------- /tests/Fixtures/CustomAmendableModifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/tests/Fixtures/CustomAmendableModifier.php -------------------------------------------------------------------------------- /tests/Fixtures/CustomInvertedFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whitecube/php-prices/HEAD/tests/Fixtures/CustomInvertedFormatter.php -------------------------------------------------------------------------------- /tests/Fixtures/NonAmendableModifier.php: -------------------------------------------------------------------------------- 1 |