sebk/plural
最新稳定版本:1.1.1
Composer 安装命令:
composer require sebk/plural
包简介
README 文档
README
Overview
Plural is a library that provides natural language pluralization functions for PHP. The library currently supports the following languages:
- English
However, Plural can easily be extended to support any language. If your language is not supported, you are encouraged to contribute a rules file to the project.
Usage
plural('dog'); # dogs
plural('matrix'); # matrices
plural('mouse'); # mice
plural('person'); # people
plural('sheep'); # sheep
Tests
Plural uses the PHPUnit unit testing framework to test the code. In order to run the tests, do the following from the project root directory:
$ phpunit tests/Plural.php
Requirements
Plural requires PHP version 5 or greater.
License
Plural is released under the terms of the MIT license. Please read the LICENSE file for further information.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-08