PHP code example of retinens / laravel-instagram
1. Go to this page and download the library: Download retinens/laravel-instagram 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/ */
retinens / laravel-instagram example snippets
bash
php artisan migrate
php
php artisan laravel-instagram:refresh
php
LaravelInstagram::getPosts()
php
LaravelInstagram::getPosts(4)
php
// Full Size Image
$post->standardResolutionImageUrl
// Caption text
$post->captionText
// HTML formatted caption text (use {!! !!} to escape <br> tags)
$post->htmlCaptionText
// Link to the post
$post->link