PHPackages                             mkharla/isdk - 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. mkharla/isdk

ActiveLibrary[API Development](/categories/api)

mkharla/isdk
============

Instagram SDK

07PHP

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/masJIan/isdk)[ Packagist](https://packagist.org/packages/mkharla/isdk)[ RSS](/packages/mkharla-isdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Instagram SDK
=================

[](#php-instagram-sdk)

### Installing

[](#installing)

Add to your composer.json file

```
"require"     : {
    "mkharla/isdk" : "dev-master"
  }

```

### Config file

[](#config-file)

Configure your config file with valid data

```
/*
    |--------------------------------------------------------------------------
    | Instagram API configurations
    |--------------------------------------------------------------------------
    |
    | General configurations
    */

    'api_url'           =>  'https://api.instagram.com/v1',
    'auth_url'          =>  'https://api.instagram.com/oauth/authorize',
    'access_token_url'  =>  'https://api.instagram.com/oauth/access_token',
    'redirect_url'      =>  'yuor-redirect-url',

    /*
    |--------------------------------------------------------------------------
    | Instagram API Client information
    |--------------------------------------------------------------------------
    |
    | This array will be passed to the Instagram SDK client.
    */

    'client'  => [
        'id'            =>  'your-client-id',
        'secret'        =>  'your-secret-key',
    ],

    /*
    |--------------------------------------------------------------------------
    | Login Permissions (Scopes)
    |--------------------------------------------------------------------------
    |
    | The OAuth 2.0 specification allows you to specify the scope of the access you are requesting from the user
    |
    |   + basic             - to read a user’s profile info and media
    |   + public_content    - to read any public profile info and media on a user’s behalf
    |   + follower_list     - to read the list of followers and followed-by users
    |   + comments          - to post and delete comments on a user’s behalf
    |   + relationships     - to follow and unfollow accounts on a user’s behalf
    |   + likes             - to like and unlike media on a user’s behalf

    */

    'permissions'   =>  [
        'basic',
        'public_content'
    ],

    /*
    |--------------------------------------------------------------------------
    | HTTP client
    |--------------------------------------------------------------------------
    |
    | SDK should be implemented using poor PHP (5.6 / 7 , without any frameworks)
    | I was not sure about using guzzlehttp/guzzle, so I made 2 options you can choose here:
    |
    |   vendor - guzzlehttp/guzzle
    |   custom - self made
    */

    'http_client'   =>  'vendor',

    /*
    |--------------------------------------------------------------------------
    | TASK
    |--------------------------------------------------------------------------
    |
    | Notes:
    | You don’t need a front end and you can be sure that third party tool
    | (which will use your SDK) already has an “access_token”.
    */

    'access_token' => 'your-access-token-here'

```

Examples
--------

[](#examples)

You can find few examples of SDK in examples folder

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/a8f1d7e82651e53d1b2632b637bac7f24b8b145e49990f8fa2a421f28742394b?d=identicon)[masJIan](/maintainers/masJIan)

---

Top Contributors

[![masJIan](https://avatars.githubusercontent.com/u/19682785?v=4)](https://github.com/masJIan "masJIan (1 commits)")

### Embed Badge

![Health badge](/badges/mkharla-isdk/health.svg)

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

###  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.9M272](/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)
