1. Go to this page and download the library: Download adampatterson/numeral 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/ */
adampatterson / numeral example snippets
use Numeral\Numeral;
class SomeController extends Controller
{
public function myMethod(Numeral $numeral){
$numeral->number('85193.456')->format()
}
// OR
public function myOtherMethod(){
Numeral::number('85193.456')->format()
}
}