petehouston/nhieu-php
Composer 安装命令:
composer require petehouston/nhieu-php
包简介
The pluralization for Vietnamese words
README 文档
README
A very simple helper library for pluralizing Vietnamese.
Installation
Via Composer:
$ composer require petehouston/nhieu-php
Usage
Make sure to include the autoload.php:
require 'vendor/autoload.php';
Just call a simple function nhieu($word, $count = 11):
nhieu("xe", 0); // không xe nhieu("ô tô", 2); // hai ô tô nhieu("cái bánh", 8); // tám cái bánh nhieu("người"); // nhiều người nhieu("lập trình viên", -100); // không lập trình viên
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-07