bkubicki/polish-noun-numeral-declension
Composer 安装命令:
composer require bkubicki/polish-noun-numeral-declension
包简介
Polish noun numeral declension
README 文档
README
Overview
This mini-library provides declesion of noun according to numeral used before, specifically for polish language. Rules are following. This library is port of this awesome mini-library for php language.
3 forms of nouns are now supported:
- singular nominative
- plural nominative
- plural accusative
decle(1, "komentarz", "komentarze", "komentarzy"); // komentarz
decle(0, "komentarz", "komentarze", "komentarzy"); // komentarzy
decle(3, "komentarz", "komentarze", "komentarzy"); // komentarze
As its only mini-library, it doesn't support any exceptions from the rules.
Prerequisites
- PHP 7.2/7.3
Installation
To install the extension use the following commands:
composer require bkubicki/polish-noun-numeral-declination
Tests
Unit
- Run command
./vendor/bin/phpunit -c phpunit.xml --testsuite "Unit" --coverage-html coverage/coverage-html --colors=always
- You can also use some alias:
test-unit-coverage-vendor/bin/phpunit -c phpunit.xml --testsuite "Unit" --coverage-html coverage/coverage-html --colors=always
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Changelog
See changelog here.
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 914
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-10