PHP code example of unicodeveloper / laravel-feeder

1. Go to this page and download the library: Download unicodeveloper/laravel-feeder 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/ */

    

unicodeveloper / laravel-feeder example snippets


'aliases' => [
    ...
    'Feeder' => Unicodeveloper\LaravelFeeder\Facades\LaravelFeederFacade::class,
    ...
]

  $rss = Feeder::loadRss($url);

  echo 'Title: ', $rss->title;
  echo 'Description: ', $rss->description;
  echo 'Link: ', $rss->link;

  foreach ($rss->item as $item) {
    echo 'Title: ', $item->title;
    echo 'Link: ', $item->link;
    echo 'Timestamp: ', $item->timestamp;
    echo 'Description ', $item->description;
    echo 'HTML encoded content: ', $item->{'content:encoded'};
  }

  $atom = Feeder::loadAtom($url);
bash
$ php artisan vendor:publish --provider="Unicodeveloper\LaravelFeeder\LaravelFeederServiceProvider"