Download the PHP package diegocopat/laravel-geodata without Composer
On this page you can find all versions of the php package diegocopat/laravel-geodata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diegocopat/laravel-geodata
More information about diegocopat/laravel-geodata
Files in diegocopat/laravel-geodata
Package laravel-geodata
Short Description World countries + geographic data (regions, provinces, municipalities with postal codes) + Italian fiscal code (Codice Fiscale) for Laravel. Country-scoped: start with Italy, expand globally.
License MIT
Informations about the package laravel-geodata
Laravel Geodata
World countries + geographic data (regions, provinces, municipalities) + Italian fiscal code (Codice Fiscale) for Laravel. Country-scoped: start with Italy, expand globally.
Features
- 295 countries with Belfiore codes (includes historical entities for fiscal code retroactive calculation)
- 20 Italian regions, 107 provinces, ~7,900 municipalities with CAP, coordinates, Belfiore codes
- Codice Fiscale: generate, validate, and parse Italian fiscal codes
- Artisan commands for seeding, updating, and statistics
- Configurable table names to avoid conflicts
- Laravel 10/11/12/13 compatible
Installation
The package auto-discovers the service provider. Publish the config (optional):
Run migrations and seed data:
Configuration
Usage
GeoData Facade
FiscalCode Facade
Eloquent Models
All models are available for direct queries:
Artisan Commands
Seeding (country-scoped)
Data management
Adding a new country
To add geographic data for a new country, create a directory under database/data/countries/:
Then run php artisan geodata:seed --country=de. See the it/ directory for the expected JSON format.
Data Sources
- DarioCorno/database_comuni_italiani — ISTAT-based Italian geographic data
- Garda Informatica — Reference
License
MIT License. See LICENSE for details.
All versions of laravel-geodata with dependencies
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0