PHPackages                             mahbodhastam/laravel-iran-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mahbodhastam/laravel-iran-cities

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

mahbodhastam/laravel-iran-cities
================================

Iran provinces and cities for Laravel.

1.0.3(1y ago)3371MITPHPPHP ^8.2CI passing

Since Mar 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MahbodHastam/laravel-iran-cities)[ Packagist](https://packagist.org/packages/mahbodhastam/laravel-iran-cities)[ Docs](https://github.com/mahbodhastam/laravel-iran-cities)[ RSS](/packages/mahbodhastam-laravel-iran-cities/feed)WikiDiscussions main Synced today

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

Iran Cities for Laravel
=======================

[](#iran-cities-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9272a4632aa85214f3798c5638e48802a707835933998758a19b817364c539c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6168626f6468617374616d2f6c61726176656c2d6972616e2d6369746965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahbodhastam/laravel-iran-cities)[![Total Downloads](https://camo.githubusercontent.com/4d578759467ba9949763a8aef802208319b8a1143d46a2cf66bb3870c98da66c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6168626f6468617374616d2f6c61726176656c2d6972616e2d6369746965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahbodhastam/laravel-iran-cities)[![GitHub Actions](https://github.com/mahbodhastam/laravel-iran-cities/actions/workflows/main.yml/badge.svg)](https://github.com/mahbodhastam/laravel-iran-cities/actions/workflows/main.yml/badge.svg)

I spent the day searching for an existing package providing a list of cities in Iran, but I couldn't find one. As a result, I created this package. The helper functions and core logic are based on the work of [SanjabTeam](https://github.com/sanjabteam/baloot), but their original repository appears to be archived.

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

[](#installation)

You can install the package via composer:

```
composer require mahbodhastam/laravel-iran-cities
```

And then publish the config file (optional):

```
php artisan vendor:publish --provider=MahbodHastam\\LaravelIranCities\\LaravelIranCitiesServiceProvider
```

Don't forget to run the seeder:

1. Add this line into the `run` method of the `DatabaseSeeder.php` file:

```
$this->call(\MahbodHastam\LaravelIranCities\Database\Seeds\ProvincesAndCitiesSeeder::class);
```

2. Then run.

```
php artisan migrate --seed
```

> It'll create two tables: `cities` and `provinces`. You can change their names in the config file before migrating.

Usage
-----

[](#usage)

Use it like the other Laravel models.

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

[](#contributing)

All contributions are welcome.

### Testing

[](#testing)

```
composer test
```

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~29 days

Total

3

Last Release

405d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.0.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1faab9a1094d7fb37c4b31d2f6248ae0ede4adf2a0e9779438bc6a4867f9ddd0?d=identicon)[mahbod4782](/maintainers/mahbod4782)

---

Top Contributors

[![MahbodHastam](https://avatars.githubusercontent.com/u/17749373?v=4)](https://github.com/MahbodHastam "MahbodHastam (7 commits)")[![ialireza](https://avatars.githubusercontent.com/u/26402782?v=4)](https://github.com/ialireza "ialireza (1 commits)")

---

Tags

cityiranlaravelphpprovinceMahbodHastamlaravel-iran-cities

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mahbodhastam-laravel-iran-cities/health.svg)

```
[![Health](https://phpackages.com/badges/mahbodhastam-laravel-iran-cities/health.svg)](https://phpackages.com/packages/mahbodhastam-laravel-iran-cities)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M377](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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