PHPackages                             epmnzava/location-demografia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. epmnzava/location-demografia

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

epmnzava/location-demografia
============================

Package that helps you get started with location demography ( country , city &amp; states )

1.9(4y ago)41.2kMITPHPPHP ^7.1|^7.2|^7.3|^7.4|^8.0CI failing

Since Feb 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dbrax/location-demographia)[ Packagist](https://packagist.org/packages/epmnzava/location-demografia)[ Docs](https://github.com/dbrax/location-demografia)[ RSS](/packages/epmnzava-location-demografia/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bcd18cff2c60c38c6986ebf79c8f757bd2b65d10b01964ab8bdbaec2cb87c7ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65706d6e7a6176612f6c6f636174696f6e2d64656d6f6772616669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/location-demografia)[![Build Status](https://camo.githubusercontent.com/cbcd5c01967e9e7fb898f0cce2fc576572695db1fa4de4ca63313634c6701e1a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65706d6e7a6176612f6c6f636174696f6e2d64656d6f6772616669612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/epmnzava/location-demografia)[![Quality Score](https://camo.githubusercontent.com/a6c6617a5f828fbca5d96a7a2e50ca4d80aa30c3f434b0aefc0865ef7897edcf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65706d6e7a6176612f6c6f636174696f6e2d64656d6f6772616669612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/epmnzava/location-demografia)[![Total Downloads](https://camo.githubusercontent.com/04f273aa7944616b0142b20ce6f6c5aa82f6b210bde5800b92e7d6ecb085400e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65706d6e7a6176612f6c6f636174696f6e2d64656d6f6772616669612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/epmnzava/location-demografia)

About location-demografia
-------------------------

[](#about-location-demografia)

From time to time we as developers require to fill up world countries and fetch cities from countries etc. This library package provides you a qucik and easy way to get started with location ( countries , cities and states ).You are welcome to use , reuse and distribute under ( MIT license).

Version Matrix
--------------

[](#version-matrix)

VersionLaravelPHP Version1.58.0&gt;= 8.01.48.0&gt;= 7.31.27.0&gt;= 7.2.5Installation
------------

[](#installation)

You can install the package via composer:

```
composer require epmnzava/location-demografia
```

Update your config (for Laravel 5.4 and below)
==============================================

[](#update-your-config-for-laravel-54-and-below)

Add the service provider to the providers array in config/app.php:

```
"Epmnzava\LocationDemografia\LocationDemografiaServiceProvider"::class

```

Add the facade to the aliases array in config/app.php:

```
'Location'=>Epmnzava\LocationDemografia\LocationDemografiaFacade,

```

After you add the above classes on config/app.php run below command to publish config , run migrations and load data thus ( countries and their states).

```
php artisan  locationdemografia:install
```

If you have the necessary tables already on your database you can easily run the following command to only load the necessary location data.

```
php artisan  locationdemografia:install --loadonly
```

Usage
-----

[](#usage)

```
