2017 © Pedro Peláez
 

library php-locale-helpers

Wrapper functions for getting internationalised labels leveraging the build-in PHP Locale libraries

image

humanized/php-locale-helpers

Wrapper functions for getting internationalised labels leveraging the build-in PHP Locale libraries

  • Sunday, October 30, 2016
  • by jeffrey.geyssens
  • Repository
  • 2 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Locale Helpers

A collection of simple wrapper functions leveraging build-in PHP locale libraries, (*1)

Features

The library contains the following callable classes: * Country * Language * Locale, (*2)

Each class implements the following static functions:, (*3)

Function Example Input Example Output
all() Country::all() string[]: ['AF','AX', 'AL',....]
exists() Country::exists('ps') boolean: true
label() Country::label('ps','en') string: "Palestine"

Dependencies

This package is for use with PHP versions 5.3 and higher and requires supplemental installation of the php-intl extension, (*4)

Installation

Install Using Composer

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

$ php composer.phar require humanized/php-locale-helpers "*"

or add, (*7)

"humanized/php-locale-helpers": "*"

to the require section of your composer.json file., (*8)

The Versions

30/10 2016

dev-master

9999999-dev

Wrapper functions for getting internationalised labels leveraging the build-in PHP Locale libraries

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.3
  • ext-intl *

 

by Jeffrey Geyssens

php locale internationalisation