Download the PHP package anjan-talukdar/geo-master without Composer
On this page you can find all versions of the php package anjan-talukdar/geo-master. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anjan-talukdar/geo-master
More information about anjan-talukdar/geo-master
Files in anjan-talukdar/geo-master
Package geo-master
Short Description An ejectable scaffolding package for managing global geographic data (Countries, States, Districts, Cities) in Laravel.
License MIT
Informations about the package geo-master
GeoMaster Package for Laravel
An ejectable scaffolding package for managing global geographic data (Countries, States, Districts, Cities) in Laravel.
Features
- Ejectable Scaffold: Installs models and migrations directly into your host application.
- Lightweight Storage: After seating the database, you can simply uninstall the package to save storage space. The JSON data is not published to your repository.
- Hierarchical Data: Supports Countries, States (with GST code for India), Districts, and Cities.
- Extremely Efficient Seeding: The chunked JSON loading architecture prevents memory exhaustion and runs quickly.
Installation
Usage
-
Install Scaffolding: This command publishes the
Country,State,District, andCitymodels, as well as the necessary migration files into your root project. -
Run Migrations:
-
Seed Data: This command reads the massive geographic data chunks from the package vendor directory and efficiently populates your database.
- Eject (Optional): Once you have the data seeded and the models in your app, you probably don't need the massive raw JSON source files anymore. You can uninstall the package to keep your project size small!
Maintenance
To update the data in the future, simply re-require the package, run php artisan geo-master:seed again, and optionally remove it.