PHP code example of fikar / phpnusantara

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

    

fikar / phpnusantara example snippets



PHPNusantara\Formatter\Rupiah;

echo Rupiah::format(1500000);
// Output: Rp 1.500.000


PHPNusantara\Formatter\Tanggal;

echo Tanggal::indo('2025-01-14');
// Output: 14 Januari 2025


PHPNusantara\Formatter\Terbilang;

echo Terbilang::buat(2500);
// Output: dua ribu lima ratus
text
project-native/
├── vendor/
│   └── PHPNusantara/
│       └── src/
├── index.php
text
PHPNusantara/
├── src/
│   ├── App/
│   │   ├── Bulan.php
│   │   ├── Response.php
│   │   └── WaktuRelatif.php
│   │
│   ├── Bahasa/
│   │   └── StringHelper.php
│   │
│   ├── Formatter/
│   │   ├── Angka.php
│   │   ├── Persentase.php
│   │   ├── Rupiah.php
│   │   ├── Tanggal.php
│   │   ├── Terbilang.php
│   │   └── Waktu.php
│   │
│   └── Identity/
│       ├── Email.php
│       ├── Nik.php
│       └── Telepon.php
│
├── composer.json
└── README.md