# abraham/twitteroauth

The most popular PHP library for use with the Twitter OAuth REST API.

Repository: https://github.com/abraham/twitteroauth
Canonical: https://ross.abutalabs.com/products/twitteroauth
Homepage: https://twitteroauth.com
Language: PHP
License: MIT
License Family: permissive
Topics: twitter-oauth, php, twitter-api, php-library, twitter, twitteroauth, hacktoberfest
Last push: 2026-08-24T09:52:32+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 78, longevity 100
- inputs: {"age_days": 6409, "days_push": 9, "days_rel": 70, "gap_med": 31.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4302, forks 1675 (observed 2026-08-28T04:08:41.678932+00:00)

## What it is
TwitterOAuth is the most popular PHP library for interacting with Twitter's OAuth REST API, providing minimalist generic wrappers for API requests. It is now in maintenance mode with no new feature development planned.

## Use cases
- authenticate Twitter users with OAuth in a PHP app
- post tweets from PHP
- fetch a user's home timeline from the Twitter API
- call Twitter API v1.1 and v2 endpoints from PHP
- build the Twitter authorization URL for a login flow
- exchange an oauth verifier for an access token

## When to choose
- you need a battle-tested, widely used PHP client for the Twitter REST API
- you want generic wrappers that keep working as Twitter adds API features
- you need both OAuth authorization flow handling and API requests in one library

## When to avoid
- you need active feature development or support for new Twitter/X API changes
- your project is not in PHP
- you need a client for platforms other than Twitter

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, auth, api-framework
- domain: apis, social-media, web-development, developer-tools
- platform: php, cli
- tags: twitter-api, oauth, rest-api, twitter, x-api

## Member repositories
- abraham/twitteroauth (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.678932+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-29T18:21:50.074770+00:00, confidence not recorded.
  - readme: https://github.com/abraham/twitteroauth (fetched 2026-08-28T04:08:41.678932+00:00, sha 945dd0814772)
  - homepage: https://twitteroauth.com (fetched 2026-08-29T09:10:56.453708+00:00, sha 0ceddba1a3b1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
