PHPackages                             dotenv/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dotenv/instagram

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

dotenv/instagram
================

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

v0.0.1(8y ago)1231MITPHPPHP &gt;=5.4.0

Since Jun 2Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Instagram
=========

[](#instagram)

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

[![Total Downloads](https://camo.githubusercontent.com/52e9c8c7824ff2e3ed2499f10111002fb8ffa1d3d15d7db399af6a22ca9f0bf4/68747470733a2f2f706f7365722e707567782e6f72672f446f74456e762f696e7374616772616d2f646f776e6c6f6164732e737667)](https://packagist.org/packages/dotenv/instagram)[![Latest Stable Version](https://camo.githubusercontent.com/aa8a14bfd6aa34c31c4d37210b0f3d9e573e4124916acbe5e3a7e0324c0a7782/68747470733a2f2f706f7365722e707567782e6f72672f446f74456e762f696e7374616772616d2f762f737461626c652e737667)](https://packagist.org/packages/dotenv/instagram)[![Build Status](https://camo.githubusercontent.com/471a4e44d600e99bbee2fa55240d5624ffe2b3eee70396f54261a35e4e9c96df/68747470733a2f2f7472617669732d63692e6f72672f446f74456e762f696e7374616772616d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DotEnv/instagram)

### Installing

[](#installing)

The package installation can be done with composer by the following command:

```
composer require dotenv/instagram
```

Usage
-----

[](#usage)

### 1 - Add the ServiceProvider in the app/config.php file.

[](#1---add-the-serviceprovider-in-the-appconfigphp-file)

```
Dotenv\Instagram\Providers\InstagramServiceProvider::class,
```

### 2 - Register an alias in the app/config.php file.

[](#2---register-an-alias-in-the-appconfigphp-file)

```
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
```

### 3 - Rgister a facade alias in app/config.php file.

[](#3---rgister-a-facade-alias-in-appconfigphp-file)

```
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
```

### 4 - Publish config file.

[](#4---publish-config-file)

```
php artisan vendor:publish --provider="dotenv\instagram"
```

### 5 - How to use it?

[](#5---how-to-use-it)

```
Route::get('auth/', function() {

	return \Instagram::authenticate();
});

Route::get('auth/callback', function() {

	$user = \Instagram::retrieveUser();

   	$userFromToken = \Instagram::userFromToken($user->token);
});
```

### 6 - Go to wiki to see the full documentation.

[](#6---go-to-wiki-to-see-the-full-documentation)

[Wiki](https://github.com/DotEnv/instagram/wiki)

License
-------

[](#license)

Instagram library is licensed under \[The MIT License (MIT)\] ().

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

3269d ago

### Community

Maintainers

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

---

Top Contributors

[![tperrelli](https://avatars.githubusercontent.com/u/1470890?v=4)](https://github.com/tperrelli "tperrelli (22 commits)")

---

Tags

phplaravelinstagramlibraryoauthdotenvsocialsocial mediatiago-perrelli

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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