Download the PHP package fadlee/filament-indonesia-region-field without Composer

On this page you can find all versions of the php package fadlee/filament-indonesia-region-field. 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 filament-indonesia-region-field

Filament Indonesia Region Field

A custom form field component for Filament PHP that adds Indonesia region selection capabilities to your forms. This package provides a single select input field that can handle 4 levels of Indonesia administrative regions (Province, Regency/City, District, and Village).

Features

Requirements

Installation

You can install the package via composer:

Usage

  1. Import the IndonesiaRegionSelect component and RegionLevel enum in your Filament resource or form:

  2. Add the field to your form:

  3. Using with specific level:

Available levels:

  1. Using in Filament action modals:

How it Works

The package extends Filament's native select component to provide a seamless Indonesia region selection experience. Key features include:

  1. Client-side Search: All searching is performed on the client side using fuzzy search, eliminating the need for additional server requests and providing instant feedback.

  2. Data Loading: Region data is loaded once and cached on the client side, making subsequent searches and filtering operations extremely fast.

  3. User Experience: The component provides immediate response to user input since all operations are performed locally in the browser.

Technical Implementation

The Indonesia region selector is built on top of Filament's select component with these enhancements:

  1. Data Structure: Uses a comprehensive database of Indonesia administrative regions up to village level.

  2. Search Implementation: Implements client-side fuzzy search for better performance and user experience.

  3. Value Management: Handles the storage and retrieval of region codes while displaying human-readable region names in the interface.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.


All versions of filament-indonesia-region-field with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
filament/filament Version ^3.0
filament/forms Version ^3.0
filament/tables Version ^3.0
spatie/laravel-package-tools Version ^1.14.0
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 fadlee/filament-indonesia-region-field contains the following files

Loading the files please wait ....