承接 creasi/laravel-nusa 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

creasi/laravel-nusa

最新稳定版本:v0.1.16

Composer 安装命令:

composer require creasi/laravel-nusa

包简介

A Laravel package that aim to provide Indonesia' Administrative Data

README 文档

README

Version License Actions Status Total Downloads

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.

What's Included

Instead of manually importing and maintaining large datasets, you get:

  • Instant Setup: Pre-packaged SQLite database with all data ready to use
  • Official Data: Sourced from authoritative Indonesian government databases
  • Complete Models: Province, Regency, District, Village with relationships
  • RESTful API: Ready-to-use endpoints for all administrative levels
  • Address Management: Built-in address system with validation
  • Geographic Data: Coordinates and postal codes
  • Customizable: Extend models and customize to fit your needs

Documentation

For complete usage instructions, API reference, examples, and guides, visit our comprehensive documentation:

📚 Laravel Nusa Documentation

Quick Start

Install the package via Composer:

composer require creasi/laravel-nusa

Start 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.

Contributing

For development setup, contribution guidelines, and detailed information about the project structure, see the full documentation.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 6.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 83
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 83
  • Watchers: 6
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-23