Download the PHP package swuppio/ru-ending without Composer
On this page you can find all versions of the php package swuppio/ru-ending. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download swuppio/ru-ending
More information about swuppio/ru-ending
Files in swuppio/ru-ending
Download swuppio/ru-ending
More information about swuppio/ru-ending
Files in swuppio/ru-ending
Please rate this library. Is it a good library?
Informations about the package ru-ending
Ru Ending
This package was made for me, but if you find it useful, I'll be happy if you use it
It helps to write beautiful endings without any а(ов)
, ь(ей)
etc
Installation
Via Composer
composer require swuppio/ru-ending
Get Started
Params description
- int
$number
- The quantity of items to determine the appropriate word form for - array
$words
- An array of word forms to choose from based on $number. The array should include three elements for singular, dual, and plural forms, respectively
The method returns a string representing the correct word form from $words
based on the $number
provided
Static way
Object way
Note: formatByNumber()
is the alias for get()
All versions of ru-ending with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1.0
The package swuppio/ru-ending contains the following files
Loading the files please wait ....