Download the PHP package retinens/laravel-instagram without Composer
On this page you can find all versions of the php package retinens/laravel-instagram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download retinens/laravel-instagram
More information about retinens/laravel-instagram
Files in retinens/laravel-instagram
Package laravel-instagram
Short Description A laravel wrapper to use instagram API and to cache posts
License MIT
Homepage https://github.com/retinens/laravel-instagram
Informations about the package laravel-instagram
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
Installation
You can install the package via composer:
Then run the migrations used for caching, as the API is limited to 200 calls/hour.
Usage
First you need to generate an access token using Pixel Union's access token generator or by creating an Instagram application.
Put this API key in your .env file
You can run the command to update the cache.
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
To retrieve all posts use the facade : (this is limited to the latests)
You can specify a number of post to get, it will get the most recents ones :
This returns a collection with all the posts stored.
On each post, you can get attributes:
Credits
- Lucas Houssa
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-instagram with dependencies
ext-json Version *
illuminate/config Version 5.8.*|^6.0|^7.0
illuminate/support Version 5.8.*|^6.0|^7.0
vinkla/instagram Version ^9.3
php-http/guzzle6-adapter Version ^2.0
php-http/message Version ^1.8