# cosenary/Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.

Repository: https://github.com/cosenary/Instagram-PHP-API
Canonical: https://ross.abutalabs.com/products/instagram-php-api
Homepage: http://cosenary.github.com/Instagram-PHP-API
Language: PHP
License: BSD-3-Clause
License Family: permissive
Last push: 2021-10-05T07:07:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5412, "days_push": 1793, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1450, forks 751 (observed 2026-08-28T04:04:45.786473+00:00)

## What it is
A PHP wrapper library for accessing Instagram's legacy API, providing OAuth2 authentication and methods for fetching user data, likes, and media. It is distributed via Composer and requires PHP 5.3+ with cURL.

## Use cases
- access instagram api from php
- authenticate users with instagram oauth in my php app
- fetch a user's instagram likes and media
- get instagram login url for my website
- integrate instagram photos into a php site
- exchange instagram oauth code for access token

## When to choose
- maintaining a legacy PHP application already using this library
- working with Instagram's old pre-2016 API endpoints
- you need a simple, lightweight PHP client for the deprecated Instagram API

## When to avoid
- starting a new project, since Instagram's API changed in Nov 2015 and this library doesn't support the new API
- you need access to current Instagram Graph API features
- you need a maintained library with recent bug fixes and security updates

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client, auth, sdk
- domain: apis, web-development, social-media, developer-tools
- platform: php
- tags: instagram-api, oauth2, api-wrapper, social-media-api, legacy

## Member repositories
- cosenary/Instagram-PHP-API (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.786473+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:55.087039+00:00, confidence not recorded.
  - readme: https://github.com/cosenary/Instagram-PHP-API (fetched 2026-08-28T04:04:45.786473+00:00, sha 0bde3005b174)
- Data as of 2026-08-30T08:39:29.467469+00:00.
