PHP code example of browner12 / helpers

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

    

browner12 / helpers example snippets

 php
'providers' => [
    browner12\helpers\HelperServiceProvider::class,
];
 php
php artisan vendor:publish --provider="browner12\helpers\HelperServiceProvider"
 php
php artisan vendor:publish --provider="browner12\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 . '!';
    }
}