PHP code example of eclipsio / number-humanoid
1. Go to this page and download the library: Download eclipsio/number-humanoid 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/ */
eclipsio / number-humanoid example snippets
use Eclipsio\NumberHumanoid\NumberToWords;
$num = 71176482.556;
$str = NumberToWords::toWords($num);
echo $str;
use Eclipsio\NumberHumanoid\Humanoid;
$num = 10200;
$human = new Humanoid($num);
echo $human->out; // 10.20K
echo $human->number; // 10.20
echo $human->expression; // K