punches/otus-hv-4.2

There is no license information available for the latest version (v1.0.1) of this package.

Declination by number

Maintainers

Package info

github.com/Punches/otus-hv-4.2

pkg:composer/punches/otus-hv-4.2

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2019-04-04 22:14 UTC

This package is not auto-updated.

Last update: 2026-05-15 07:34:47 UTC


README

Installation

$ git clone https://github.com/Punches/otus-hv-4.2.git

or

$ composer require punches/otus-hv-4.2

Usage

<?
    use Otus\Lessons\Lesson4\DeclinerNumbers;
    
    $example = new DeclinerNumbers;
    $cows = 33;
    
    echo sprintf('%d %s%s', $cows, $example->declinNumber($cows, "корова", "коровы", "коров"), PHP_EOL);