PHPackages                             retinens/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. [API Development](/categories/api)
4. /
5. retinens/laravel-instagram

ActiveLibrary[API Development](/categories/api)

retinens/laravel-instagram
==========================

A laravel wrapper to use instagram API and to cache posts

v1.0.4(6y ago)7924315[1 issues](https://github.com/retinens/laravel-instagram/issues)[1 PRs](https://github.com/retinens/laravel-instagram/pulls)MITPHPPHP ^7.2

Since Nov 14Pushed 4y ago4 watchersCompare

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

READMEChangelog (5)Dependencies (8)Versions (7)Used By (0)

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

[](#laravel-instagram)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ee8e8cd01164056487aad9b6fd3f35d5353a79a434de4c4835311c96ba561e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726574696e656e732f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/retinens/laravel-instagram)[![License: MIT](https://camo.githubusercontent.com/1b01ef0024ba0866c115986b895301f657c1b21fc29f05c4844b7f2e8d89204d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)[![StyleCI](https://camo.githubusercontent.com/5ce05d83829de3601e6b0ad64345ecb680b8ee6da0efd19ad7379ddf83756744/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232313634333738372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/221643787)[![Build Status](https://camo.githubusercontent.com/d4eb5dcd199f9984b076d7fb65c830bd985fa630ec955f090616388c68aed6dc/68747470733a2f2f7472617669732d63692e6f72672f726574696e656e732f6c61726176656c2d696e7374616772616d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/retinens/laravel-instagram)[![Codecov](https://camo.githubusercontent.com/e1938bfebba05e4efea9d17c56541baa2c08f827320d2afee8633a540ab095ea/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f726574696e656e732f6c61726176656c2d696e7374616772616d3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e1938bfebba05e4efea9d17c56541baa2c08f827320d2afee8633a540ab095ea/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f726574696e656e732f6c61726176656c2d696e7374616772616d3f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/609b1067b2fdd05be855fd75c6a5fa6e7512f17ab5c2e44aa08f44a74c74005c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726574696e656e732f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/retinens/laravel-instagram)

This package adds an Instagram post model to your Laravel application, for a cool feed or something like this.

The package relies on the `vinkla/instagram` package, and adds a solution to cache and a model

[![](https://repository-images.githubusercontent.com/221643787/bad3b180-06e3-11ea-919c-7cfe078d10e9)](https://repository-images.githubusercontent.com/221643787/bad3b180-06e3-11ea-919c-7cfe078d10e9)

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

[](#installation)

You can install the package via composer:

```
composer require retinens/laravel-instagram
```

Then run the migrations used for caching, as the API is limited to 200 calls/hour.

```
php artisan migrate
```

Usage
-----

[](#usage)

First you need to generate an access token using Pixel Union's [access token generator](http://instagram.pixelunion.net) or by creating an [Instagram application](https://www.instagram.com/developer/authentication).

Put this API key in your .env file

```
INSTAGRAM_KEY=YOUR_KEY

```

You can run the command to update the cache.

```
php artisan laravel-instagram:refresh
```

NOTE : you have to run the Laravel Scheduler in background to use this package. This package adds a command which is executed every 10 minutes to update the cache. [More info about the Laravel scheduler](https://laravel.com/docs/master/scheduling)

To retrieve all posts use the facade : (this is limited to the latests)

```
LaravelInstagram::getPosts()
```

You can specify a number of post to get, it will get the most recents ones :

```
LaravelInstagram::getPosts(4)
```

This returns a collection with all the posts stored.

On each post, you can get attributes:

```
// Full Size Image
$post->standardResolutionImageUrl
// Caption text
$post->captionText
// HTML formatted caption text (use {!! !!} to escape  tags)
$post->htmlCaptionText
// Link to the post
$post->link
```

Credits
-------

[](#credits)

- [Lucas Houssa](https://github.com/whereislucas)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~27 days

Total

5

Last Release

2311d ago

### Community

Maintainers

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

---

Top Contributors

[![WhereIsLucas](https://avatars.githubusercontent.com/u/25830895?v=4)](https://github.com/WhereIsLucas "WhereIsLucas (4 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![PolyGON3](https://avatars.githubusercontent.com/u/37215227?v=4)](https://github.com/PolyGON3 "PolyGON3 (1 commits)")

---

Tags

laravelinstagramretinenslaravel-instagram

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[api-platform/laravel

API Platform support for Laravel

58170.4k13](/packages/api-platform-laravel)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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