PHPackages                             soluwire/laravel-currencyapi - 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. soluwire/laravel-currencyapi

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

soluwire/laravel-currencyapi
============================

v0.1(6y ago)03MITPHP

Since Oct 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Soluwire/laravel-currencyapi)[ Packagist](https://packagist.org/packages/soluwire/laravel-currencyapi)[ RSS](/packages/soluwire-laravel-currencyapi/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Currency API
====================

[](#laravel-currency-api)

Why?
----

[](#why)

- Created for my own personal use, allows you to quickly grab the visitors currency &amp; other IP information such as country.

How do I get/use it?
--------------------

[](#how-do-i-getuse-it)

Composer require the package into your laravel project.

```
composer require soluwire/laravel-currencyapi
```

> Note: If you're using Laravel &gt;= 5.5, you can skip the registration of the service provider, as they are registered automatically. So no need to add it into your providers array.

Then in your config folder, go into your app.php and add the below to the providers array.

```
soluwire\currencyapi\CurrencyApiProvider::class,
```

I would then recommend setting your `default_currency` which can be found in vendor-&gt;soluwire-&gt;settings-&gt;config.php

Once you've set your `default_currency`, you're ready to go- simply do the below.

```
\soluwire\currencyapi\Driver::CallApi("8.8.8.8") //Replace 8.8.8.8 with an ip of your choice, it'll return relevent information.
```

The currency API will return a response similar to the below. Which means you can then easily access the parameters.

```
{
latitude: 39.0438
longitude: -77.4874
city: "Ashburn"
region: "VA"
currency": "$"
}
```

Authors
-------

[](#authors)

- Jack Bayliss - Initial work

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](https://github.com/soluwire/laravel-currencyapi/blob/master/LICENSE) file for details

Issues
------

[](#issues)

If you have any issues please submit an issue, I'll review it as soon as I get time.

Contributions
-------------

[](#contributions)

If you would like to contribute, feel free to make a fork &amp; i'll review any changes.

That's all folks 👍

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

Unknown

Total

1

Last Release

2412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79e2e2281e64b7800db09d468ce14156b604138636efd6f85c7b6b8d2f0994b7?d=identicon)[jackbayliss](/maintainers/jackbayliss)

---

Top Contributors

[![jackbayliss](https://avatars.githubusercontent.com/u/13621738?v=4)](https://github.com/jackbayliss "jackbayliss (6 commits)")

---

Tags

countrycurrencylaravellaravel-currency-apiphpphplaravelcurrencyIPlocationfindcurrencycurrencybyip

### Embed Badge

![Health badge](/badges/soluwire-laravel-currencyapi/health.svg)

```
[![Health](https://phpackages.com/badges/soluwire-laravel-currencyapi/health.svg)](https://phpackages.com/packages/soluwire-laravel-currencyapi)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

88434.4k7](/packages/cartalyst-converter)[gai871013/ip-location

纯真IP地址,composer包(解析QQWay.dat)

729.7k4](/packages/gai871013-ip-location)

PHPackages © 2026

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