pharaonic/laravel-locations
Laravel Locations is a lightweight package that adds country, state, and city data to Laravel apps, with models, migrations, and helpers for seeding and querying locations. It makes address forms, regional filters, and location-aware features easier to build.
Adopt when:
Look elsewhere when:
For executives: This is a small, free, MIT-licensed dependency that replaces a build we'd otherwise scope at several engineer-weeks plus ongoing curation. It carries no vendor contract, no per-call cost, and no external service in the request path — so it's low financial and operational risk. The exposure is data accuracy and maintenance cadence, both of which we contain with a validation test and a documented fallback to a commercial geo provider if a market demands higher fidelity. Recommendation: adopt for MVP and back-office flows; revisit for compliance-grade or high-volume use cases.
For engineering: Simple Eloquent models over seeded tables; no runtime API calls. Version 1.5.7 is a data-only patch (removes a duplicate ISO state code) — semver-safe, no migrations to our code. Two actions worth taking: (1) add a CI assertion for unique ISO codes and referential integrity across countries/states/cities, since the bug this release fixes is exactly the class of defect that reaches production silently; (2) agree a re-seed policy before upgrading, because removing a duplicate row can break foreign keys or stored codes in our own data. Pin the version, treat data releases as reviewable changes, and keep the package behind our own repository/service boundary so swapping the source later is a contained change.
How can I help you explore Laravel packages today?