承接 icanboogie/bind-cldr 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

icanboogie/bind-cldr

最新稳定版本:v5.0.0

Composer 安装命令:

composer require icanboogie/bind-cldr

包简介

Binds CLDR to ICanBoogie

README 文档

README

Packagist Code Quality Coverage Status Downloads

Binds icanboogie/cldr to ICanBoogie, using its Autoconfig feature.

<?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.

Tests Static Analysis Code Style

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.

Contributing

Please see CONTRIBUTING for details.

License

icanboogie/bind-cldr is released under the BSD-3-Clause.

统计信息

  • 总下载量: 947
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-02