Download the PHP package agoalofalife/geography without Composer
On this page you can find all versions of the php package agoalofalife/geography. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package geography
The geography of the regions
What is it?
This package solves the problem with the hierarchy of countries, regions, settlements in your database. A few commands in the console, you deploy all the necessary the country , regardless of country and language.
The installation of the package
For installation, you must run the command from composer
composer require agoalofalife/geography
Data migration
Run the command :
Following the instructions step by step, continue to enter information.
-
Database selection
-
Choice your host
-
The name of the database:
- The user in the database:
-
The password in the database (not shown):
-
To select the language:
- Choose the country you want to migrate, for example I need a few countries (Australia and Brazil), respectively, I would need to enter : AU,BR
After some time, depending on the volume of information you will see in my database three tables :
- Country
- Regions
- Сities
Congratulations to all successful!
Integration with Laravel
Since the environment Laravel uses for its tables Seeder and Migration, we can freely copy it to your project Laravel!
After you get your files in a folder database and config.
To configure your language and countries you want to migrate, you must change the configuration file in config/geography.php :
Next, you need to perform :
After you can easily remove the package and what not to worry!
[
All versions of geography with dependencies
illuminate/database Version ^8.0
symfony/console Version ^5.0
illuminate/support Version ^8.0
illuminate/config Version ^8.0