PHP code example of beebmx / kirby-env

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

    

beebmx / kirby-env example snippets


$page->env('VAR');

\Beebmx\KirbyEnv::load('main/path');

\Beebmx\KirbyEnv::load();

\Beebmx\KirbyEnv::overload();



\Beebmx\KirbyEnv::load('main/path');

return [
    'debug' => env('KIRBY_DEBUG', false),
    'SECRET' => env('SECRET_KEY'),
    'PUBLIC' => env('PUBLIC_KEY'),
];

ssh
KIRBY_DEBUG=false

SECRET_KEY=my_secret_key
PUBLIC_KEY=my_public_key

FOO=BAR
BAZ=${FOO}