2017 © Pedro Peláez
 

library country-list

Ease access to localized countries provided by umpirsky package

image

vcarreira/country-list

Ease access to localized countries provided by umpirsky package

  • Sunday, November 6, 2016
  • by vcarreira
  • Repository
  • 1 Watchers
  • 1 Stars
  • 797 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

CountryList

A simple Laravel 5 service provider for the umpirsky/country-list localized countries arrays., (*1)

Installation

Add the following line to the require section of composer.json:, (*2)

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

Setup

In /config/app.php, add the following to providers:, (*3)

CountryList\CountryListServiceProvider::class,, (*4)

and the following to aliases:, (*5)

'CountryList' => CountryList\Facades\CountryListFacade::class,, (*6)

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., (*7)

    $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:, (*8)

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

The Versions

06/11 2016

dev-master

9999999-dev http://github.com/vcarreira/country-list

Ease access to localized countries provided by umpirsky package

  Sources   Download

MIT

The Requires

 

by Vitor Carreira

laravel laravel 5 countries country list

06/11 2016

1.0

1.0.0.0 http://github.com/vcarreira/country-list

Ease access to localized countries provided by umpirsky package

  Sources   Download

MIT

The Requires

 

by Vitor Carreira

laravel laravel 5 countries country list