2017 © Pedro Peláez
 

library dosh

Simple currency formatter for PHP.

image

bluebaytravel/dosh

Simple currency formatter for PHP.

  • Friday, April 27, 2018
  • by jbrooksuk
  • Repository
  • 4 Watchers
  • 23 Stars
  • 18,149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Dosh

StyleCI Build Status, (*1)

// 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

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

```bash
composer require bluebaytravel/dosh

Laravel Installation

Add the service provider to config/app.php in the providers array., (*2)

BlueBayTravel\Dosh\DoshServiceProvider::class

If you want you can use the facade. Add the reference in config/app.php to your aliases array., (*3)

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

License

Blue Bay Travel Dosh is licensed under The MIT License (MIT)., (*4)

The Versions

16/01 2017
13/01 2017
06/12 2016

v1.2.0

1.2.0.0

Simple currency formatter for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/08 2016

v1.1.0

1.1.0.0

Simple currency formatter for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/01 2016

v1.0.0

1.0.0.0

Simple currency formatter for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires