PHP code example of mrfabri / instafeed

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

    

mrfabri / instafeed example snippets


use MrFabri\Instafeed\Facades\Instafeed;

$posts = Instafeed::all();

foreach ($posts as $post) {
    echo $post->caption;
    echo $post->mediaUrl;
}

$post = Instafeed::find('post_id');

$posts = Instafeed::limit(10);

$posts = Instafeed::since('2026-01-01');

$posts = Instafeed::media();
bash
php artisan vendor:publish --tag=instafeed-config
bash
php artisan instafeed:check-token
bash
php artisan instafeed:check-token --quiet