PHP code example of omz13 / kirby3-feeds

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

    

omz13 / kirby3-feeds example snippets




return function ($site) {
    return $site->find('blog')->children()->listed()->flip();
};



return function ($site) {
	    return $site->find('blog')->children()->listed()->isunderembargo(false)->issunset(false)->flip();
};



return [
  'omz13.feeds.cacheTTL' => 60,
  'omz13.feeds.firehose' => 'articles',
  ],
];



return [
  'omz13.feeds' => [
    'cacheTTL' => 60,
    'firehose' => 'articles',
  ],
];
 snippet('feeds-header')