Download the PHP package wapmorgan/morphos-blade without Composer
On this page you can find all versions of the php package wapmorgan/morphos-blade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wapmorgan/morphos-blade
More information about wapmorgan/morphos-blade
Files in wapmorgan/morphos-blade
Package morphos-blade
Short Description Adds @plural, @name, @numeral, @ordinal and @money tags to Blade for Russian pluralization and declenation.
License MIT
Informations about the package morphos-blade
MorphosBlade
На русском языке - README-ru.
Adds a @plural, @name, @numeral, @ordinal and @money tags to Laravel's Blade templating engine for Russian pluralization and declenation.
Will be compiled in
Most popular directives:
-
@plural(count, noun) - Get plural form of word. Just pass count of objects and noun.
-
@money(value, currency) - Get money formatted as text string. Just pass value and currency (₽ or $ or € or ₴ or £).
-
@numeral(number) - Get numeral of a number. Just pass number.
-
@ordinal(number) - Get ordinal of a number. Just pass number.
- @name(name, case) - Get any case of fullname with gender detection. Just pass name and case (именительный, родительный, дательный, винительный, творительный, предложный)
Additional directives:
-
@name(name, gender, case) - Get any case of fullname. Just pass name, gender (
f
orm
or null) and case (именительный, родительный, дательный, винительный, творительный, предложный). Use this directive if middle name is unknown and gender detection can make wrong decision. -
@numeral(number, gender) - Get numeral of a number. Just pass number and gender (
m
orf
orn
) to use correct form of gender-dependent words (один/одно/одна, два/две). -
@numeral(number, noun) - Get numeral and a pluralized noun. Just pass number and noun. It's just a shortcut to
@numeral(3) @plural(3, 'поле')
-
@numeral(number, noun, gender) - Get numeral and a pluralized noun. Just pass number, noun and gender (
m
orf
orn
) to use correct form of gender-dependent words (один/одно/одна, два/две). - @ordinal(number, gender) - Get ordinal of a number. Just pass number and gender (
m
orf
orn
) to use correct form of gender-dependent words (первый/первое/первая, второй/второе/вторая, etc).
Installation
Get the Package
Register the Service Provider
Open up your app.php
in your config
folder, and add the following line to
your providers
list like: