PHPackages                             ksaveras/lb-fx-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ksaveras/lb-fx-rates

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ksaveras/lb-fx-rates
====================

LB Fx Rates client

v0.1.1(4mo ago)02[1 issues](https://github.com/ksaveras/lb-fx-rates/issues)[11 PRs](https://github.com/ksaveras/lb-fx-rates/pulls)MITPHPPHP ^8.3CI passing

Since Sep 14Pushed 1w ago1 watchersCompare

[ Source](https://github.com/ksaveras/lb-fx-rates)[ Packagist](https://packagist.org/packages/ksaveras/lb-fx-rates)[ RSS](/packages/ksaveras-lb-fx-rates/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (9)Versions (21)Used By (0)

LB FxRates Client
=================

[](#lb-fxrates-client)

More information:

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

[](#installation)

```
composer require ksaveras/lb-fx-rates

```

Use cases
---------

[](#use-cases)

### Basic example

[](#basic-example)

Fetch FX rates from LB API. Using Symfony HttpClient to fetch data.

```
use Ksaveras\LBFxRates\PsrClient;
use Symfony\Component\HttpClient\Psr18Client;

// Psr18Client implements all three required interfaces
$psr18Client = new Psr18Client();

$fxRatesClient = new PsrClient(
    $psr18Client,
    $psr18Client,
    $psr18Client,
);

$fxRates = $fxRatesClient->currentFxRates();

foreach ($fxRates as $fxRate) {
    echo sprintf(
        "%s: %.4f %s == %.4f %s\n",
        $fxRate->date()->format('Y-m-d'),
        $fxRate->currencyAmount()->amount(),
        $fxRate->currencyAmount()->currency()->value,
        $fxRate->targetCurrencyAmount()->amount(),
        $fxRate->targetCurrencyAmount()->currency()->value,
    );
}
```

This will output something like:

```
2024-08-31: 1.0000 EUR == 1.6542 AUD
2024-08-31: 1.0000 EUR == 1.9558 BGN
2024-08-31: 1.0000 EUR == 6.2147 BRL
2024-08-31: 1.0000 EUR == 1.5061 CAD
2024-08-31: 1.0000 EUR == 0.9387 CHF
2024-08-31: 1.0000 EUR == 7.8634 CNY
2024-08-31: 1.0000 EUR == 25.1470 CZK

```

Tests
-----

[](#tests)

```
composer test

```

Code Quality
------------

[](#code-quality)

```
composer static-analysis

```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance89

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.3% 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 ~537 days

Total

2

Last Release

121d ago

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.1.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/485111?v=4)[Ksaveras Sakys](/maintainers/ksaveras)[@ksaveras](https://github.com/ksaveras)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (88 commits)")[![ksaveras](https://avatars.githubusercontent.com/u/485111?v=4)](https://github.com/ksaveras "ksaveras (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![release-automaton[bot]](https://avatars.githubusercontent.com/in/341347?v=4)](https://github.com/release-automaton[bot] "release-automaton[bot] (1 commits)")

---

Tags

currencyfx\_ratescurrency-exchangeLietuvos Bankas

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ksaveras-lb-fx-rates/health.svg)

```
[![Health](https://phpackages.com/badges/ksaveras-lb-fx-rates/health.svg)](https://phpackages.com/packages/ksaveras-lb-fx-rates)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M87](/packages/mcp-sdk)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185702.8k44](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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