javaabu/locations
Larablocks Analysis
javaabu/locations works with Laravel 12 and 13 (latest release v1.0.0-alpha.1, Nov 24, 2026).
Recommendation checks
Use with careUse with care: meets 2 of 5 checks.
- Works with Laravel 13, the current version
- Pre-release in the last 12 months (Nov 24, 2026); no stable release yet
- First released under 90 days ago
- 54 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Too new to judge- Last release (pre-release): Nov 24, 2026.
- 1 release in the last 12 months, a pre-release.
- First released: Nov 24, 2026.
- Monthly downloads: 54.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require javaabu/locations:v1.0.0-alpha.1 |
|
| Latest Version: | v1.0.0-alpha.1 |
| PHP: | ^8.4 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 24, 2026 |
| Links: | GitHub · Packagist |
Locations
Countries, states, cities, atolls and islands for Laravel:
- Data: all 249 ISO 3166-1 countries (codes, English and Dhivehi names, calling codes), every Maldivian atoll (letter and ISO 3166-2 codes, official names) and every island of the national island register (feature codes, Dhivehi names, categories, coordinates). All seeded from cited, authoritative sources.
- Selects: cascading selects (country → atoll → island) for Blade (javaabu/forms), React (@javaabu/forms) and javaabu/stencil.
- Admin pages: in Blade or Inertia React, authorized with javaabu/permissions.
php artisan migrate
php artisan locations:seed
use Javaabu\Locations\Models\Island;
$island = Island::findByCode('LD0568');
$island->dhivehi_name; // ދިއްދޫ
$island->formattedName('dv'); // ހއ. ދިއްދޫ
$island->category->label(); // Residential
Island::query()->ofAtoll('HA')->inhabited()->ordered()->get();
<x-forms::form :model="$address">
<x-locations::atoll-select name="atoll_id" child="island_id" />
<x-locations::island-select name="island_id" parent="atoll_id" />
</x-forms::form>
Route::locationOptions(); // what the cascading selects load from
Route::locations(['guard' => 'web_admin']); // admin pages for every type
Documentation
The docs are in docs/, and will be published on docs.javaabu.com. For AI assistants, llms.txt lists the rules and every page, and the package ships a Laravel Boost guideline and skill.
Where the data comes from, and what still needs a human to review it: Data sources.
Testing
composer test
pnpm install && pnpm test
php bin/validate-data.php
Changelog
See CHANGELOG.
Contributing
See CONTRIBUTING.
Security
If you discover any security related issues, please email info@javaabu.com instead of using the issue tracker.
Credits
The island register contains information licensed under Data Usage License – Geomatics Department of Ministry of Infrastructure, Housing and Urban Development. Country data comes from Debian's iso-codes (LGPL-2.1-or-later) and Google's libphonenumber (Apache-2.0).
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Fluent bulk actions for Laravel: each authorized through the Gate with can(), op...
WordPress classic-style widgets for Laravel: widget classes with javaabu/stencil...
Dynamic forms for Laravel: versioned form definitions and entries in the databas...
Version History
Pre-releases (1)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.0-alpha.1 | ^8.4 | ^12.0 || | MIT |