PHPackages                             ngtfkx/laradeck-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ngtfkx/laradeck-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ngtfkx/laradeck-helpers
=======================

A set of useful Laravel helper functions

1.0.0(8y ago)198MITPHPPHP ~7.0

Since Aug 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ngtfkx/laradeck-helpers)[ Packagist](https://packagist.org/packages/ngtfkx/laradeck-helpers)[ Docs](https://github.com/ngtfkx/laradeck-helpers)[ RSS](/packages/ngtfkx-laradeck-helpers/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

laradeck-helpers
================

[](#laradeck-helpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4efddb1b78201c66bc06dfc9cfa4cc38e1acdb78d0db1dd7aea73317d85a41e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6774666b782f6c6172616465636b2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ngtfkx/laradeck-helpers)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Coverage Status](https://camo.githubusercontent.com/0714b5277db9d64ec11c1f383e7cff1498acd747a64d76ae28185994bf429f8e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6774666b782f6c6172616465636b2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ngtfkx/laradeck-helpers/code-structure)[![Quality Score](https://camo.githubusercontent.com/dff909dcf0a8604660fbe062c093ae642fb013ca9accadfb20efc9138af93568/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6774666b782f6c6172616465636b2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ngtfkx/laradeck-helpers)[![Total Downloads](https://camo.githubusercontent.com/703680dc3ecbe12d5e908f289a4b904d0ce54a27972b8175f5e247ff3be6696f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6774666b782f6c6172616465636b2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ngtfkx/laradeck-helpers)

Набор полезных хелперов.

Install
-------

[](#install)

Via Composer

```
$ composer require ngtfkx/laradeck-helpers
```

Documentation
-------------

[](#documentation)

```
// Проверяем является ли запрос аяксовым
is_ajax(\Illuminate\Http\Request $request): bool
```

```
// Проверяем является ли переданная строка json-строкой
is_json(string $string): bool
```

```
// Проверка является ли число четным
is_even(int $value): bool
```

```
// Проверка является ли число нечетным
is_odd(int $value): bool
```

```
// Если условие истинное вернуть значение параметра $first, иначе параметра $second
return_if(bool $expression, string $first, string $second = ''): string
```

```
// Если условие ложное вернуть значение параметра $first, иначе параметра $second
return_unless(bool $expression, string $first, string $second = ''): string
```

```
// Проверяем является ли переданная строка не отрицательным целым числом
str_is_positive_int(string $string): bool
```

```
// Перечисление элементов через запятую
comma(...$items): string
```

```
// Установовить видимость блока через inline-стиль
css_visibility_by_display(bool $display, string $state = 'block'): string
```

```
// Установовить видимость блока через класс
css_visibility_by_class(bool $display, string $classForHide = 'hide', string $classForShow = ''): string
```

```
// Форматировать сумму в рублях
format_rub($val, $sign = '&#8381;'): string
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Denis Sandal](https://github.com/ngtfkx)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3227d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88ffb7c9f3e09555ebe86802abaee7c8594694b649e3409c5d475f247336ff82?d=identicon)[ngtfkx](/maintainers/ngtfkx)

---

Top Contributors

[![ngtfkx](https://avatars.githubusercontent.com/u/5647351?v=4)](https://github.com/ngtfkx "ngtfkx (5 commits)")

---

Tags

ngtfkxlaradeck-helpers

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ngtfkx-laradeck-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/ngtfkx-laradeck-helpers/health.svg)](https://phpackages.com/packages/ngtfkx-laradeck-helpers)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
