2017 © Pedro Peláez
 

library bind-cldr

Binds CLDR to ICanBoogie

image

icanboogie/bind-cldr

Binds CLDR to ICanBoogie

  • Thursday, May 25, 2017
  • by olvlvl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 935 Installations
  • PHP
  • 4 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Bind CLDR to ICanBoogie

Packagist Code Quality Coverage Status Downloads, (*1)

Binds icanboogie/cldr to ICanBoogie, using its Autoconfig feature., (*2)

<?php

/** @var ICanBoogie\Application $app */

use ICanBoogie\CLDR\Repository;
use ICanBoogie\Binding\CLDR\CurrentLocale;

# Getting the CLDR
$cldr = $app->service_for_class(Repository::class);
echo $cldr->locale_for('fr')->format_number("1234567.89"); // 1 234 567,89

# Getting the current locale, defaulting to 'en' locale
$current_locale = $app->service_for_class(CurrentLocale::class);
echo $current_locale->get()->id->value             // en

# Change the current locale to 'fr'
$current_locale->set('fr')
echo $current_locale->get()->id->value             // fr

Installation

composer require icanboogie/bind-cldr

Continuous Integration

The project is continuously tested by GitHub actions., (*3)

Tests Static Analysis Code Style, (*4)

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code., (*5)

Contributing

Please see CONTRIBUTING for details., (*6)

License

icanboogie/bind-cldr is released under the BSD-3-Clause., (*7)

The Versions

25/05 2017

2.0.x-dev

2.0.9999999.9999999-dev https://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

24/11 2016

dev-master

9999999-dev http://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

27/12 2015

v1.4.0

1.4.0.0 http://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

26/02 2015

v0.2.1

0.2.1.0 http://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

08/02 2015

v0.2.0

0.2.0.0 http://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

01/02 2015

v0.1.0

0.1.0.0 http://icanboogie.org/

Binds CLDR to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires