PHP code example of vdlp / oc-rssfetcher-plugin

1. Go to this page and download the library: Download vdlp/oc-rssfetcher-plugin 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/ */

    

vdlp / oc-rssfetcher-plugin example snippets


Event::listen('vdlp.rssfetcher.item.processTitle', function (&$title) {
    $title = $title . 'A';
});

Event::listen('vdlp.rssfetcher.item.processContent', function (&$content) {
    $content = strip_tags($content);
});
`
5/* * * * php path/to/artisan vdlp:fetch-rss >> /dev/null 2>&1
`


use Artisan;
// ...

Artisan::call('vdlp:fetch-rss', ['source' => 2]);