PHPackages                             diminho/diminho - 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. diminho/diminho

ActiveLibrary[API Development](/categories/api)

diminho/diminho
===============

Instagram SDK

09PHP

Since Mar 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Diminho/diminho)[ Packagist](https://packagist.org/packages/diminho/diminho)[ RSS](/packages/diminho-diminho/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#instagram-php-sdk)

Test task for application on a job

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

[](#installation)

You can download SDK via `composer`

```
$ composer require diminho/diminho=dev-master

```

### Config

[](#config)

There are several templates of a config file (config\_default) in config folder. Rename it to config.\[ext\]. Only one config file should be active at a time. Config may be of PHP or JSON fomat. Access token can be set via config file or programmatically via SDK\\Auth class.

### Usage

[](#usage)

Autoloading. Import in your script

```
require __DIR__ . './vendor/autoload.php';

```

Initialization

```
$sdk = new SDK\InstaSDK();

```

Get a user by ID

```
$response = $sdk->getUserById(1190990766);

```

`$response` it is an object of a Response class

### API List

[](#api-list)

USER section:

- getUserById($userID); -- GET
- getMediaByShortcode($shortcode); --GET
- getSearchUserByUsername($$username, \[ $params\] ); --GET

MEDIA Section

- getMediaById($mediaId) -- GET
- getUserById($userID); -- GET
- getMediaByArea($params); -- GET (Here $params must be "lat" and "lng")

LIKES Section

- postSetLikeMedia($mediaId) -- POST
- getLikesByMedia($mediaId); -- GET
- delUnsetLikesByMedia($mediaId); -- DELETE

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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://avatars.githubusercontent.com/u/3332216?v=4)[Dima Ukolov](/maintainers/diminho)[@Diminho](https://github.com/Diminho)

---

Top Contributors

[![Diminho](https://avatars.githubusercontent.com/u/3332216?v=4)](https://github.com/Diminho "Diminho (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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