PHPackages                             abdelrahman2018/world-countries-cities2 - 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. abdelrahman2018/world-countries-cities2

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

abdelrahman2018/world-countries-cities2
=======================================

v0.1.2(10y ago)028PHPPHP &gt;=5.4.0

Since May 30Pushed 7y agoCompare

[ Source](https://github.com/Abdelrahman2018/Laravel-Countries-Cities)[ Packagist](https://packagist.org/packages/abdelrahman2018/world-countries-cities2)[ RSS](/packages/abdelrahman2018-world-countries-cities2/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

World Countries &amp; Cities
============================

[](#world-countries--cities)

A Laravel package for using world's popular countries and cities.

Features
--------

[](#features)

- Add the countries/cities to the database using migration and seeders.
- Use the countries/cities directly from the package without using the database.

Installation
------------

[](#installation)

Require the package with composer:

```
composer require alakkad/world-countries-cities

```

Add the ServiceProvider to the providers array in config/app.php

```
'Alakkad\WorldCountriesCities\WorldCountriesCitiesServiceProvider',

```

Copy the package config and migrations files to your local directories with:

```
php artisan vendor:publish

```

Usage
-----

[](#usage)

### Migration

[](#migration)

After running `php artisan vendor:publish` you can directly run:

```
php artisan migrate

```

### Seeders

[](#seeders)

In order to seed the migrated tables, you need to edit `database/seeds/DatabaseSeeder.php` and add the following lines:

```
public function run()
{
    Model::unguard();

    $this->call('Alakkad\WorldCountriesCities\CitiesSeeder');
    $this->call('Alakkad\WorldCountriesCities\CountriesSeeder');
}
```

Then run:

```
php artisan db:seed

```

Be careful, the seeders files truncate the tables before inserting, to prevent any duplication.

### Direct usage

[](#direct-usage)

To be implementated.

---

Credits
-------

[](#credits)

The data is based on MySQL's [world database example](https://dev.mysql.com/doc/world-setup/en/).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Total

3

Last Release

3889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cafb308f93782e7a180a229b34aa0a4ec553743c839ef595e6333f0d8057fb6?d=identicon)[Abdelrahman2018](/maintainers/Abdelrahman2018)

---

Top Contributors

[![AmmarCodes](https://avatars.githubusercontent.com/u/351256?v=4)](https://github.com/AmmarCodes "AmmarCodes (12 commits)")[![Abdelrahman2018](https://avatars.githubusercontent.com/u/35652840?v=4)](https://github.com/Abdelrahman2018 "Abdelrahman2018 (2 commits)")[![buro-buro](https://avatars.githubusercontent.com/u/13950212?v=4)](https://github.com/buro-buro "buro-buro (2 commits)")

### Embed Badge

![Health badge](/badges/abdelrahman2018-world-countries-cities2/health.svg)

```
[![Health](https://phpackages.com/badges/abdelrahman2018-world-countries-cities2/health.svg)](https://phpackages.com/packages/abdelrahman2018-world-countries-cities2)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
