PHP code example of neverbehave / lumen-helpers

1. Go to this page and download the library: Download neverbehave/lumen-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/ */

    

neverbehave / lumen-helpers example snippets

 php
$app->register(neverbehave\helpers\HelperServiceProvider::class);
 php
php artisan vendor:publish --provider="neverbehave\helpers\HelperServiceProvider"
 php
php artisan vendor:publish --provider="neverbehave\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 . '!';
    }
}