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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geography

EN | RU

The geography of the regions

Build Status License Twitter Scrutinizer Code Quality Build Status

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.

  1. Database selection

  2. Choice your host

  3. The name of the database:

    1. The user in the database:
  4. The password in the database (not shown):

  5. To select the language:

  6. 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 :

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!

[yes


All versions of geography with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
illuminate/database Version ^8.0
symfony/console Version ^5.0
illuminate/support Version ^8.0
illuminate/config Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package agoalofalife/geography contains the following files

Loading the files please wait ....