Download the PHP package mkhab7/php-instagram-graph without Composer
On this page you can find all versions of the php package mkhab7/php-instagram-graph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-instagram-graph
PHP Instagram Graph API SDK
A modern, comprehensive PHP 8.4+ SDK for the Instagram Graph API with clean architecture, full type safety, and extensive feature coverage.
โจ Features
- ๐ Modern PHP 8.4 - Leverages latest PHP features: typed properties, attributes, enums, match expressions, named arguments
- ๐๏ธ Clean Architecture - SOLID principles, dependency injection, service-oriented design
- ๐ Complete Authentication - OAuth 2.0 flow, token management, automatic refresh
- ๐ Full API Coverage - Users, Media, Comments, Messaging, Insights, Webhooks
- ๐ก๏ธ Type Safety - Comprehensive DTOs with strict typing and validation
- โก HTTP Client Abstraction - Robust error handling, rate limiting, retry logic
- ๐งช Fully Tested - Comprehensive test suite with Pest PHP
- ๐ Rich Documentation - Detailed examples and API reference
- ๐ Developer Friendly - Intuitive API design with IDE autocompletion
๐ Requirements
- PHP 8.4 or higher
- Composer
- Instagram Business or Creator Account
- Facebook App with Instagram API access
๐ฆ Installation
Install via Composer:
โ๏ธ Configuration
1. Create Facebook App
- Go to Facebook Developers
- Create a new app with Business type
- Add Instagram API product
- Configure OAuth redirect URIs
2. Environment Setup
Create a .env file or set environment variables:
๐ Quick Start
Authentication Flow
Basic Usage
๐ Comprehensive Usage Guide
๐ค User Management
๐ธ Media Operations
๐ฌ Comment Management
๐ฌ Direct Messaging
๐ Analytics & Insights
๐ Webhook Management
๐ฏ Advanced Features
Batch Operations
Custom HTTP Options
Error Handling
๐งช Testing
Run the test suite:
Writing Tests
๐ง Configuration Options
Access Token Management
Logger Integration
๐ API Reference
Available Scopes
| Scope | Description |
|---|---|
instagram_business_basic |
Basic access to Instagram business accounts |
instagram_business_manage_messages |
Manage Instagram direct messages |
instagram_business_manage_comments |
Manage comments on Instagram media |
instagram_business_content_publish |
Publish content to Instagram |
pages_show_list |
Access to Facebook pages list |
pages_read_engagement |
Read page engagement data |
Rate Limits
Instagram API has the following rate limits:
- User Access Token: 200 calls per hour per user
- App Access Token: 200 calls per hour per app
- Business Discovery: 5 calls per hour per app
The SDK automatically handles rate limit errors and provides retry suggestions.
Media Types
IMAGE- Photo postsVIDEO- Video posts (including Reels)CAROUSEL_ALBUM- Multiple photos/videos in one post
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
Development Setup
Code Style
This project follows PSR-12 coding standards and uses PHP-CS-Fixer for formatting.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Instagram Graph API Documentation
- PHP-FIG for PSR standards
- Pest PHP for testing framework
- All contributors and users
๐ Support
- ๐ Documentation
- ๐ Issue Tracker
- ๐ฌ Discussions
Made with โค๏ธ by mkhab7
All versions of php-instagram-graph with dependencies
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/http-message Version ^2.0
psr/log Version ^3.0
symfony/validator Version ^7.0
nesbot/carbon Version ^3.0