2017 © Pedro Peláez
 

library laravel-country-flags

A Laravel 5.5 wrapper for the stidges/country-flags package

image

stidges/laravel-country-flags

A Laravel 5.5 wrapper for the stidges/country-flags package

  • Monday, January 29, 2018
  • by stidges
  • Repository
  • 1 Watchers
  • 4 Stars
  • 149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 181 % Grown

The README.md

Laravel Country Flags

Latest Version on Packagist Software License Build Status Total Downloads, (*1)

A Laravel wrapper for the stidges/country-flags package., (*2)

Installation

You can install the package via Composer:, (*3)

``` bash $ composer require stidges/laravel-country-flags, (*4)


The Laravel facade and service provider are registered through auto-discovery, so you can start using it out of the box! ## Usage This package publishes a Laravel facade for easier usage: ``` php use CountryFlag; echo CountryFlag::get('NL'); // "🇳🇱"

It also comes with a helper function that you can use!, (*5)

``` php echo country_flag('NL'); // "🇳🇱", (*6)


## Aliasing If you would like to make country codes available under a custom aliases, you can update the configuration file. First you should publish it: ``` bash $ php artisan vendor:publish --provider="Stidges\LaravelCountryFlags\CountryFlagsServiceProvider"

This will make the configuration file available under config/country-flags.php. You can update the 'aliases' section to add your custom aliases:, (*7)

``` php return [ 'aliases' => [ 'AA' => 'NL', ], ];, (*8)


And it will be available for you to access: ``` php echo country_flag('AA'); // "🇳🇱"

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email info@stidges.com instead of using the issue tracker., (*10)

Credits

License

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

The Versions

29/01 2018

dev-master

9999999-dev https://github.com/stidges/laravel-country-flags

A Laravel 5.5 wrapper for the stidges/country-flags package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel country countries emoji unicode flag country-flags

29/01 2018

v1.0.0

1.0.0.0 https://github.com/stidges/laravel-country-flags

A Laravel 5.5 wrapper for the stidges/country-flags package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel country countries emoji unicode flag country-flags