Installation

Installation#

To install Peso, first select the desired integration lib, then the desired service lib, like so:

composer require peso/peso peso/ecb-service php-http/discovery guzzlehttp/guzzle symfony/cache

In this example

  • peso/peso is a simple wrapper over Peso services for standalone use

  • peso/ecb-service is a service provider for the European Central Bank

  • ECB service dependencies, same for all HTTP integrations:

    • php-http/discovery is a HTTP client autoconfigure package. It is not required, you can configure the client manually.

    • guzzlehttp/guzzle is a HTTP client known to php-http/discovery. Any client supporting PSR-18 would do.

    • symfony/cache is a cache library if you need caching. Any PSR-16 library would do. (recommended)

Available services:#

peso/ecb-service

https://img.shields.io/packagist/v/peso/ecb-service.svg?style=flat-square

European Central Bank

peso/cnb-service

https://img.shields.io/packagist/v/peso/cnb-service.svg?style=flat-square

Czech National Bank

peso/mnb-service

https://img.shields.io/packagist/v/peso/bnr-service.svg?style=flat-square

Hungarian National Bank

peso/bnr-service

https://img.shields.io/packagist/v/peso/bnr-service.svg?style=flat-square

National Bank of Romania

peso/coinlayer-service

https://img.shields.io/packagist/v/peso/coinlayer-service.svg?style=flat-square

Coinlayer

peso/currencyapi-service

https://img.shields.io/packagist/v/peso/currencyapi-service.svg?style=flat-square

CurrencyAPI

peso/fixer-service

https://img.shields.io/packagist/v/peso/fixer-service.svg?style=flat-square

Fixer

peso/frankfurter-service

https://img.shields.io/packagist/v/peso/frankfurter-service.svg?style=flat-square

Frankfurter.dev

peso/freecurrencyapi-service

https://img.shields.io/packagist/v/peso/freecurrencyapi-service.svg?style=flat-square

FreecurrencyAPI

peso/openexchangerates-service

https://img.shields.io/packagist/v/peso/openexchangerates-service.svg?style=flat-square

Open Exchange Rates

Available interoperability connectors:#

peso/peso-exchanger-interop

https://img.shields.io/packagist/v/peso/peso-exchanger-interop.svg?style=flat-square

Exchanger and Swap

You can suggest new integrations and services in our roadmap repo (GitHub only)