New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

wapmorgan/morphos-blade

Adds @plural, @name, @numeral, @ordinal and @money tags to Blade for Russian pluralization and declenation.
91,988 33

Larablocks Analysis

wapmorgan/morphos-blade works with any PHP project: the latest release (1.6.1, Oct 30, 2018) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Oct 30, 2018)
  • 1,287 downloads a month (needs 10,000)
  • 33 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Oct 30, 2018.
  • No releases in the last 12 months.
  • First released: Feb 2, 2017.
  • Monthly downloads: 1,287, up 63% from six months ago.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require wapmorgan/morphos-blade
Latest Version:1.6.1
License:MIT
Last Updated:Oct 30, 2018
Links: GitHub  ·  Packagist
Maintainer: wapmorgan

MorphosBlade

На русском языке - README-ru.

Composer package Latest Stable Version License

Adds a @plural, @name, @numeral, @ordinal and @money tags to Laravel's Blade templating engine for Russian pluralization and declenation.

<div>
@plural(252, 'новость') от @name('Иванов Иван Иванович', 'родительный')
@numeral(565, 'сообщение', 'n') и @money(123.50, '₽') за Ваше отсутствие.
Это Ваше @ordinal(351, 'n') посещение нашего сайта за сегодня!
</div>

Will be compiled in

<div>
252 новости от Иванова Ивана Ивановича
пятьсот шестьдесят пять сообщений и 123 рубля 50 копеек за Ваше отсутствие
Это Ваше триста пятьдесят первое посещение нашего сайта за сегодня!
</div>

Most popular directives:

  • @plural(count, noun) - Get plural form of word. Just pass count of objects and noun.

    @plural(244, 'элемент')
    
  • @money(value, currency) - Get money formatted as text string. Just pass value and currency (₽ or $ or € or ₴ or £).

    @money(1000.10, '$')
    
  • @numeral(number) - Get numeral of a number. Just pass number.

    @numeral(344)
    
  • @ordinal(number) - Get ordinal of a number. Just pass number.

    @ordinal(500)
    
  • @name(name, case) - Get any case of fullname with gender detection. Just pass name and case (именительный, родительный, дательный, винительный, творительный, предложный)

    @name('Коленко Сергей Аркадьевич', 'dativus')
    

Additional directives:

  • @name(name, gender, case) - Get any case of fullname. Just pass name, gender (f or m or null) and case (именительный, родительный, дательный, винительный, творительный, предложный). Use this directive if middle name is unknown and gender detection can make wrong decision.

    @name('Филимонов Игорь', 'm', 'dativus')
    
  • @numeral(number, gender) - Get numeral of a number. Just pass number and gender (m or f or n) to use correct form of gender-dependent words (один/одно/одна, два/две).

    @numeral(121, 'n')
    
  • @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(3, 'поле')
    
  • @numeral(number, noun, gender) - Get numeral and a pluralized noun. Just pass number, noun and gender (m or f or n) to use correct form of gender-dependent words (один/одно/одна, два/две).

    @numeral(101, 'сообщение', 'n')
    
  • @ordinal(number, gender) - Get ordinal of a number. Just pass number and gender (m or f or n) to use correct form of gender-dependent words (первый/первое/первая, второй/второе/вторая, etc).

    @ordinal(351, 'n')
    

Installation

Get the Package

composer require wapmorgan/morphos-blade

Register the Service Provider

Open up your app.php in your config folder, and add the following line to your providers list like:

'providers' => array(
    ...
    morphos\MorphosBladeProvider::class
)

Related Packages

philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

692,533 355
alexdover/blade-set

A very simple blade extension which allows variables to be set.

58,034 23
railroad/bladesora

A blade template package for musora.

57,117 1
styde/blade-pagination

Laravel's pagination with Blade templating support

14,783 70
tmaic/blade

Use Laravel Blade templates without the full Laravel framework

21 1

Version History

Version Released License
1.6.1 MIT
1.6.0 MIT
1.5.0 MIT
1.4.1 MIT
1.4.0 MIT