PHPackages                             iamkarsoft/kudi - 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. iamkarsoft/kudi

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

iamkarsoft/kudi
===============

A laravel package to convert currency to/from ghana cedis(GHS)

v0.2.2(6mo ago)3501MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since May 26Pushed 4mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (5)Used By (0)

About
-----

[](#about)

A Laravel package to convert currencies to/from Ghana Cedis(GHS).

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

[](#installation)

`composer require iamkarsoft\kudi`

Publishing config files
-----------------------

[](#publishing-config-files)

`php artisan vendor:publish --provider="Iamkarsoft\Kudi\KudiServiceProvider" --tag="config"`

Providers
---------

[](#providers)

You'll need to create accounts and get your api keys from the providers you wish to use.

- For [Free Currency API](https://freecurrencyapi.net/) Account and add `KUDI_API_KEY=Your_API_KEY` and `KUDI_API_PROVIDER="free currency api"` in your `.env` file
- For [Currency Data Api from Api layer](https://apilayer.com/marketplace/currency_data-api) Account and add `KUDI_API_KEY=Your_API_KEY` and `KUDI_API_PROVIDER="currency data api"` in your `.env` file
- For [Fixer Api from Api Layer](https://apilayer.com/marketplace/fixer-api) Account and add `KUDI_API_KEY=Your_API_KEY` and `KUDI_API_PROVIDER="fixer api"` in your `.env` file

Usage
-----

[](#usage)

1. **In a controller**

Converting From Any Currency to GHS

```
 Kudi::convertFrom('USD',20);

// assigning result to a variable
$converted= Kudi::convertFrom('USD',20);
```

Converting to Any Currency from GHS

```
 Kudi::convertTo('EUR',10000);

// assigning result to a variable
 $converted = Kudi::convertTo('EUR',10000);
```

2. **Using it in a blade template**

```
// to get the value
{{$converted['value']}}

// to get the currency
{{$converted['currency']}}

// to get the provider you're using
{{$converted['provider']}}
```

Response
--------

[](#response)

If your request is successful. your response will look something like the following:

```
// converting from USD to Ghana Cedis
{
"value": "7.75",
"currency": "GHS",
"provider": "currency data api"
},

// converting to Euros
{
"value": "120.55",
"currency": "EUR",
"provider": "currency data api"
}
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance71

Regular maintenance activity

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

209d ago

PHP version history (3 changes)v0.2.0PHP ^7.3|^8.0|^8.1

v0.2.1PHP ^7.0|^7.3|^8.0|^8.1

v0.2.2PHP ^7.4|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

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

---

Top Contributors

[![iamkarsoft](https://avatars.githubusercontent.com/u/5146869?v=4)](https://github.com/iamkarsoft "iamkarsoft (35 commits)")

---

Tags

laravelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iamkarsoft-kudi/health.svg)

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

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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