PHP code example of bluebaytravel / dosh
1. Go to this page and download the library: Download bluebaytravel/dosh library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bluebaytravel / dosh example snippets
// 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
BlueBayTravel\Dosh\DoshServiceProvider::class
'Dosh' => BlueBayTravel\Dosh\Facades\Dosh::class