andreyco/instagram
A PHP client for the Instagram API that wraps authentication and common endpoints for users, media, comments, and likes. It provides a simple, object-oriented interface for making requests and handling responses in PHP applications.
Architecture fit
andreyco/instagram is a single, self-contained PHP class wrapping Instagram's legacy REST API (v1). It is not a Laravel package: there is no service provider, facade, config file, publishable migrations, or container binding. In a Laravel codebase it behaves as a plain library that must be manually instantiated with credentials and wrapped by our own service class.Http client (Illuminate\Support\Facades\Http) or a maintained Meta SDK.Integration feasibility
graph.instagram.com and graph.facebook.com. Endpoint shape, auth model (short/long-lived tokens, app-scoped vs. user tokens), pagination, rate-limit signalling, and error envelopes all differ.curl_* calls, and possibly non-PSR-4 autoloading. Verify against our current PHP runtime and Laravel version before estimating.Technical risk
Key questions
Stack fit
config/instagram.php for credentials → a InstagramClient interface → a GraphInstagramClient implementation built on Http::withToken() → a thin adapter that preserves the legacy class's method signatures only if consumers already expect them.Migration path
Compatibility
require, which is a code-smell we should avoid rather than accommodate./v21.0/ or similar) so Meta's rolling deprecations are a scheduled task, not an outage.Sequencing
Maintenance
Support
Scaling
X-App-Usage / X-Business-Use-Case-Usage headers and implement backoff. Do not expect the package to do this.Failure modes
Ramp-up
How can I help you explore Laravel packages today?