Download the PHP package cnrp/laravel-instagram-feed without Composer
On this page you can find all versions of the php package cnrp/laravel-instagram-feed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cnrp/laravel-instagram-feed
More information about cnrp/laravel-instagram-feed
Files in cnrp/laravel-instagram-feed
Package laravel-instagram-feed
Short Description A custom implementation of Instagram feed for Laravel
License
Informations about the package laravel-instagram-feed
Laravel Instagram Feed
A Laravel package for fetching, storing, and displaying Instagram feeds with Filament integration. This package provides an efficient way to manage Instagram content within your Laravel application.
Features
- OAuth authentication with Instagram
- Support for multiple Instagram profiles
- Fetch and store Instagram feed data
- Store Instagram posts and media as Eloquent models
- Display and manage Instagram feeds in Laravel Filament admin panel
- Automatic conversion of images to WebP format for improved performance
Installation
You can install the package via composer:
The package will automatically register its service provider.
Configuration
The package comes with a default configuration file. If you need to customize these settings, you can publish the config file:
This will create a config/instagram-feed.php
file in your app's configuration directory. The default configuration looks like this:
Configuration Options
client_id
: Your Instagram API client ID.client_secret
: Your Instagram API client secret.redirect_uri
: The URI to redirect to after Instagram authentication. Default is 'auth/instagram/callback'.debug
:log_info
: Whether to log informational messages.log_errors
: Whether to log error messages.
Make sure to set the appropriate values in your .env
file:
Usage
In Filament Admin Panel
This package provides a Filament page for managing your Instagram feeds. You can access it at /admin/instagram-manager
.
- Navigate to the Instagram Manager page in your Filament admin panel.
- Click on "Add New Profile" to authenticate with Instagram.
- Once authenticated, you can view and manage multiple Instagram profiles and their feeds.
- Use the "Refresh Feed" button to manually update the feed for a selected profile.
To publish the styles for the Instagram Manager page, run the following command
php artisan filament:assets
Programmatic Usage
You can also use the package programmatically:
Models
The package provides the following Eloquent models:
InstagramProfile
: Represents an authenticated Instagram profileInstagramPost
: Represents an individual Instagram postInstagramMedia
: Represents media (images/videos) associated with posts
You can interact with these models using standard Eloquent operations.
WebP Conversion
Images are automatically converted to WebP format when stored, improving load times and optimizing storage usage.
Planned Features
- Scheduled refreshing of auth tokens and fetching feed
- Call api/download in batches
- Customizable front-end components
- Configurable compression settings/disable conversion
- Hide posts
License
This package is open-sourced software licensed under the MIT license.
Support
If you encounter any issues or have questions, please open an issue on GitHub.
All versions of laravel-instagram-feed with dependencies
filament/filament Version ^3.2
livewire/livewire Version ^3.0
spatie/laravel-package-tools Version ^1.16.0
illuminate/support Version ^10.0
intervention/image Version ^3.0