mahbodhastam/laravel-iran-cities 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mahbodhastam/laravel-iran-cities

最新稳定版本:1.0.3

Composer 安装命令:

composer require mahbodhastam/laravel-iran-cities

包简介

Iran provinces and cities for Laravel.

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

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, but their original repository appears to be archived.

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);
  1. 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

Use it like the other Laravel models.

Contributing

All contributions are welcome.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-30