unionofrad/li3_cldr
Composer 安装命令:
composer require unionofrad/li3_cldr
包简介
A Lithium plugin adding support for querying Unicode's CLDR.
README 文档
README
From the CLDR project site:
The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages [...]
The core g11n implementation in Lithium already utilizes the CLDR indirectly through the intl php extension, which makes use of ICU, which in turn is based upon the data provided by the CLDR. So at first sight there seems to be no need to access the CLDR directly. As more and more features are added to the intl extension it does not provide a way to access certain data yet. With the CLDR Catalog adapter contained in this plugin you can query the CLDR for this data. Currently there's support for:
- Postal code validation rules for most countries (
validation.postalCode). - List and translation of currencies (
currency). - List and translation of languages (
language). - List and translation of territories (
territory). - List and translation of scripts (
script).
Installation
Clone the project into your libraries directory.
git clone git@github.com:UnionOfRAD/li3_cldr.git /path/to/project/libraries/li3_cldr
Make your Lithium app aware of the plugin by adding the following line to your bootstrap/libraries.php file.
Libraries::add('li3_cldr');
Resource Dependencies
Currently the plugin does not contain the actual CLDR data. We must take the following steps to install it. Download the ZIP file of the latest release, unpack it into a temporary directory and move the common directory into place.
curl http://unicode.org/Public/cldr/1.8.0/core.zip -o core.zip
unzip core.zip -d /tmp
mv /tmp/common /path/to/project/libraries/li3_cldr/resources/g11n
# ... or ...
mv /tmp/common /path/to/project/app/resource/g11n/cldr
unionofrad/li3_cldr 适用场景与选型建议
unionofrad/li3_cldr 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.44k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2014 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「lithium」 「li3」 「g11n」 「unicode」 「cldr」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 unionofrad/li3_cldr 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 unionofrad/li3_cldr 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 unionofrad/li3_cldr 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Usenet Indexer
A Lithium plugin with additional g11n resources constituting the Lithium Locale Data Repository.
Model behaviors for the li₃ PHP framework
A multi-framework Composer library installer
The core library of the Lithium PHP framework
Alfabank REST API integration
统计信息
- 总下载量: 2.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 7
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-08