PHPackages                             everapi/fxapi-php - 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. everapi/fxapi-php

ActiveLibrary[API Development](/categories/api)

everapi/fxapi-php
=================

A PHP wrapper for the fxapi.com API

0159PHP

Since May 23Pushed 2y ago2 watchersCompare

[ Source](https://github.com/everapihq/fxapi-php)[ Packagist](https://packagist.org/packages/everapi/fxapi-php)[ RSS](/packages/everapi-fxapi-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/ee723098beea3d544460112d594eaafd10a32a3d82b56977aa353f82ba92cd8b/68747470733a2f2f6170702e66786170692e636f6d2f696d672f6c6f676f2f66786170692e706e67)](https://camo.githubusercontent.com/ee723098beea3d544460112d594eaafd10a32a3d82b56977aa353f82ba92cd8b/68747470733a2f2f6170702e66786170692e636f6d2f696d672f6c6f676f2f66786170692e706e67)

fxapi-php - PHP Foreign Exchange Rates Converter
================================================

[](#fxapi-php---php-foreign-exchange-rates-converter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b8c2054a29dfdcacd3f3c1a60398274c1eefb34c19b6c9a2dacc693a1c2e2b2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657665726170692f66786170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/everapi/fxapi-php)[![Total Downloads](https://camo.githubusercontent.com/4ed0e691098f9d41db6ba742e94aaad7d9d3318780b74d64768b3b34194f591d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657665726170692f66786170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/everapi/fxapi-php)

This package is a PHP wrapper for [fxapi.com](https://fxapi.com), a foreign exchange rates API, that aims to make the usage of the API as easy as possible in your project.

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

[](#installation)

You can install the package via composer:

```
composer require everapi/fxapi-php
```

Usage
-----

[](#usage)

Initialize the API with your API Key (get one for free at [fxapi.com](https://fxapi.com)):

```
$fxApi = new \FxApi\FxApi\FxApiClient('YOUR-API-KEY');
```

Afterwards you can use the endpoints of the API like this:

```
echo $fxApi->latest([
    'base_currency' => 'EUR',
    'currencies' => 'USD',
]);
```

Endpoints accessible with a free account:

- `status`
- `currencies`
- `latest`
- `historical`

These advanced endpoints currently require a paid subscription:

- `convert`
- `range`

Learn more about endpoints, parameters and response data structure in the [docs](https://fxapi.com/docs).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/309ffc139b4aad5ab670a50706449e75eeea2798f284e1380f88d69a68f9fe65?d=identicon)[everapi](/maintainers/everapi)

---

Top Contributors

[![dominikkukacka](https://avatars.githubusercontent.com/u/243319?v=4)](https://github.com/dominikkukacka "dominikkukacka (1 commits)")

### Embed Badge

![Health badge](/badges/everapi-fxapi-php/health.svg)

```
[![Health](https://phpackages.com/badges/everapi-fxapi-php/health.svg)](https://phpackages.com/packages/everapi-fxapi-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M474](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
