ne0h12/decliner

Decliner of words

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/ne0h12/decliner

dev-master 2015-07-24 06:45 UTC

This package is not auto-updated.

Last update: 2025-09-27 22:48:58 UTC


README

#Склонение слов по числительному

$apples = ['Akane', 'Anna', 'Apollo', 'Brina'];

$decline = Decliner\Decliner::on(count($apples), new \Decliner\Declinable\Word('яблоко', 'яблока', 'яблок'));

echo sprintf('В корзине %s', $decline); // В корзине 4 яблока