承接 epmnzava/location-demografia 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

epmnzava/location-demografia

最新稳定版本:1.9

Composer 安装命令:

composer require epmnzava/location-demografia

包简介

Package that helps you get started with location demography ( country , city & states )

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

About location-demografia

From time to time we as developers require to fill up world countries and fetch cities from countries etc. This library package provides you a qucik and easy way to get started with location ( countries , cities and states ).You are welcome to use , reuse and distribute under ( MIT license).

Version Matrix

Version Laravel PHP Version
1.5 8.0 >= 8.0
1.4 8.0 >= 7.3
1.2 7.0 >= 7.2.5

Installation

You can install the package via composer:

composer require epmnzava/location-demografia

Update your config (for Laravel 5.4 and below)

Add the service provider to the providers array in config/app.php:

"Epmnzava\LocationDemografia\LocationDemografiaServiceProvider"::class

Add the facade to the aliases array in config/app.php:

'Location'=>Epmnzava\LocationDemografia\LocationDemografiaFacade,

After you add the above classes on config/app.php run below command to publish config , run migrations and load data thus ( countries and their states).

php artisan  locationdemografia:install

If you have the necessary tables already on your database you can easily run the following command to only load the necessary location data.

php artisan  locationdemografia:install --loadonly

Usage

<?php

use Epmnzava\LocationDemografia;

class TestController extends Controller{
public function test(){

$location= new LocationDemografia;

//get all countries 
$countries=$location->getCountries();

//get all countries states

$states=$location->getCountriesState($countryid);

//search countries
$country=$location->search_country($countryname);


}

}

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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

Any questions or comments hit me up on

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-22