PHP code example of randsx / instagram-downloader

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

    

randsx / instagram-downloader example snippets


use RandsX\InstagramDownloader\InstagramDownloader;

$instagram = new InstagramDownloader;

$instagram = new InstagramDownloader("https://instagram.com/link");

$instagram = new InstagramDownloader;
$instagram->setURL("https://instagram.com/link");

$instagram->getType();
// Returned "image" or "video"

$instagram->getDownloadLink();