PHPackages                             slonyaka/market-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. slonyaka/market-rates

ActiveLibrary

slonyaka/market-rates
=====================

1.1.3(5y ago)018MITPHP

Since Sep 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/slonyaka/market-rates)[ Packagist](https://packagist.org/packages/slonyaka/market-rates)[ RSS](/packages/slonyaka-market-rates/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Create an instance of MarketRate class
set API key for Alpha Vantage service

getCurrencyRates - method to get list of rates of one currency
comparing to second one

getRates method returns a Collection of MarketData instances currently works with and needs API Key from this service

```

$rates = Slonyaka\Market\CurrencyRateFactory::make('alpha_vantage_api_key');
$ratesCollection = $rates->getRates('usd', 'eur', '5min');

foreach ($ratesCollection->read() as $rate) {
    echo $rate->lowPrice;
}

```

MarketData from the collection could be iterated as items of DoublyLinked List

```
while($item->next) {
	echo $item->closePrice. "";
	$item = $item->next;
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~0 days

Total

5

Last Release

2060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b88219aac6dee76121d478bb029bf607b1dad29de0ee7eacd1025fdb9ad5fc72?d=identicon)[slonchakov](/maintainers/slonchakov)

---

Top Contributors

[![slonyaka](https://avatars.githubusercontent.com/u/12559587?v=4)](https://github.com/slonyaka "slonyaka (5 commits)")

### Embed Badge

![Health badge](/badges/slonyaka-market-rates/health.svg)

```
[![Health](https://phpackages.com/badges/slonyaka-market-rates/health.svg)](https://phpackages.com/packages/slonyaka-market-rates)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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