PHPackages                             marleysidapple/currency - 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. marleysidapple/currency

ActiveLibrary[API Development](/categories/api)

marleysidapple/currency
=======================

currency api for laravel

110

Since Sep 12Compare

[ Source](https://github.com/marleysidapple/currency)[ Packagist](https://packagist.org/packages/marleysidapple/currency)[ RSS](/packages/marleysidapple-currency/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Currency Exchange Rates
=======================

[](#currency-exchange-rates)

Get latest currency exchange rates for different dates.

### Prerequisities

[](#prerequisities)

this will require guzzle. so first make sure you have installed guzzle.

```
"guzzlehttp/guzzle": "~4.0"

```

### Installing

[](#installing)

To install, edit your `composer.json` and add the line mentioned below.

```
"marleysidapple/currency": "dev-master"

```

Then run `composer update`

### Configuration

[](#configuration)

After installation, go to `config/app.php`. Add in provider array

```
 Marleysid\Currency\CurrencyServiceProvider::class,

```

Add `alias` as well in alias array

```
 'Currency'=> Marleysid\Currency\Facade\CurrencyFacade::class,

```

For publishing `configuration`. Run following command

```
php artisan vendor:publish

```

Once publish is completed, open `config/currency.php`. It contains two element. One is `url` which is an api endpoint and another one is `baseCurrency`. You can change `baseCurrency` and set standard currency of your own, however `url` value is not meant to be changed.

\##Example

add `use Currency;` in the top of the controller.

```
$exchangeRate = Currency::exchangeRate('baseCurrency', 'date', 'conversionCurrency');

```

if `baseCurrency` is set to `GBP`, all the conversion rates will be show in respect to `GBP` as a base. Passing `date` will give the exchange rate for that particular date. And passing `conversionCurrency` will give the exchange Rate for that particular `conversionCurrency` in respect to the specified `baseCurrency`.

\##Usage

```
$exRate = Currency::exchangeRate('USD');

```

returns all available `exrates` with respect to the `USD` as a base currency for present date.

```
$exRate = Currency::exchangeRate('USD', '2015-10-23');

```

returns `exrates` for the specified date

```
$exRate = Currency::exchangeRate('USD', '2015-10-23', 'AUD');

```

returns `exrate` of `1 USD` to `1 AUD` on specified `date`

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Authors
-------

[](#authors)

- **Siddhartha Bhatta** - *Initial work* - [marleysidapple](https://github.com/marleysidapple)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments
---------------

[](#acknowledgments)

-

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14216306?v=4)[Siddhartha Bhatta](/maintainers/marleysidapple)[@marleysidapple](https://github.com/marleysidapple)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/marleysidapple-currency/health.svg)

```
[![Health](https://phpackages.com/badges/marleysidapple-currency/health.svg)](https://phpackages.com/packages/marleysidapple-currency)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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