Skip to main content
Use the PHP SDK when you want typed request objects, named parameters, retries, and pagination helpers for TwexAPI REST workflows in PHP 8.1+ applications.

Install

Packagist is not published yet. Install from GitHub until it is:
Then run:
Source: twexapi-dev/x-api-scraper-php

Authenticate

Basic example

Look up a profile and list followers:

Workflow: search tweets

Workflow: post a tweet

Write actions need a Twitter cookie or auth_token on the request:

Error handling

References