Download the PHP package sirmathays/convenient-laravel-helpers without Composer
On this page you can find all versions of the php package sirmathays/convenient-laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sirmathays/convenient-laravel-helpers
More information about sirmathays/convenient-laravel-helpers
Files in sirmathays/convenient-laravel-helpers
Download sirmathays/convenient-laravel-helpers
More information about sirmathays/convenient-laravel-helpers
Files in sirmathays/convenient-laravel-helpers
Vendor sirmathays
Package convenient-laravel-helpers
Short Description Adds some very convenient helpers to your Laravel project
License MIT
Package convenient-laravel-helpers
Short Description Adds some very convenient helpers to your Laravel project
License MIT
Please rate this library. Is it a good library?
Informations about the package convenient-laravel-helpers
Convenient Laravel Helpers
This package provides some additional, convenient helpers for you to use with your Laravel project.
Installation
Install the package with Composer:
composer require sirmathays/convenient-laravel-helpers
Features
Helpers
class_uses_trait($class, $trait, bool $recursive = true): bool
- Return boolean value whether the given class uses given trait.
array_depth(array $array)
- Return integer describing the max depth of the given array.
class_implements_interface($class, $interface): bool
- Return boolean value whether the given class implements given interface.
class_extends($class, $parent): bool
- Return boolean value whether the given class extends given parent class.
set_type($value, $type)
- Alias for 'settype' which allows non-variables as arguments.
trim_spaces(string $string): string
- Trim spaces from string.
not_null($var): bool
- !is_null
get_bool($value): bool
- Get boolean value from given value. Accepts string true/false.
class_namespace(string $className): string
- Get namespace of given class.
___(array $keys, array $replace = [], array $numbers = [], string $locale = null, string $glue = ' '): string
- Translate given messages and glue them together.
Discovery class
This is pretty much copied from Illuminate\Foundation\Events\DiscoverEvents
from, just made more
generic.
Examples
License
Convenient Laravel Helpers is open-sourced software licensed under the MIT license.
All versions of convenient-laravel-helpers with dependencies
PHP Build Version
Package Version
The package sirmathays/convenient-laravel-helpers contains the following files
Loading the files please wait ....