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

ActiveLibrary[API Development](/categories/api)

mayoz/instagram
===============

Instagram SDK bridge for Laravel 5

1.0.0(10y ago)25981MITPHPPHP &gt;=5.5.9

Since Sep 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mayoz/instagram)[ Packagist](https://packagist.org/packages/mayoz/instagram)[ RSS](/packages/mayoz-instagram/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Instagram
=================

[](#laravel-instagram)

Introduction
------------

[](#introduction)

To get started with Instagram, add to your `composer.json` file as a dependency:

```
    composer require mayoz/instagram
```

### Configuration

[](#configuration)

After installing the Instagram library, register the `Mayoz\Instagram\InstagramServiceProvider` in your `config/app.php` configuration file:

```
    'providers' => [
        // Other service providers...

        Mayoz\Instagram\InstagramServiceProvider::class,
    ],
```

Also, add the `Instagram` facade to the `aliases` array in your `app` configuration file:

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

You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your `config/services.php` configuration file with `instagram` key. For example:

```
    'instagram' => [
        'client_id'     => env('INSTAGRAM_KEY'),
        'client_secret' => env('INSTAGRAM_SECRET'),
        'redirect'      => env('INSTAGRAM_REDIRECT_URI'),
    ],
```

### Basic Usage

[](#basic-usage)

Next, you are ready to use. Please see the following examples.

```
