PHPackages                             artin/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. artin/instagram

ActiveLibrary[API Development](/categories/api)

artin/instagram
===============

Simple Instagram API package for Laravel 5.\*. Package is in development.

1.11(8y ago)015MITPHPPHP &gt;=5.5.0

Since Jul 5Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

Instagram API for Laravel 5.\*
==============================

[](#instagram-api-for-laravel-5)

[![Latest Version on Packagist](https://camo.githubusercontent.com/559d557944d6b18937310fcac002e7c9fa60744a0bf2052747f7b656d8ce6e72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6261727769636b38332f696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbarwick83/instagram)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/265de439f125fa2c4e0e0f414226c3136b1ec91adca411872f9d5b1be0c2b4b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6261727769636b38332f696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbarwick83/instagram)

Simple Instagram API package for Laravel 5.\*. Package is in development, but works - nothing crazy. Always looking for contributors.

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

[](#installation)

To install, run the following command in your project directory

```
$ composer require artin/instagram
```

Then in `config/app.php` add the following to the `providers` array:

```
Mbarwick83\Instagram\InstagramServiceProvider::class

```

Also, if you must (recommend you don't), add the Facade class to the `aliases` array in `config/app.php` as well:

```
'Instagram'    => Mbarwick83\Instagram\Facades\Instagram::class

```

**But it'd be best to just inject the class, like so (this should be familiar):**

```
use Mbarwick83\Instagram\Instagram;

```

Configuration
-------------

[](#configuration)

To publish the packages configuration file, run the following `vendor:publish` command:

```
php artisan vendor:publish

```

This will create a instagram.php in your config directory. Here you **must** enter your Instagram API Keys. Get your API keys at .

Example Usage
-------------

[](#example-usage)

```
// Get login url:
public function index(Instagram $instagram)
{
	return $instagram->getLoginUrl();
	// or Instagram::getLoginUrl();
}

// Get access token on callback, once user has authorized via above method
public function callback(Request $request, Instagram $instagram)
{
	$response = $instagram->getAccessToken($request->code);
	// or $response = Instagram::getAccessToken($request->code);

    if (isset($response['code']) == 400)
    {
        throw new \Exception($response['error_message'], 400);
    }

    return $response['access_token'];
}
```

Those are the only two custom classes for the API package. The rest of the API works with `POST`, `DELETE` and `GET` requests based on Instagram's end points to keep this package ***super simple***. You can view all the end points here .

All you need to do is specify if the request is a `POST`, `DELETE` or `GET` request, specify **just the end point** and any URL queries that are required (in an array). For example:

```
public function index(Instagram $instagram)
{
    $data = $instagram->get('v1/users/self', ['access_token' => $access_token]);
    // $data = $instagram->get('v1/users/' $user-id, ['access_token' => $access_token]);
    return $data;
}
```

**VERY SIMPLE AND EASY!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Mike Barwick](https://github.com/mbarwick83)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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

Every ~136 days

Total

4

Last Release

3191d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b8e90106e85834e51325a64171a3161eea5c1f02edff90292a73eedc5c5db86?d=identicon)[artin](/maintainers/artin)

---

Top Contributors

[![wutmikee](https://avatars.githubusercontent.com/u/330011?v=4)](https://github.com/wutmikee "wutmikee (12 commits)")[![artin](https://avatars.githubusercontent.com/u/1184028?v=4)](https://github.com/artin "artin (3 commits)")[![kikemarto](https://avatars.githubusercontent.com/u/14853156?v=4)](https://github.com/kikemarto "kikemarto (2 commits)")

---

Tags

apilaravelinstagram

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[mbarwick83/instagram

Simple Instagram API package for Laravel 5.\*. Package is in development.

1834.5k](/packages/mbarwick83-instagram)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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