sadegh19b/laravel-iran-cities
Larablocks Analysis
sadegh19b/laravel-iran-cities works with Laravel 8 to 13 (latest release v2.1.0, May 30, 2026).
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (May 30, 2026)
- 243 downloads a month (needs 10,000)
- 13 GitHub stars (needs 100)
State
Maintained- Last stable release: May 30, 2026.
- 2 releases in the last 12 months.
- First released: Jun 1, 2025.
- Monthly downloads: 243.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require sadegh19b/laravel-iran-cities |
|
| Latest Version: | v2.1.0 |
| PHP: | ^8.0 |
| Laravel: | 8 – 13 |
| License: | MIT |
| Last Updated: | May 30, 2026 |
| Links: | GitHub · Packagist |
Iran Cities for Laravel
A Laravel package for Iran provinces, counties and cities seeder and models.
This package uses this repo for list of cities (Thanks to @sajaddp).
Supports Laravel 8 to 13.
Installation
You can install the package via composer:
composer require sadegh19b/laravel-iran-cities
Quick Start
- Publish migrations (optional):
php artisan vendor:publish --tag=iran-cities-migrations
- Run migrations:
php artisan migrate
- Run the seeder:
php artisan db:seed --class="Sadegh19b\LaravelIranCities\Seeders\IranCitiesSeeder"
- Use the models:
use Sadegh19b\LaravelIranCities\Models\Province;
use Sadegh19b\LaravelIranCities\Models\County;
use Sadegh19b\LaravelIranCities\Models\City;
// Get all provinces
$provinces = Province::all();
// Get counties of a province
$province = Province::find(1);
$counties = $province->counties;
// Get cities of a province
$province = Province::find(1);
$cities = $province->cities;
// Get cities of a county
$county = County::find(1);
$cities = $county->cities;
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.1.0 | ^8.0 | ^8.0| | MIT | |
| v2.0.0 | ^8.0 | ^8.0| | MIT | |
| v1.0.0 | ^8.0 | ^8.0| | MIT |