PHPackages                             onuraycicek/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. onuraycicek/currency

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

onuraycicek/currency
====================

This is my package currency

0.0.13(2y ago)057[2 PRs](https://github.com/onuraycicek/currency/pulls)MITPHPPHP ^8.1

Since Nov 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/onuraycicek/currency)[ Packagist](https://packagist.org/packages/onuraycicek/currency)[ Docs](https://github.com/onuraycicek/currency)[ RSS](/packages/onuraycicek-currency/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (12)Versions (16)Used By (0)

Laravel Currency Converter
==========================

[](#laravel-currency-converter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3f77b2737c21027bd1f51c618100c7943d3a093f527f15910c82b195764023d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e75726179636963656b2f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/onuraycicek/currency)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ee46a1a69ae59400da65e697649e8390dadcb49b73c71ecc6d9337c26a6de135/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6e75726179636963656b2f63757272656e63792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/onuraycicek/currency/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4a8d9ba0facbd2d959218fd505c6103848d2fa50e00c12b80eb584969d7f9a12/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6e75726179636963656b2f63757272656e63792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/onuraycicek/currency/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/537631db5383043b5870c847d867a973b3be0b963db3af01558275b41456c4a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6e75726179636963656b2f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/onuraycicek/currency)

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

[](#installation)

You can install the package via composer:

```
composer require onuraycicek/currency
```

```
php artisan vendor:publish --tag="currency-migrations"
php artisan vendor:publish --tag="currency-config"
php artisan vendor:publish --tag="currency-seeder"
php artisan migrate
php artisan db:seed --class=CurrencySeeder
```

You must be add this libs: Bootstrap 5, Jquery, Select2.

```

```

Finally you must be add the end (footer) of the layout file: (it's required when you want to use "select-active" attribute)

```
@stack("footer")
```

Usage
-----

[](#usage)

[![Alt text](assets/preview.jpg)](assets/preview.jpg)

```

```

#### **Attributes:**

[](#attributes)

**select-active**: It adds a selectbox above the table so you can check your currencies activity values.

```
$fromId = 53;
$toId = 155;
$amount = 100;
echo \Onuraycicek\Currency\Currency::convertWithId($fromId, $toId, $amount);

$fromCurrencyCode = 'TRY';
$toCurrencyCode = 'USD';
$amount = 100;
echo \Onuraycicek\Currency\Currency::convert($fromCurrencyCode, $toCurrencyCode, $amount);

var_dump(\Onuraycicek\Currency\Currency::getActiveCurrencies());

$currencyCode = 'TRY';
var_dump(\Onuraycicek\Currency\Currency::getCurrency('TRY'));

$currencyId = 1;
var_dump(\Onuraycicek\Currency\Currency::getCurrencyById($currencyId));

var_dump(\Onuraycicek\Currency\Models\Currency::all());
```

Config
------

[](#config)

```
return [
    'theme' => 'bootstrap5',
    'currencies' => ['TRY', 'USD', 'EUR'], // if it is null, currencies with status 1 will be shown. -> ('currencies' => null)
];

theme: bootstrap5, bootstrap4 (not supported yet)
currencies: https://www.html-code-generator.com/php/array/currency-names
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [onuraycicek](https://github.com/onuraycicek)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.1% 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 ~13 days

Total

13

Last Release

807d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/87834696?v=4)[Onur Ayçiçek](/maintainers/onuraycicek)[@onuraycicek](https://github.com/onuraycicek)

---

Top Contributors

[![onuraycicek](https://avatars.githubusercontent.com/u/87834696?v=4)](https://github.com/onuraycicek "onuraycicek (27 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelcurrencyonuraycicek

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94135.4k5](/packages/marcelweidum-filament-expiration-notice)

PHPackages © 2026

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