PHPackages                             hassanrazadev/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. hassanrazadev/exchange-rates

ActiveLibrary

hassanrazadev/exchange-rates
============================

A Laravel package to convert one currency to other.

1.0.0(5y ago)012MITPHP

Since Feb 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hassanrazadev/exchange-rates)[ Packagist](https://packagist.org/packages/hassanrazadev/exchange-rates)[ RSS](/packages/hassanrazadev-exchange-rates/feed)WikiDiscussions master Synced yesterday

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

Exchange Rates
==============

[](#exchange-rates)

A Laravel package to convert one currency rate to other.
This package uses [exchangerate.host](https://exchangerate.host/) to convert currency rates.

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

[](#installation)

```
composer require hassanrazadev/exchange-rates

```

Usage
-----

[](#usage)

**Get latest rates**

```
Currency::convert();

```

**Set base currency**

```
Currency::convert('USD');

```

**Set target currency**

```
Currency::convert('USD', 'PKR');

```

```
Currency::convert('USD', ['PKR', 'EUR']);

```

**Get historical data**

```
Currency::convert('USD', ['PKR', 'EUR'], '2020-02-27');

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

Unknown

Total

1

Last Release

1902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4142843c181df6b579dd08b9bdf4a196ec699c123bf515abdbc8b9149d099d28?d=identicon)[hassanrazadev](/maintainers/hassanrazadev)

---

Top Contributors

[![hassanrazadev](https://avatars.githubusercontent.com/u/34765719?v=4)](https://github.com/hassanrazadev "hassanrazadev (6 commits)")[![hassan-raza-com](https://avatars.githubusercontent.com/u/72255579?v=4)](https://github.com/hassan-raza-com "hassan-raza-com (1 commits)")

---

Tags

currency-convertercurrency-exchange-ratesexchange-rateslaravel

### Embed Badge

![Health badge](/badges/hassanrazadev-exchange-rates/health.svg)

```
[![Health](https://phpackages.com/badges/hassanrazadev-exchange-rates/health.svg)](https://phpackages.com/packages/hassanrazadev-exchange-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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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