PHPackages                             nes360org/countries-cities-world - 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. [API Development](/categories/api)
4. /
5. nes360org/countries-cities-world

ActiveLibrary[API Development](/categories/api)

nes360org/countries-cities-world
================================

it is the package by connect restcountries wiht API get counties and citys

1.0(3y ago)07MITPHPPHP ^8.0

Since Feb 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nes360org/countries-cities-world)[ Packagist](https://packagist.org/packages/nes360org/countries-cities-world)[ Docs](https://nes360.org)[ RSS](/packages/nes360org-countries-cities-world/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Countries-Cities-World
======================

[](#countries-cities-world)

This package provides a fast and easy way to obtain a complete list of countries and cities in the world for use in your Laravel 9 application. It connects to an external API (RESTCountries) to gather the necessary information.

### Installation

[](#installation)

You can install this package using Composer by running the following command:

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

### Configuration

[](#configuration)

After installing the package, you must publish its configuration file using the following command:

```
php artisan vendor:publish --provider="Root\CountriesCitiesWorld\CountriesCitiesWorldServiceProvider"
```

### Usage

[](#usage)

You can get a list of countries and cities at any time by calling the following functions:

```
$countries = CountriesCitW::getCountries();

$cities = CountriesCitW::getCities($countryCode);
```

### Data

[](#data)

To understand the structure of the JSON returned, please consult the API documentation at .

### Credits

[](#credits)

This package uses the RESTCountries API () to gather information about countries and cities around the world.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1238d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84037142?v=4)[nes360org](/maintainers/nes360org)[@nes360org](https://github.com/nes360org)

---

Top Contributors

[![nes360org](https://avatars.githubusercontent.com/u/84037142?v=4)](https://github.com/nes360org "nes360org (7 commits)")

### Embed Badge

![Health badge](/badges/nes360org-countries-cities-world/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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