PHPackages                             rajibbinalam/country-state-city - 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. rajibbinalam/country-state-city

ActiveLibrary

rajibbinalam/country-state-city
===============================

find country state and cities all over the world

v0.2.0(3y ago)07[4 PRs](https://github.com/rajibbinalam/country-state-city/pulls)MITPHPPHP ^8.1CI passing

Since Apr 4Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/rajibbinalam/country-state-city)[ Packagist](https://packagist.org/packages/rajibbinalam/country-state-city)[ Docs](https://github.com/rajibbinalam/country-state-city)[ RSS](/packages/rajibbinalam-country-state-city/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (13)Versions (9)Used By (0)

Laravel Country State City
==========================

[](#laravel-country-state-city)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e581cb12d7aa7f09cfdae87d79c133b756e301df6c6dcd6240db3d9bb5bd806b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616a696262696e616c616d2f636f756e7472792d73746174652d636974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rajibbinalam/country-state-city)[![Total Downloads](https://camo.githubusercontent.com/fb2aa491f578554a1f12bb92856e171210e259a3d3f00ab48e427b508abd35de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616a696262696e616c616d2f636f756e7472792d73746174652d636974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rajibbinalam/country-state-city)

#### This Package is provid you world info about the country state and city name with their some local information

[](#this-package-is-provid-you-world-info-about-the-country-state-and-city-name-with-their-some-local-information)

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

[](#installation)

You can install the package via composer:

```
composer require rajibbinalam/country-state-city
```

Publish Vendor Files: ***Find the below files***

- config &gt; CountryStateCity.php
- database &gt; migrations &gt; country , state, city and timezone
- database &gt; seeders &gt; country , state, city and timezone

```
php artisan vendor:publish
# Provider: rajib\LaravelCountryStateCity\CountryStateCityServiceProvider
```

Configuration The Migrations Table Name and Field
-------------------------------------------------

[](#configuration-the-migrations-table-name-and-field)

```
return [

	/*
	|--------------------------------------------------------------------
	| Configaration Your Migrations.
    |----------------------------------------------------------------
    | Set the table_name or use default LIKE: 'table_name' => 'countries',
    |----------------------------------------------------------------
    | 'required' => true, will be added to the migration as a field
	|---------------------------------------------------------------------
	*/
	'migrations' => [
		'countries' => [
			'table_name' => 'countries',
			'optional_fields' => [
				'phone_code' => [
					'required' => true,
					'length' => 5,
				],
				'iso3' => [
					'required' => false,
					'length' => 3,
				],
			],
		],
	],
];
```

Migrate
-------

[](#migrate)

```
php artisan migrate
```

Database Seed
-------------

[](#database-seed)

Register the Seeders file to your `DatabaseSeeder.php` and run the seed commands

```
$this->call([
    CountryTableSeeder::class,
    StateTableSeeder::class,
    CityTableSeeder::class,
    TimezoneTableSeeder::class,
]);
```

```
php artisan db:seed    # it's need some time to seed the database
```

Contributing
------------

[](#contributing)

We will accept your Contribution with respect. Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rajib Bin Alam](https://github.com/rajibbinalam)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance52

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1 days

Total

4

Last Release

1132d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bccda2718c32370b29f8489ff79f3a90372e683771b8e487a327038ab82f20cd?d=identicon)[rajibbinalam](/maintainers/rajibbinalam)

---

Top Contributors

[![rajibbinalam](https://avatars.githubusercontent.com/u/41984925?v=4)](https://github.com/rajibbinalam "rajibbinalam (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravelstatecountrycitycountry-state-city

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/rajibbinalam-country-state-city/health.svg)

```
[![Health](https://phpackages.com/badges/rajibbinalam-country-state-city/health.svg)](https://phpackages.com/packages/rajibbinalam-country-state-city)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8230.8k](/packages/dipeshsukhia-laravel-country-state-city-data)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.6k](/packages/usamamuneerchaudhary-country-city-state)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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