1. Go to this page and download the library: Download mjajak/ci4-indodev-toolkit 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/ */
mjajak / ci4-indodev-toolkit example snippets
echo indo_date_lengkap('2026-01-14'); // Rabu, 14 Januari 2026
echo indo_date_ringkas('2026-01-14'); // 14 Januari 2026
echo indo_date_bulan_tahun('2026-01-14'); // Januari 2026
echo indo_date_hari('2026-01-14'); // Rabu
echo indo_date_relative('2026-01-14 10:00:00'); // 3 jam yang lalu
echo indo_date_ringkas('invalid'); // invalid
echo indo_number_rupiah(1500000); // Rp1.500.000
echo indo_number_terbilang(1250); // Seribu Dua Ratus Lima Puluh
echo indo_number_sanitize('Rp 1.500.000'); // 1500000
echo indo_number_thousand_separator(1500000); // 1.500.000