ne0h12/decliner

Decliner of words

Maintainers

Package info

github.com/ne0h12/decliner

pkg:composer/ne0h12/decliner

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-15 01:53:52 UTC


README

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

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

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

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