PHPackages                             ziad181/database-of-countries-and-cities - 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. [Database &amp; ORM](/categories/database)
4. /
5. ziad181/database-of-countries-and-cities

ActiveLibrary[Database &amp; ORM](/categories/database)

ziad181/database-of-countries-and-cities
========================================

This package contains a database of all countries and cities in 3 different languages: English, Arabic and French.

11PHP

Since Sep 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Ziad181/database-of-countries-and-cities)[ Packagist](https://packagist.org/packages/ziad181/database-of-countries-and-cities)[ RSS](/packages/ziad181-database-of-countries-and-cities/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Database Of Countries And Cities.
=================================

[](#database-of-countries-and-cities)

This package contains a database of all countries and cities in 3 different languages: English, Arabic and French.

- install the package `composer require ziad181/database-of-countries-and-cities`
- You can publish using the following command

`php artisan vendor:publish --provider="Ziad181\DatabaseOfCountriesAndCities\CountriesServiceProvider"`

- Export the tables to the database

`php artisan migrate`

- Open the DatabaseSeeder file and add the following code:

```
    $this->call([
            CountrySeeder::class,
            CitySeeder::class,
    ]);
```

- Export data to the database

`php artisan db:seed`

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/052964f873ba4ef6084bca292e08c657f18b41ff4d3e66ddd13126e74beef972?d=identicon)[Ziad181](/maintainers/Ziad181)

---

Top Contributors

[![Ziad181](https://avatars.githubusercontent.com/u/61622771?v=4)](https://github.com/Ziad181 "Ziad181 (12 commits)")

### Embed Badge

![Health badge](/badges/ziad181-database-of-countries-and-cities/health.svg)

```
[![Health](https://phpackages.com/badges/ziad181-database-of-countries-and-cities/health.svg)](https://phpackages.com/packages/ziad181-database-of-countries-and-cities)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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