Download the PHP package znck/cities without Composer
On this page you can find all versions of the php package znck/cities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cities
Cities
A cities list provider for Laravel.
Installation
Either PHP 7.0+ is required.
To get the latest version of cities, simply require the project using Composer:
Instead, you may of course manually update your require block and run composer update
if you so choose:
Once Cities
is installed, you have to register its service provider. Open config/app.php
and add Znck\Cities\CitiesServiceProvider::class
to providers
key. Your config/app.php
should look like this.
Usage
-
Use
City
trait in you Eloquent model. - Cities provides command (
php artisan cities:update
) to update list in database.
Configuration
Table names for cities and states are required. By default cities
and states
are used, but you can override these.
To get started, you'll need to publish all vendor assets:
This will create a config/cities.php
file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.
Conventions
Expected schema:
Development plan
- [x] Create minimal working package.
- [ ] Add migrations.
- [ ] Integrate
znck/state
andznck/countries
. - [ ] Add major cities of India.
- [ ] Add translations in all 23 languages.
- [ ] Add major cities of World.
License
Cities is licensed under The MIT License (MIT).
All versions of cities with dependencies
symfony/translation Version ^3.0
illuminate/console Version ^5.2
illuminate/database Version ^5.2
illuminate/support Version ^5.2