PHPackages                             bluebaytravel/dosh - 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. bluebaytravel/dosh

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

bluebaytravel/dosh
==================

Simple currency formatter for PHP.

v3.0.1(5y ago)2120.8kMITPHPPHP ^7.0CI failing

Since Jan 29Pushed 4y ago7 watchersCompare

[ Source](https://github.com/BlueBayTravel/Dosh)[ Packagist](https://packagist.org/packages/bluebaytravel/dosh)[ RSS](/packages/bluebaytravel-dosh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (11)Used By (0)

Dosh
====

[](#dosh)

[![StyleCI](https://camo.githubusercontent.com/4ec094eea5bf8df96284d6f34f3e2b20c8ac54ecb09f1b18b62609752d79d6b5/68747470733a2f2f7374796c6563692e696f2f7265706f732f35303538313437382f736869656c64)](https://styleci.io/repos/50581478)[![Build Status](https://camo.githubusercontent.com/4591183b4422c15abfbe43a4b3252247bab6058d2e388bb4c8935c35fa9d5719/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426c756542617954726176656c2f446f73682e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BlueBayTravel/Dosh)

```
// Parse a document.
$dosh = new Dosh(Dosh::GBP);
$dosh->format('25.43'); // £25.430

// Dependency injection example.
$dosh->format("100");

// Change currency
$dosh = new Dosh(Dosh::USD);
$dosh->format("100"); // $100
```

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
composer require bluebaytravel/dosh
```

### Laravel Installation

[](#laravel-installation)

Add the service provider to `config/app.php` in the `providers` array.

```
BlueBayTravel\Dosh\DoshServiceProvider::class
```

If you want you can use the [facade](http://laravel.com/docs/facades). Add the reference in `config/app.php` to your aliases array.

```
'Dosh' => BlueBayTravel\Dosh\Facades\Dosh::class
```

License
-------

[](#license)

Blue Bay Travel Dosh is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~206 days

Recently: every ~324 days

Total

9

Last Release

2104d ago

Major Versions

1.3.1 → v2.0.02017-12-07

v2.1.0 → v3.0.02018-10-24

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v2.0.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (22 commits)")[![CraigHarley](https://avatars.githubusercontent.com/u/8432365?v=4)](https://github.com/CraigHarley "CraigHarley (3 commits)")[![alex-bowers](https://avatars.githubusercontent.com/u/7655111?v=4)](https://github.com/alex-bowers "alex-bowers (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluebaytravel-dosh/health.svg)

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

###  Alternatives

[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M211](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)

PHPackages © 2026

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