PHP code example of nillkizz / laravel-helpers

1. Go to this page and download the library: Download nillkizz/laravel-helpers library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nillkizz / laravel-helpers example snippets

 php
'providers' => [
    nillkizz\helpers\HelperServiceProvider::class,
];
 php
php artisan vendor:publish --provider="nillkizz\helpers\HelperServiceProvider"
 php
php artisan vendor:publish --provider="nillkizz\helpers\HelperServiceProvider" --tag="config"
 sh
php artisan make:helper MyHelper
 php
if (!function_exists('hello')) {

    /**
     * say hello
     *
     * @param string $name
     * @return string
     */
    function hello($name)
    {
        return 'Hello ' . $name . '!';
    }
}