适用于 Laravel 应用程序的完整、可立即使用的印尼行政区域数据
Laravel Nusa provides complete, ready-to-use Indonesian administrative region data for Laravel applications. This package includes all 38 provinces, 514 regencies, 7,285 districts, and 83,762 villages with their hierarchical relationships, postal codes, and geographic coordinates based on Kepmendagri No 300.2.2-2138 Tahun 2025.
Laravel Nusa solves the common challenge of integrating Indonesian administrative data into Laravel applications. Unlike other packages, it requires no data migration or seeding—the data is ready immediately after installation.
Instead of manually importing and maintaining large datasets, you get:
v0.2sqlite database and static files on each release #220nusa-filament - Filament 4 components for Indonesian administrative region selects powered by laravel-nusa. by @VernSGFor complete usage instructions, API reference, examples, and guides, visit our comprehensive documentation:
** Laravel Nusa Documentation**
Install the package via Composer:
composer require creasi/laravel-nusaStart using it immediately:
use Creasi\Nusa\Models\Province;
// Get all provinces
$provinces = Province::all();
// Search by name or code
$jateng = Province::search('Jawa Tengah')->first();
$jateng = Province::search('33')->first();
// Get related data
$regencies = $jateng->regencies;
$districts = $jateng->districts;
$villages = $jateng->villages;That's all! The package is ready to use immediately after installation.
For development setup, contribution guidelines, and detailed information about the project structure, see the full documentation.
The MIT License (MIT). Please see License File for more information.
暂无开放 Issues,或尚未同步最近议题。