ahmetbedir/instafeed

A package that you can quickly take and use your instagram images. Just give username!

dev-master 2021-03-24 21:32 UTC

This package is auto-updated.

Last update: 2024-04-25 04:46:51 UTC


README

A package that you can quickly take and use your instagram images. Just give username!

PHP Composer

Basic Usage

$username = 'ahmetbedir';

$instafeed = new Ahmetbedir\InstaFeed($username);

User Info Available Methods

$userInfo  = $instafeed->getUserInfo();


// Get Username
$userInfo->username();

// Get Full Name
$userInfo->fullName();

// Get Biography
$userInfo->bio();

// Get Followes Count (int)
$userInfo->followersCount();

// Get Follow Count (int)
$userInfo->followCount();

// Get Account Category
$userInfo->category();

// Get Account Private Status  (boolean)
$userInfo->isPrivate();

// Get Account Verified Status (boolean)
$userInfo->isVerified();

// Get Account Business Status (boolean)
$userInfo->isBusinessAccount();

// Get Account Joined Recently Status (boolean)
$userInfo->isJoinedRecently();

// Get Account Connected Facebook Page Status (boolean)
$userInfo->isConnectedFbPage();

User Feed Available Methods

// Get All Feeds By Feed Object
$allFeeds = $instafeed->getFeedList();

// Get First Feed
$firstFeed = $instafeed->getFirstFeed();

// Get Feed Url
$firstFeed->getDisplayUrl();

// Get Thumnail Feed Url
$firstFeed->getThumbnail();

// Get Feed Dimensions by Array e.g ["width" => 1333, "height" => 750]
$firstFeed->getDimensions();

// Get Feed Like Count
$firstFeed->getLikeCount();

// Get Feed Comment Count
$firstFeed->getCommentCount();

// Get Feed Location Name
$firstFeed->getLocationName();

// Get Feed Caption
$firstFeed->getCaption();

// Get Feed Video Status (Boolean)
$firstFeed->isVideo();