PHPackages                             tioffs/instalite - 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. tioffs/instalite

AbandonedArchivedLibrary[API Development](/categories/api)

tioffs/instalite
================

An easy-to-use PHP Class for accessing Instagram's API.

1.0.0(6y ago)731.1k19MITPHPPHP &gt;=7.2

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tioffs/InstaLite)[ Packagist](https://packagist.org/packages/tioffs/instalite)[ Docs](https://github.com/tioffs/instalite)[ RSS](/packages/tioffs-instalite/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

INSTAGRAM API InstaLite [![License](https://camo.githubusercontent.com/c25b0bb58d5470485663fe771e68232721d895aaf0107edb2732943aa8dc6f01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74696f6666732f696e7374616c697465)](https://github.com/tioffs/instalite/blob/master/LICENSE)
===============================================================================================================================================================================================================================================================================================================

[](#instagram-api-instalite-)

> **easy-to-use class for working with instagram, minimal number of features**

[![Downloads](https://camo.githubusercontent.com/217c5baf7e8803911d94b7fda87dbc13c2ed919a363a0f6a1ef5239dc68de6a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74696f6666732f696e7374616c697465)](https://packagist.org/packages/tioffs/instalite)[![Telegram](https://camo.githubusercontent.com/a454e4b24d17a3659df1c2e7e93696ec267c1fae2f08d735a669af68c386c136/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d4a6f696e253230436861742d626c75652e7376673f7374796c653d666c6174)](https://t.me/joinchat/C9JmzQ-fc3SKXI0D-9h-uw)

- [Installation](#Installation)
- [Example](#Example)
- Method Api
    - [Search User](#Search-User)
    - [Upload Photo](#Upload-Photo)
    - [Send Message](#Send-Message)
- [Use Proxy](#Use-Proxy)

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

[](#installation)

**Using Composer:**

```
composer require tioffs/instalite

```

Example
-------

[](#example)

```
require_once __DIR__ . '/vendor/autoload.php';
use InstaLite\InstaLite;
$instagram = new InstaLite("username", "password", "proxy");
/** search user (return array standart instagram) **/
$user = $instagram->searchUser('alex')->id();
/** search user (return array user id [1,2,3]) **/
$user = $instagram->searchUser('alex')->all();
/** send photo **/
$instagram->uploadPhoto(__DIR__ . '/img.jpg', 'text #hashtag');
/** send message direct **/
$instagram->sendMessage('text message', [1233, 1233, 1223]);
```

Method
======

[](#method)

Search User
-----------

[](#search-user)

Search user instagram, nickname, username, last name, first name

```
$key = "search first name or username ...";
$user = $instagram->searchUser($key);

$user->id();
/** return array user id **/
[1, 2, 3, 4, 5, 6]

$user->all();
/** return array user standart formate instagram **/
[
    [
        pk: ""
        username: ""
        full_name: ""
        is_private: false
        profile_pic_url: ""
        profile_pic_id: ""
        is_verified: false
        has_anonymous_profile_picture: false
        mutual_followers_count: 0
        social_context: ""
        search_social_context: ""
        friendship_status: {}
        latest_reel_media: 1580484486
        seen: 0
    ],[],[]
]
```

Upload Photo
------------

[](#upload-photo)

Send photo, upload instagram

```
/** file photo mimetype JPEG **/
$photo = __DIR__ . '/image.jpg';
/** Message text and Hashtag **/
$message = 'Hello InstaGram';
$upload = $instagram->uploadPhoto($photo, $message);
/** Result **/
if($upload) {
    /** upload photo sussecc **/
    echo $upload;
    /** media id **/
}
```

Send Message
------------

[](#send-message)

Send message direct instagram

```
/** Array user id **/
$user = [12356456, 45645465];
/** Message text **/
$message = 'Hello InstaGram';
$send = $instagram->sendMessage($message, $user);
/** Result **/
if($send) {
    /** message send sussecc **/
}
```

Use Proxy
---------

[](#use-proxy)

supports socks5 and http/https

```
/** socks5 **/
$instagram = new InstaLite("username", "password", "socks5://login:password@ip:port");
/** http/https **/
$instagram = new InstaLite("username", "password", "http://login:password@ip:port");
```

---

Made with ♥ from the [@tioffs](https://timlab.ru/)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2297d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apiapi-clientinstagraminstagram-apijsonphpphp7proxysessionphpapiwebinstagraminstainstalite

### Embed Badge

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

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

###  Alternatives

[pgrimaud/instagram-user-feed

This is a scraper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.

940657.1k5](/packages/pgrimaud-instagram-user-feed)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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