swegio / twitteroauth
The most popular PHP library for use with the Twitter OAuth REST API.
3.2.0
2021-11-25 22:23 UTC
Requires
- php: ^7.4 || ^8.0 || ^8.1
- ext-curl: *
- composer/ca-bundle: ^1.2
Requires (Dev)
- php-vcr/php-vcr: ^1
- php-vcr/phpunit-testlistener-vcr: dev-php-8
- phpmd/phpmd: ^2
- phpunit/phpunit: ^8 || ^9
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-11-20 00:28:09 UTC
README
Sweg-TwitterOAuth
The most popular forked-PHP library for Twitter's OAuth REST API.
Installation
- Composer
composer require swegio/twitteroauth
- npm
npm i sweg-twitteroauth
Quick-Start Guide
- Install
- Create a
config.php
page to store the Twitter OAuth credentials - Use
require
to importconfig.php
(or preferred filename) - Use function
shipit()
intwitteroauth/src/TwitterOAuth.php
to immediately base64 encode and upload media from URL (as opposed to temporarily storing media)
See documentation at https://twitteroauth.com.
PHP versions listed as "active support" or "security fixes only" are supported.