Download the PHP package lemonade/component_currency without Composer
On this page you can find all versions of the php package lemonade/component_currency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lemonade/component_currency
More information about lemonade/component_currency
Files in lemonade/component_currency
Download lemonade/component_currency
More information about lemonade/component_currency
Files in lemonade/component_currency
Vendor lemonade
Package component_currency
Short Description Lemonade Currency Conversion Library provides a reliable PHP solution for converting currencies using the Czech National Bank (CNB) as a primary source. Fully compatible with PHP 8.1 and optimized for static analysis with PHPStan.
License MIT
Package component_currency
Short Description Lemonade Currency Conversion Library provides a reliable PHP solution for converting currencies using the Czech National Bank (CNB) as a primary source. Fully compatible with PHP 8.1 and optimized for static analysis with PHPStan.
License MIT
Please rate this library. Is it a good library?
Informations about the package component_currency
Lemonade Currency Conversion Library
Lemonade Currency Conversion Library provides a general-purpose currency converter using the Czech National Bank (CNB) as the primary data source.
Features
- Supports PHP 8.1+
- Fully typed and optimized for static analysis with PHPStan (Level 10 Strict, Bleeding Edge)
- Provides exchange rates and currency values for supported currencies
- Caches and validates data from the Czech National Bank (CNB)
- Fallback to default values when data is unavailable
- Automatically adjusts to CNB's schedule:
- Exchange rates are published on working days after 14:30.
- Before 14:30, the previous day's rates are used as "current".
Supported Data Sources
- CNB API
Supported Currencies
- CZK - Czech Republic
- EUR - Eurozone
- HUF - Hungary
- PLN - Poland
- GBP - Great Britain
- USD - United States
Installation
Use Composer to install the library:
Usage
Configuration
The library dynamically stores data in a project-specific storage/export/cnb
directory. Ensure this directory is writable.
Advanced Features
- Static Analysis: The library is fully compatible with PHPStan Level 10, strict mode, and bleeding edge.
- Default Values: Fallback to predefined default values for all currencies when data is unavailable.
- Extensibility: Easily extendable for additional data sources or customization.
Testing
To run unit tests:
Contributing
Feel free to submit issues or create pull requests to improve this library.
License
This library is licensed under the MIT License. See the LICENSE
file for details.
All versions of component_currency with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1 <8.5
The package lemonade/component_currency contains the following files
Loading the files please wait ....