2017 © Pedro Peláez
 

library nhieu-php

The pluralization for Vietnamese words

image

petehouston/nhieu-php

The pluralization for Vietnamese words

  • Tuesday, June 7, 2016
  • by petehouston
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

nhieu-php

Latest Version on Packagist Build Status ![Software License][ico-license], (*1)

A very simple helper library for pluralizing Vietnamese., (*2)

Installation

Via Composer:, (*3)

$ composer require petehouston/nhieu-php

Usage

Make sure to include the autoload.php:, (*4)

require 'vendor/autoload.php';

Just call a simple function nhieu($word, $count = 11):, (*5)

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., (*6)

The Versions

07/06 2016

dev-master

9999999-dev https://github.com/petehouston/nhieu-php

The pluralization for Vietnamese words

  Sources   Download

MIT

The Development Requires

language php string vietnamese pluralize pluralization

07/06 2016

1.0.0

1.0.0.0 https://github.com/petehouston/nhieu-php

The pluralization for Vietnamese words

  Sources   Download

MIT

The Development Requires

language php string vietnamese pluralize pluralization