PHP code example of zhanang19 / human-readable-number
1. Go to this page and download the library: Download zhanang19/human-readable-number 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/ */
zhanang19 / human-readable-number example snippets
\Zhanang19\HumanReadableNumber\HumanReadableNumber::format(123); // 123
\Zhanang19\HumanReadableNumber\HumanReadableNumber::format(12300); // 12K+
readablenumber(12312); // 12K+
// view.blade.php
@readableNumber(12312) // 12K+