1. Go to this page and download the library: Download xcutionsociety/php-tools 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/ */
xcutionsociety / php-tools example snippets
use XcS\XcTools;
$rupiah = XcTools::rupiah(5000);
echo $rupiah;
//Rp. 5.000
use XcS\XcTools;
class HomeController extends Controller
{
public function __construct()
{
/****/
}
public function index()
{
$rupiah = XcTools::rupiah("5000");
echo $rupiah;
//Rp. 5.000
}
}