定制 vcarreira/country-list 二次开发

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

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

vcarreira/country-list

Composer 安装命令:

composer require vcarreira/country-list

包简介

Ease access to localized countries provided by umpirsky package

README 文档

README

A simple Laravel 5 service provider for the umpirsky/country-list localized countries arrays.

Installation

Add the following line to the require section of composer.json:

{
    "require": {
        "vcarreira/country-list": "~1.0"
    }
}

Setup

In /config/app.php, add the following to providers:

CountryList\CountryListServiceProvider::class,

and the following to aliases:

'CountryList' => CountryList\Facades\CountryListFacade::class,

Usage

To use the service within your app, you need to retrieve it from the Laravel IoC Container. The following example uses the app helper to retrieve the list of countries in Portuguese.

    $countries = app('countrylist')->all('pt_PT');

If the facade is registered within the aliases section of the application configuration, you can also use the following code:

  $countries = CountryList::all('pt_PT');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固