New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sadegh19b/laravel-iran-cities

A Laravel package for Iran provinces and cities seeder and models
1,124 13

Larablocks Analysis

sadegh19b/laravel-iran-cities works with Laravel 8 to 13 (latest release v2.1.0, May 30, 2026).

Promising: 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
Maintainer: sadegh19b

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

  1. Publish migrations (optional):
php artisan vendor:publish --tag=iran-cities-migrations
  1. Run migrations:
php artisan migrate
  1. Run the seeder:
php artisan db:seed --class="Sadegh19b\LaravelIranCities\Seeders\IranCitiesSeeder"
  1. 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

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v2.1.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v2.0.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v1.0.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT