PHP code example of oblik / kirby-variables

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

    

oblik / kirby-variables example snippets


'translations' => Yaml::decode(F::read(kirby()->root('languages') . '/vars/en.yml'))

'oblik.variables.folder' => function ($kirby) {
    return $kirby->root('content') . '/_variables';
}