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

ActiveLibrary[API Development](/categories/api)

btechn01/laravel-instagram
==========================

A laravel wrapper to use instagram API and to cache posts

v1.0.5(5y ago)05MITPHPPHP ^7.2

Since Nov 14Pushed 5y agoCompare

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

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

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

[](#laravel-instagram)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48283d3a2dcc23bb27a0952eb55fc551d2d68ddee6c8bbd47c5af62fcdbf6799/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62746563686e30312f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/btechn01/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/6e5bb0f920057fe33f9d78964ccda3987d8e7383778a22b945be31bdf6c6a51c/68747470733a2f2f7472617669732d63692e6f72672f62746563686e30312f6c61726176656c2d696e7374616772616d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/btechn01/laravel-instagram)[![Codecov](https://camo.githubusercontent.com/5abf83550ca23fd16a5dd0614ddcb0cef07d3117be7609f0dceae15f3b277305/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f62746563686e30312f6c61726176656c2d696e7374616772616d3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5abf83550ca23fd16a5dd0614ddcb0cef07d3117be7609f0dceae15f3b277305/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f62746563686e30312f6c61726176656c2d696e7374616772616d3f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/0a3279130fa24901cd61b2dd6e767d6054b35384850e47a6d1b1cc076690292c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62746563686e30312f6c61726176656c2d696e7374616772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/btechn01/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 btechn01/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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Every ~99 days

Recently: every ~123 days

Total

6

Last Release

1876d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6770866?v=4)[btechn01](/maintainers/btechn01)[@btechn01](https://github.com/btechn01)

---

Top Contributors

[![WhereIsLucas](https://avatars.githubusercontent.com/u/25830895?v=4)](https://github.com/WhereIsLucas "WhereIsLucas (3 commits)")

---

Tags

laravelinstagramlaravel-instagrambtechn01

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[nikolag/laravel-square

Square API integration with Laravel built on nikolag/core

3827.3k](/packages/nikolag-laravel-square)[muhamadrezaar/instagram

Laravel 5 Instagram Package

241.2k](/packages/muhamadrezaar-instagram)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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