PHPackages                             nacoma/fixer-io - 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. nacoma/fixer-io

ActiveLibrary[API Development](/categories/api)

nacoma/fixer-io
===============

A wrapper around the fixer.io currency API

0.9.1(4y ago)110.7k↓50%MITPHPPHP ^8.0

Since Jun 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Nacoma/fixer-io)[ Packagist](https://packagist.org/packages/nacoma/fixer-io)[ RSS](/packages/nacoma-fixer-io/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (11)Versions (3)Used By (0)

Fixer.io API Wrapper
====================

[](#fixerio-api-wrapper)

[![tests](https://github.com/Nacoma/fixer-io/actions/workflows/tests.yml/badge.svg)](https://github.com/Nacoma/fixer-io/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/f10ee2a0a6f572b1c0826ae8bbdcbb5af33e76f8bb20248edbea8e5c97bdf558/68747470733a2f2f636f6465636f762e696f2f67682f4e61636f6d612f66697865722d696f2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d425536583745354b394e)](https://codecov.io/gh/Nacoma/fixer-io)

A wrapper around [Fixer.io](https://fixer.io/)'s currency conversion rates API with minimal dependencies. Upgrading applications is always a hassle. This project aims to help relieve some of that pressure by depending exclusively on PSR interfaces instead of hard dependencies - while maintaining a comfortable API.

An additional goal of this project is to always deliver typed results. There's very little guessing about associative arrays involved when consuming this API.

Supported Endpoints
-------------------

[](#supported-endpoints)

- Supported Symbols
- Latest Rates
- Historical Rates
- Convert Currency
- Time Series
- Fluctuation

Usage
-----

[](#usage)

```
use Nacoma\Fixer\ExchangeFactory;
use Nacoma\Fixer\Http\Client;
use Nacoma\Fixer\Http\Middleware\ETagMiddleware;

$client = new Client(new Psr18Client(), [
    new ETagMiddleware(
        new SimpleCache(),
        new Psr17ResponseFactory(),
        new Psr17StreamFactory(),
    )
]);

$exchangeFactory = new ExchangeFactory(
    $client,
    new Psr17RequestFactory(),
    new Psr17UriFactory(),
    'your-access-key',
);

$exchange = $exchangeFactory->create('USD', ['EUR', 'JPY']);

// obtaining all rates
$result = $exchange->latestRates();

// manual conversion
$converted = 50 * $result->rates['EUR'];

// API endpoint conversion
$converted = $exchange->convert('USD', 'EUR', 50);
```

The optional `Nacoma\Fixer\Http\Client` is a thin Psr-18 compatible wrapper around any HTTP client. It enables custom middleware chaining in order to support caching via the `ETag` header.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~57 days

Total

2

Last Release

1742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11e33c71e59361305dacb0d214c4956981c8888b93a549d1877ef2a9122ad242?d=identicon)[Nacoma](/maintainers/Nacoma)

---

Top Contributors

[![Nacoma](https://avatars.githubusercontent.com/u/1852424?v=4)](https://github.com/Nacoma "Nacoma (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nacoma-fixer-io/health.svg)

```
[![Health](https://phpackages.com/badges/nacoma-fixer-io/health.svg)](https://phpackages.com/packages/nacoma-fixer-io)
```

###  Alternatives

[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[prokerala/astrology-sdk

Prokerala.com Astrology API Client Library for PHP.

2610.0k](/packages/prokerala-astrology-sdk)

PHPackages © 2026

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