2017 © Pedro Peláez
 

library laradeck-helpers

A set of useful Laravel helper functions

image

ngtfkx/laradeck-helpers

A set of useful Laravel helper functions

  • Monday, August 28, 2017
  • by ngtfkx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 39 % Grown

The README.md

laradeck-helpers

Latest Version on Packagist ![Software License][ico-license] ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Набор полезных хелперов., (*2)

Install

Via Composer, (*3)

``` bash $ composer require ngtfkx/laradeck-helpers, (*4)


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

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


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

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


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

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


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

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


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

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


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

Change log

Please see CHANGELOG for more information on what has changed recently., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

28/08 2017

dev-master

9999999-dev https://github.com/ngtfkx/laradeck-helpers

A set of useful Laravel helper functions

  Sources   Download

MIT

The Requires

 

The Development Requires

ngtfkx laradeck-helpers

28/08 2017

1.0.0

1.0.0.0 https://github.com/ngtfkx/laradeck-helpers

A set of useful Laravel helper functions

  Sources   Download

MIT

The Requires

 

The Development Requires

ngtfkx laradeck-helpers