Description
This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
TwitterSDK alternatives and similar libraries
Based on the "Authentication and Authorization" category.
Alternatively, view TwitterSDK alternatives based on common mentions on social networks and blogs.
-
PHP OAuth 2.0 Server
A spec compliant, secure by default PHP OAuth 2.0 Server -
Json Web Token
A simple library to work with JSON Web Token and JSON Web Signature -
HybridAuth
Open source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google. -
OAuth 2.0 Client
Easy integration with OAuth 2.0 service providers. -
Sentinel
A framework agnostic authentication & authorization system. -
TwoFactorAuth
PHP library for Two Factor Authentication (TFA / 2FA) -
SocialConnect Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP :shipit: -
Aura.Auth
Provides a unified interface to local and remote authentication systems. -
Sign in with Apple for PHP
PHP library to verify and validate Apple IdentityToken and authenticate a user with Apple ID. -
TwitterOAuth
The first PHP Library to support OAuth for Twitter's REST API. -
Rinvex Authy PHP Client
Rinvex Authy is a simple wrapper for @Authy TOTP API, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.
Tired of breaking your main and manually rebasing outdated pull requests?
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TwitterSDK or a related project?
README
Twitter SDK
Installation
composer require lyrixx/twitter-sdk
Usage
Create a twitter application then
<?php
require __DIR__.'/vendor/autoload.php';
use Lyrixx\Twitter\Twitter;
// You can find them at: https://dev.twitter.com/apps > your app
$consumerKey = 'xvz1evFS4wEEPTGEFPHBog';
$accessToken = '370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb';
$consumerSecret = 'kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw';
$accessTokenSecret = 'LswwdoUaIvS8ltyTt5jkRh4J50vUPVVHtR2YPi5kE';
$twitter = new Twitter($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);
// Fetch yours last tweets
$response = $twitter->query('GET', 'statuses/user_timeline');
$tweets = json_decode($response->getBody(), true);
// Search some tweets
$response = $twitter->query('GET', 'search/tweets', array('q' => '#symfony2'));
$tweets = json_decode($response->getBody(), true);
// Tweet
// Works only if your application has read/write scope
try {
$response = $twitter->query('POST', 'statuses/update');
} catch (Lyrixx\Twitter\Exception\ApiClientException $e) {
$response = $e->getResponse();
$errors = json_decode($response->getBody(), true); // {"errors":[{"code":170,"message":"Missing required parameter: status"}]}
}
// No exception are throwed, it just works
$response = $twitter->query('POST', 'statuses/update', array('status' => 'Playing with twitter API'));
License
This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
*Note that all licence references and agreements mentioned in the TwitterSDK README section above
are relevant to that project's source code only.