Download the PHP package vernsg/nusa-filament without Composer

On this page you can find all versions of the php package vernsg/nusa-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nusa-filament

Nusa Filament

CI Latest Version on Packagist Total Downloads

Nusa Filament provides Filament 4 components for working with Indonesian administrative regions in Laravel applications. It is powered by creasi/laravel-nusa, which supplies the underlying region data and lookup support.

Use this package to add cascading Provinsi -> Kabupaten/Kota -> Kecamatan -> Desa/Kelurahan selects to Filament forms. It also includes postal code autofill, table columns, filters, infolist entries, and validation rules for applications that store Indonesian address data.

Preview

Child regions are displayed as soon as a parent region is selected. Remote search remains available for filtering larger option lists.

Features

Version Compatibility

Package Version Filament Laravel PHP
^2.0 (main) ^4.0 ^11.0 \| ^12.0 ^8.2
^1.0 (1.x) ^3.0 ^10.0 \| ^11.0 \| ^12.0 ^8.1 \| ^8.2 \| ^8.3

The PHP sqlite3 extension is also required. Laravel Nusa stores its administrative region dataset in SQLite, so the extension must be enabled in the application that installs this package.

Installation

Filament v4 (Latest)

Filament v3

Laravel package auto-discovery registers the service provider automatically.

Publish the configuration file if you need to customize field names, labels, the search limit, native select behavior, or dropdown position:

The published configuration file will be available at:

Usage

Quick Start

Add NusaAddress to a Filament resource form to render a complete Indonesian address block.

The component renders these fields:

By default, values are stored in these model attributes:

Ensure that your model table contains matching nullable columns before saving the form.

Database Columns

The package stores administrative region codes, not region names. Use the provided table columns and infolist entries to display readable region names.

Example migration:

Dependent Select Behavior

The address selects are reactive and dependent by default:

Options are available immediately after a parent region is selected. For example, after selecting a province, the regency dropdown displays the matching regencies without requiring the user to type first.

Remote search remains enabled for filtering larger option lists.

Naming Convention

The package uses English names in its PHP API while displaying Indonesian labels by default:

Indonesian Label Component / API Term
Provinsi Province
Kabupaten/Kota Regency
Kecamatan District
Desa/Kelurahan Village

Form Components

Full Address Group

Customize field names when your model uses different columns:

Hide optional fields:

Individual Selects

Use the individual components to place fields manually:

Table Components

Display readable region names from stored codes:

Add a dependent location filter:

Customize filter field names:

Infolist Components

Display a complete address entry:

Or display individual entries:

Validation

Use the provided rules to validate individual region codes and confirm that the selected address hierarchy is consistent:

addressHierarchy() validates that:

Configuration

Publish the configuration file:

Available options:

select_position defaults to bottom so region dropdowns do not flip upward and cover previous fields on long forms. Set it to null to use Filament's default auto-placement behavior.

Relationship to Laravel Nusa

This package does not replace Laravel Nusa. It uses creasi/laravel-nusa as its data and region lookup layer, then adds Filament-specific components around it.

It can be used as:

Development

Install dependencies:

Run the test suite:

Run static analysis:

Check code style:

Fix code style:

Changelog

Please see CHANGELOG.md for notable changes.

Contributing

Please see CONTRIBUTING.md for contribution guidelines.

Security

Please see SECURITY.md for the security policy.

Credits

License

The MIT License. Please see LICENSE.md for details.


All versions of nusa-filament with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
creasi/laravel-nusa Version ^0.1.18
filament/forms Version ^4.0
filament/infolists Version ^4.0
filament/tables Version ^4.0
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vernsg/nusa-filament contains the following files

Loading the files please wait ...