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)

0.2.5(1w ago)3731MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

Since May 26Pushed 2mo 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 today

READMEChangelog (8)Dependencies (12)Versions (9)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

46

—

FairBetter than 92% of packages

Maintenance92

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~371 days

Total

6

Last Release

11d ago

PHP version history (4 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

0.2.3PHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

### 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 (38 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[atlas-php/atlas

A unified AI SDK for Laravel applications.

5345.4k](/packages/atlas-php-atlas)[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)
