The most popular PHP library for use with the Twitter OAuth REST API.
$connection = new TwitterOAuth(...);
$connection->setApiVersion('2');
$response = $connection->get('users', ['ids' => 12]);
1.x is the last version to support PHP versions < 7.2. 1.x will get critical security and bug fixes while feature development will go toward a future 2.x release.
boolean
to 'boolean'