PHP code example of zhylon / open

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

    

zhylon / open example snippets


return [
    'html_comment' => [
        'enabled' => env('ZHYLON_OPEN_HTML_COMMENT', true),
        'message' => env('ZHYLON_OPEN_HTML_MESSAGE', '👋 Hello curious developer! ...'),
        'github'  => env('ZHYLON_OPEN_GITHUB', 'https://github.com/Zhylon'),
        'website' => env('ZHYLON_OPEN_WEBSITE', 'https://zhylon.net'),
    ],

    'console' => [
        'enabled' => env('ZHYLON_OPEN_CONSOLE', true),
        'message' => env('ZHYLON_OPEN_CONSOLE_MESSAGE', 'Hey, you found us! 🚀'),
        'style'   => env('ZHYLON_OPEN_CONSOLE_STYLE', 'color: #6366f1; font-size: 14px; font-weight: bold;'),
    ],

    'environments' => ['production'],
];
bash
php artisan vendor:publish --tag=zopen-config
bash
php artisan vendor:publish --tag=zopen-views