PHP code example of starbug / price-formatter

1. Go to this page and download the library: Download starbug/price-formatter 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/ */

    

starbug / price-formatter example snippets



use Starbug\Price\Formatter;

$formatter = new Formatter();

echo $formatter->format(100000);
// Outputs: $1,000.00