PHP code example of antey / instagram-image

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

    

antey / instagram-image example snippets


use Antey\InstagramImage\InstagramImageResize;

$imageResize = new InstagramImageResize();

$imageResize->getProfile(string $filename, string $path = ''): string;

$imageResize->getStories(string $filename, string $path = ''): array;

$imageResize->getReels(string $filename, string $path = ''): array;

$imageResize->getIgtvCover(string $filename, string $path = ''): string;

$imageResize->getSinglePostSquare(string $filename, string $path = ''): string;

$imageResize->getSinglePostLandscape(string $filename, string $path = ''): string;

$imageResize->getSinglePostPortrait(string $filename, string $path = ''): string;

$imageResize->getSinglePostOptimal(string $filename, string $path = ''): string;

$imageResize->getGallerySquare(string $filename, string $path = ''): array;

$imageResize->getGalleryLandscape(string $filename, string $path = ''): array;

$imageResize->getGalleryPortrait(string $filename, string $path = ''): array;

$imageResize->getGalleryOptimal(string $filename, string $path = ''): array;

$imageResize->getOptimalPost(string $filename, string $path = ''): array;