kslimani / geo-list

PHP only country-list currency-list and language-list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geo-list

A simple tiny PHP only version of the awesome umpirsky's country-list, currency-list and language-list projects.

This package is used by laravel-geo and the main goal is to reduce dependencies size. (ie: composer download time and size)

Installation

use Composer to add the package to your project's dependencies :

composer require kslimani/geo-list

Quick usage

use Sk\Geo\GeoList;

// Get countries for 'en_US'
$countries = GeoList::countries('en_US');

// Get currencies for 'en_US'
$currencies = GeoList::currencies('en_US');

// Get languages with fallback locale (will fail for "foo_BAR")
$languages = GeoList::languages('foo_BAR', 'fr_FR');

About

PHP only country-list currency-list and language-list.


Languages

Language:PHP 100.0%