Download the PHP package shipsaas/currency-fx without Composer
On this page you can find all versions of the php package shipsaas/currency-fx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shipsaas/currency-fx
More information about shipsaas/currency-fx
Files in shipsaas/currency-fx
Package currency-fx
Short Description A PHP Library handles Currency FX from multiple online FX services. Battery-included.
License MIT
Informations about the package currency-fx
PHP Currency FX Library
A PHP Library handles Currency FX (rates & conversions) with ease. Battery-included 🔋🔋🔋.
Available for Laravel too.
Tired of implementing these and integrate with 3rd services? Let's CurrencyFX help you to do that. Covered by Unit Testing & battle-tested!
Available Services / Batteries
- https://exchangeratesapi.io/
- https://exchangerate.host/
- https://fixer.io/
- https://currencylayer.com/
- https://www.currencycloud.com/
Supports
- PHP 8.1+
Dependencies
- Guzzle for API Requests
- NeverThrow for straightforward OK/Error response.
Usage
Simply initialize the class with the required params. And it is ready to use in no time.
Laravel Integration
Requirement: Laravel 10+
Just simply install the package and lets Laravel discovery magic happens 🥰
Since we already bind the services in Laravel Container, all you have to do is update the ENVs and that's all.
Export the configuration
Update ENVs
After published the config, checkout the configs/currency-fx.php
.
We already defined some ENVs key for you to add 😜.
Usage
Tests
We love tests, always. We have 3 kind of test cases:
- Unit Tests
- Integration Tests
- E2E Tests
Check out the TEST-README.md to learn more!
Contribute to the project
- All changes must follow PSR-1 / PSR-12 coding conventions.
- Unit testing is a must, cover things as much as you can.
Feel free to add more driver and share it to the whole PHP community 😆
This library is useful?
Thank you, please give it a ⭐️⭐️⭐️ to support the project.
Don't forget to share with your friends & colleagues, so they can also build their own SaaS products as well 🚀
License
MIT LICENSE
Contributors
ShipSaas, Seth Phat & Contributors