PHPackages                             shahrukhkhan/instagram - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. shahrukhkhan/instagram

ActiveLibrary[API Development](/categories/api)

shahrukhkhan/instagram
======================

This package provides you easy way to communicate with instagram api

047PHP

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/khanof89/instagram)[ Packagist](https://packagist.org/packages/shahrukhkhan/instagram)[ RSS](/packages/shahrukhkhan-instagram/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Wrapper for Instagram
=============================

[](#laravel-wrapper-for-instagram)

This is a simple package to provide you all the instagram API accessible at one place. While writing this package I had php7.0 installed but can work with php5.6 as well just change the guzzle version.

---

Installation
------------

[](#installation)

```
composer require shahrukhkhan/instagram

```

or add the following in your composer.json file require section

```
"require": {
    "shahrukhkhan/instagram": "dev-master"
    }

```

Requirements
------------

[](#requirements)

- Instagram app
- Instagram Client Id
- Instagram Client secret
- Google maps API key from

Once you have obtained your instagram client id place it in your .env file as:

- INSTAGRAM\_CLIENT\_ID=
- INSTAGRAM\_REDIRECT\_URI=
- INSTAGRAM\_CLIENT\_SECRET=
- GOOGLE\_MAPS\_KEY=

once done that access the function by Instagram::functionName($params);

Functions
---------

[](#functions)

To auth with this package use auth() function from your route, you may mention multiple scopes as array

```
Route::get('instagram-auth', function(){
    return redirect()->away(\Shahrukh\Instagram\Instagram::auth($scopes));
});
```

List of functions available
---------------------------

[](#list-of-functions-available)

```
exchangeCodeForToken() // expects the code you received while authenticating, and gives you access token in return

getSelf() // gives information about logged in user

getSelfMedia() // gives media list of logged in user

getFollowedBy() // expects access token and user id(default is self), return the list of users who follows the user in question

getFollows() // expects access token and user id(default is self), return the list of users, user in question follows

getFollowRequest() // expects access token and user id (default is self), return the follow requests user in quesiton received

getRelationship() // expects access token and user id, get information about a relationship of logged in user with mentioned user id

changeRelationship() //expects access token and user id, modify the relationship between the current user and the target user.

getMedia() // expects access token and media id, get information about a media object.

searchMedia() //expects access token, area and distance (default distance is 1000 mtrs), searches for recent media in a given area.
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5cb5e5995fcd95bc66f1cb8a396fb3b76419ae6aef51aeabd672f73a6f9074e?d=identicon)[khanof89](/maintainers/khanof89)

---

Top Contributors

[![khanof89](https://avatars.githubusercontent.com/u/6241513?v=4)](https://github.com/khanof89 "khanof89 (16 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (5 commits)")

---

Tags

instagraminstagram-apiinstagram-php-sdklaravel-instagram

### Embed Badge

![Health badge](/badges/shahrukhkhan-instagram/health.svg)

```
[![Health](https://phpackages.com/badges/shahrukhkhan-instagram/health.svg)](https://phpackages.com/packages/shahrukhkhan-instagram)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
