2017 © Pedro PelĂĄez
 

library localefacade

[Deprecated] OO wrapper to symfony/locale

image

ledgr/localefacade

[Deprecated] OO wrapper to symfony/locale

  • Wednesday, January 21, 2015
  • by hanneskod
  • Repository
  • 0 Watchers
  • 0 Stars
  • 160 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

NOTE: The symfony Locale component is deprecated since symfony 2.3, use the Intl component instead. LocaleFacade will not be updated as it is not necessary when using Intl., (*1)

For more information see the Intl documentation., (*2)

LocaleFacade [deprecated]

OO wrapper to symfony/locale (and the Locale class of the Intl extension), (*3)

Installation

Install using composer, (*4)

composer require ledgr/localefacade

Usage

use ledgr\localefacade\LocaleFacade;

$l = new LocaleFacade('de');

// Prints 'Deutsch'
echo $l->getDisplayName();

// Prints 'Schweden'
echo $l->getDisplayCountries()['SE'];

$arr = array(
    'ĂŒ',
    'u',
    'ß',
    's'
);
$l->createCollator()->sort($arr);

// Prints 's, ß, u, ĂŒ'
print_r($arr);

// And all the other Locale methods...

Testing

To run the tests you must first install dependencies using composer., (*5)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
$ phpunit

The Versions

21/01 2015

dev-master

9999999-dev https://github.com/hanneskod/localefacade

[Deprecated] OO wrapper to symfony/locale

  Sources   Download

WTFPL

The Requires

 

by Hannes ForsgÄrd

symfony locale

03/04 2014

1.0.1

1.0.1.0 https://github.com/ledgr/localefacade

OO wrapper to symfony/locale (and the Locale class of the Intl extension)

  Sources   Download

WTFPL

The Requires

 

by Hannes ForsgÄrd

locale intl symfony locale

18/02 2014

1.0.0

1.0.0.0 https://github.com/ledgr/localefacade

OO wrapper to symfony/locale (and the Locale class of the Intl extension)

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

locale intl symfony locale

08/02 2013

0.1.0

0.1.0.0 https://github.com/iio/localefacade

OO wrapper to symfony/locale (and the Locale class of the Intl extension)

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

locale intl symfony locale