PHP code example of oblik / kirby-memsource
1. Go to this page and download the library: Download oblik/kirby-memsource 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-memsource example snippets
return [
'oblik.memsource' => [
// settings…
]
];
return [
'oblik.memsource' => [
'login' => [
'username' => 'john',
'password' => '1234'
]
]
];
return [
'oblik.memsource' => [
'walker' => [
'removeBrTags' => true
]
]
];
return [
'oblik.memsource' => [
'walker' => [
'contextNote' => function ($value) {
if (strpos($value, '{{ year }}') !== false) {
return "{{ year }} is the current calendar year.";
}
}
]
]
];