定制 devfaysal/laravel-bangladesh-geocode 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

devfaysal/laravel-bangladesh-geocode

最新稳定版本:2.7.1

Composer 安装命令:

composer require devfaysal/laravel-bangladesh-geocode

包简介

README 文档

README

Division, District, Upazila and Union data of Bangladesh for Laravel application. One artisan command and you are all set.

Do not hesitate to share your thought, create issue or send pull request.

Latest Version on Packagist Quality Score Total Downloads

Laravel Version Compatibility

Laravel Package
5.5.x 0.4.x
5.6.x 0.4.x
5.7.x 0.4.x
5.8.x 0.4.x
6.x.x 0.4.x
7.x.x 0.4.x
8.x.x 1.0.x
9.x.x 2.x.x
10.x.x 2.x.x
11.x.x 2.x.x
12.x.x 2.x.x

Update (New Upazila and Union added in v2.3.0)

Run this command to add new records to existing application safely

php artisan BangladeshGeocode:addnew

Installation

You can install the package via composer:

composer require devfaysal/laravel-bangladesh-geocode

Setup everything with just running one artisan command

php artisan BangladeshGeocode:setup

Usage

use Devfaysal\BangladeshGeocode\Models\Division;
use Devfaysal\BangladeshGeocode\Models\District;
use Devfaysal\BangladeshGeocode\Models\Upazila;

$divisions = Division::all();
$districts = District::all();
$upazilas = Upazila::all();

$division = Division::where('name', 'Dhaka');
$allDistrictsOfDhaka = $division->districts;

$division = Division::find(1);
$districts = $division->districts;

$district = District::find(1);
$upazilas = $district->upazilas;

//Use any Laravel (eluquent) model functions...

Testing

The package is well supported by automated test.

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email devfaysal@gmail.com instead of using the issue tracker.

Credits

License

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

统计信息

  • 总下载量: 9.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 72
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 71
  • Watchers: 3
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-27