Download the PHP package anandpilania/laravel-country.io without Composer
On this page you can find all versions of the php package anandpilania/laravel-country.io. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anandpilania/laravel-country.io
More information about anandpilania/laravel-country.io
Files in anandpilania/laravel-country.io
Package laravel-country.io
Short Description Country.io database for laravel
License MIT
Informations about the package laravel-country.io
anandpilania/laravel-country.io
UPDATE (v2.0.4)
- Your own
migration
name, - Set model from config,
-
Performance improvement.
- v2.0.3
- KEEP needed columns only,
- direct control via
config
file.
Laravel-Country.io
- artisan
based package that can fetch countries list with details aka:
- Code
- Continent
- Capital
- GDP
- Population
- ISO2/3
- Language
- Population
and more directly from Country.io and store it directly into file|db
.
Installation
FIRST STEP
and configure config
according to your need.
OPTIONAL STEP
BEFORE USING
Configure/adjust countryio
config file according to your need
How to use
First take a look of supported options
`
NOTE: Default location is storage/app/countryio.json
So, if you want to file
list only (default):
First publish the config
file
then, change the location: config/countryio.php
and fire:
FOR db
:
anandpilania/laravel-country.io
contains Country migration
& model
will create migration table
(based on countryio
config) & CountryIO
model (DEFAULT, if not set in config file) & update the database directly.
Why not using migration publish
: beacuse if your application already have migration/model for country
then ...
Todos
- App use
file
basedtable
- Flags
Play with artisan
:
Add to routes/console.php
:
and php artisan countries
:)
License
MIT
Free Software, Hell Yeah!