1. Go to this page and download the library: Download chipslays/rss-feedly 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/ */
chipslays / rss-feedly example snippets
use Feedly\Feedly;
y)->get('https://www.rt.com/rss/news/');
foreach ($feed->posts as $post) {
echo $post['title'] . PHP_EOL;
}
use Feedly\Feedly;
->get('https://www.rt.com/rss/news/')
->except(['Trump'], ['title'])
->except(['Politics'], ['category'])
->priority([
[100, ['Google', 'Tesla', 'Durov'], ['title', 'description']],
[Feedly::DEFAULT_PRIORITY + 1, ['Apple'], ['description']],
]);
// get posts in the last 6 hours
$posts = $posts->where('date', '>', strtotime('-6 hours'));
// can use foreach or `each` method
$posts->each(function ($post) {
echo $post['title'] . PHP_EOL;
});
foreach ($posts as $post) {
// ...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.