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

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

sfneal/currency
===============

Helper functions for dealing with currency conversions in Laravel applications

2.0.1(4y ago)063.0k↓87.5%2MITPHPPHP &gt;=7.1

Since Nov 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sfneal/currency)[ Packagist](https://packagist.org/packages/sfneal/currency)[ Docs](https://github.com/sfneal/currency)[ RSS](/packages/sfneal-currency/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (11)Used By (2)

Currency
========

[](#currency)

[![Packagist PHP support](https://camo.githubusercontent.com/e853d52c1a72d287c1e3b245b491ed698b30f345020327a48fbc2077af87cbfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73666e65616c2f63757272656e6379)](https://packagist.org/packages/sfneal/currency)[![Latest Version on Packagist](https://camo.githubusercontent.com/4e49dbda15338f2ad4d7d65fcf9e184d0ae4d3c4675f7ab24e594f7c419344fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666e65616c2f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/currency)[![Build Status](https://camo.githubusercontent.com/ecb0352b1b08b11b1cd2baa441eb8db9391b296f1e96179792715ebfae22e090/68747470733a2f2f7472617669732d63692e636f6d2f73666e65616c2f63757272656e63792e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/sfneal/currency)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2186e1c6aa8df338ffc3f7acabe6420c82ea661e5114bb044743303f843934d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73666e65616c2f63757272656e63792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sfneal/currency/?branch=master)[![StyleCI](https://camo.githubusercontent.com/745fd2f52766779e2c5b74ed90f7f57dd20258aed351870a5d24ee894d2bebd4/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3331313431363638392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/311416689?branch=master)[![Total Downloads](https://camo.githubusercontent.com/b35fa27a10b7c314d13ea4e10d3394b61051dddc55e559548dac707ce7d63e6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666e65616c2f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/currency)

Helper functions for dealing with currency conversions in Laravel applications.

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

[](#installation)

You can install the package via composer:

```
composer require sfneal/currency
```

Usage
-----

[](#usage)

```
use Sfneal\Currency\FormatDollars;
FormatDollars::execute(43.654284, 2, '', true);
>>> $43.65
```

### Testing

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Neal](https://github.com/sfneal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Recently: every ~55 days

Total

8

Last Release

1758d ago

Major Versions

0.2.0 → 1.0.02021-01-21

1.1.0 → 2.0.02021-04-01

PHP version history (3 changes)0.1.0PHP &gt;=7.0

0.1.1PHP &gt;=7.2

2.0.1PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![sfneal](https://avatars.githubusercontent.com/u/23200215?v=4)](https://github.com/sfneal "sfneal (53 commits)")

---

Tags

currencysfneal

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[brick/money

Money and currency library

1.9k40.4M141](/packages/brick-money)[florianv/swap

PHP currency conversion library for retrieving exchange rates from 30 providers, with caching and fallback.

1.3k6.7M22](/packages/florianv-swap)[cknow/laravel-money

Laravel Money

1.0k4.6M29](/packages/cknow-laravel-money)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7855.7M44](/packages/akaunting-laravel-money)[webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x, 12.x, and 13.x.

8402.8M9](/packages/webpatser-laravel-countries)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4265.3M23](/packages/kwn-number-to-words)

PHPackages © 2026

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