peso / peso
A simple standalone currency converter based on the Peso framework
1.2.0
2025-08-08 17:53 UTC
Requires
- php: ^8.2
- arokettu/date: ^2.4
- peso/core: ^1.1.1
Requires (Dev)
- phpunit/phpunit: ^11.5
- psy/psysh: *
- sandfox.dev/code-standard: ^1.2025.06.29
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^6.12
This package is auto-updated.
Last update: 2025-09-26 21:41:16 UTC
README
A simple standalone currency converter based on the Peso framework.
Installation
composer require peso/peso
Example
<?php use Peso\Peso\CurrencyConverter; use Peso\Services\EuropeanCentralBankService; require __DIR__ . '/vendor/autoload.php'; $peso = new CurrencyConverter(new EuropeanCentralBankService()); // current echo $peso->convert('1500', 'EUR', 'PHP', 2), PHP_EOL; // '98746.50' as of 2025-06-22 // and historical echo $peso->convertOnDate('1500', 'EUR', 'PHP', 2, '2025-06-13'), PHP_EOL; // '97059.00'
Documentation
Read the full documentation here: https://phpeso.org/v1.x/integrations/peso.html
Support
Please file issues on our main repo at GitHub: https://github.com/phpeso/peso/issues
License
The library is available as open source under the terms of the MIT License.