1. Go to this page and download the library: Download inboxly/receiver 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/ */
inboxly / receiver example snippets
use Inboxly\Receiver\Managers\ExplorerManager;
class ExploreController
{
public function explore(ExplorerManager $manager, string $site){
$result = $manager->explore($site, 'rss');
/** @var \Inboxly\Receiver\Sources\Rss\RssParameters $parameters */
foreach ($result as $parameters) {
dump("Found feed: $parameters->url");
}
}
}
use Inboxly\Receiver\Contracts\Parameters;
use Inboxly\Receiver\Managers\FetcherManager;
class FetchController
{
public function fetch(FetcherManager $manager, Parameters $parameters){
$feeds = $manager->fetch($parameters);
/** @var \Inboxly\Receiver\Feed $feed */
foreach ($feeds as $feed) {
dump("Fetched feed: $feed->name");
/** @var \Inboxly\Receiver\Entry $entry */
foreach ($feed->entries as $entry) {
dump("Entry in feed: $entry->name");
}
}
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.