PHPackages                             codebar-ag/laravel-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. codebar-ag/laravel-instagram

ActiveLibrary

codebar-ag/laravel-instagram
============================

This is my package laravel-instagram

v12.10.0(1mo ago)0339[1 PRs](https://github.com/codebar-ag/laravel-instagram/pulls)MITPHPPHP 8.2.\*|8.3.\*|8.4.\*CI passing

Since Jan 23Pushed 1mo agoCompare

[ Source](https://github.com/codebar-ag/laravel-instagram)[ Packagist](https://packagist.org/packages/codebar-ag/laravel-instagram)[ Docs](https://github.com/codebar-ag/laravel-instagram)[ RSS](/packages/codebar-ag-laravel-instagram/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (30)Versions (27)Used By (0)

[![](https://camo.githubusercontent.com/0b1569ffbbb35b37ff59d39e67987f5cca1e91996ffb627a957c31c7e387fca5/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230496e7374616772616d2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636f64656261722d61672532466c61726176656c2d696e7374616772616d267061747465726e3d63697263756974426f617264267374796c653d7374796c655f31266465736372697074696f6e3d416e2b6f70696e696f6e617465642b7761792b746f2b696e746567726174652b496e7374616772616d2b776974682b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d70686f746f6772617068)](https://camo.githubusercontent.com/0b1569ffbbb35b37ff59d39e67987f5cca1e91996ffb627a957c31c7e387fca5/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230496e7374616772616d2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636f64656261722d61672532466c61726176656c2d696e7374616772616d267061747465726e3d63697263756974426f617264267374796c653d7374796c655f31266465736372697074696f6e3d416e2b6f70696e696f6e617465642b7761792b746f2b696e746567726174652b496e7374616772616d2b776974682b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d70686f746f6772617068)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8331776658a4d0f90ddced1d9050efc2a71e497aa872af79621d5878cdb31a7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656261722d61672f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-instagram)[![Total Downloads](https://camo.githubusercontent.com/a375ee974935d5e402e6859b7b4698ee8b51efc4d71e9508d789260c0b3ad760/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656261722d61672f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-instagram)[![GitHub-Tests](https://github.com/codebar-ag/laravel-instagram/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-instagram/actions/workflows/run-tests.yml)[![GitHub Code Style](https://github.com/codebar-ag/laravel-instagram/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-instagram/actions/workflows/fix-php-code-style-issues.yml)[![PHPStan](https://github.com/codebar-ag/laravel-instagram/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codebar-ag/laravel-instagram/actions/workflows/phpstan.yml)[![Dependency Review](https://github.com/codebar-ag/laravel-instagram/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/codebar-ag/laravel-instagram/actions/workflows/dependency-review.yml)

This package was developed to give you a quick start to communicate with the Instagram Api. It is used to query the most common endpoints.

This package is only designed to login with a single user account to display instagram data on your website. its not currently designed to be used as a multi-user application.

Navigation
----------

[](#navigation)

- [Navigation](#navigation)
- [🛠 Requirements](#-requirements)
- [Installation](#installation)
- [Creating a new Instagram App](#creating-a-new-instagram-app)
- [Overriding the default routes](#overriding-the-default-routes)
- [Usage](#usage)
    - [Authentication](#authentication)
    - [Getting the connector](#getting-the-connector)
    - [Getting the user](#getting-the-user)
    - [Getting the user media](#getting-the-user-media)
    - [Getting the user media without nested children images](#getting-the-user-media-without-nested-children-images)
- [DTO Showcase](#dto-showcase)
    - [InstagramUser](#instagramuser)
    - [InstagramImage](#instagramimage)
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Security Vulnerabilities](#security-vulnerabilities)
- [Credits](#credits)
- [License](#license)

🛠 Requirements
--------------

[](#-requirements)

VersionPHP VersionLaravel Versionv12.0.0^8.2 - ^8.4^12.\*v11.0.0^8.2 - ^8.3^11.\*Installation
------------

[](#installation)

You can install the package via composer:

```
composer require codebar-ag/laravel-instagram
```

Then:

```
php artisan instagram:install
```

Or:

You can publish the config file with:

```
php artisan vendor:publish --tag="instagram-config"
```

This is the contents of the published config file:

```
