PHPackages                             abstractapi/php-exchange-rates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. abstractapi/php-exchange-rates

ActiveLibrary[API Development](/categories/api)

abstractapi/php-exchange-rates
==============================

AbstractExchangeRates - Wrapper to quickly start using the powerful AbstractAPI's exchange rates service in your projects.

1.0.0(4y ago)0151MITPHPPHP &gt;=5.6

Since May 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/abstractapi/php-exchange-rates)[ Packagist](https://packagist.org/packages/abstractapi/php-exchange-rates)[ Docs](https://github.com/abstractapi/php-exchange-rates)[ RSS](/packages/abstractapi-php-exchange-rates/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

AbstractAPI php-exchange-rates library
======================================

[](#abstractapi-php-exchange-rates-library)

Integrate the powerful [Exchange Rates API from Abstract](https://www.abstractapi.com/exchange-rate-api) in your PHP project in a few lines of code.

The Exchange Rate API is an REST API that allows you to:

- look up the latest exchange rates for 80+ currencies via the *live* endpoint
- get historical exchange rates using the *historical* endpoint
- convert an arbitrary amount from one currency to another using the *convert* endpoint

It's very simple to use: you only need to submit your API key and a currency symbol (such as "USD"), and the API will respond with current exchange rate, historical data, or convertion rates.

Documentation
=============

[](#documentation)

Supported PHP Versions
----------------------

[](#supported-php-versions)

This library supports the **PHP version 5.6** and higher.

Installation
------------

[](#installation)

You can install **php-exchange-rates** via composer or by downloading the source.

### Via Composer:

[](#via-composer)

**php-exchange-rates** is available on Packagist as the [`abstractapi/php-exchange-rates`](https://packagist.org/packages/abstractapi/php-exchange-rates) package:

```
composer require abstractapi/php-exchange-rates
```

API key
-------

[](#api-key)

Get your API key for free and without hassle from the [Abstact website](https://app.abstractapi.com/users/signup?target=/api/exchange-rates/pricing/select).

Quickstart
----------

[](#quickstart)

### Get exchange rates

[](#get-exchange-rates)

```
