New

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

taylornetwork/laravel-helpers

A collection of Laravel helpers
69
Install
composer require taylornetwork/laravel-helpers
Latest Version:1.4.0
PHP:>=7.0.0
Laravel:5
License:MIT
Last Updated:Oct 23, 2018
Links: GitHub  ·  Packagist
Maintainer: samueljtaylor

Laravel Helpers

A collection of useful helper functions for Laravel. Also will include user created helper functions.

Install

Via Composer

$ composer require taylornetwork/laravel-helpers

Setup

Laravel should automatically discover the package service provider. If that doesn't work for some reason, follow the Manual Setup.

Manual Setup

Only use these steps if Laravel does not auto discover the service provider.

Add the service provider to the providers array in your config/app.php

'providers' => [

	TaylorNetwork\LaravelHelpers\LaravelHelpersServiceProvider::class,

];

Publish Config

$ php artisan vendor:publish

This adds laravel_helpers.php to your config directory

Included Helpers

Click on any of the links to see the helper documentation

Usage

To create a helper function

$ php artisan make:helper HelperName

Will create an app/Helpers directory and add HelperName.php

// app/Helpers/HelperName.php

if(!function_exists('HelperName'))
{
	/**
	 * HelperName 
	 */ 
	function HelperName ()
	{
		// Code
	}
}

This will automatically be included and you can call HelperName() anywhere in your code.

Customization

By default TaylorNetwork\LaravelHelpers\LaravelHelpersServiceProvider will include all helpers included with this package and all helpers found in app\Helpers. You can change this in config/laravel_helpers.php

Credits

License

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
1.4.0 >=7.0.0 >=5.5 MIT
1.3.0 >=7.0.0 5.5.* MIT
1.2.0 >=7.0.0 5.5.* MIT
1.1.0 >=5.4.0 ^5.4 MIT
1.0.1 >=5.4.0 ^5.3 MIT