Download the PHP package plugrbase/laravel-twitter-api without Composer
On this page you can find all versions of the php package plugrbase/laravel-twitter-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download plugrbase/laravel-twitter-api
More information about plugrbase/laravel-twitter-api
Files in plugrbase/laravel-twitter-api
Download plugrbase/laravel-twitter-api
More information about plugrbase/laravel-twitter-api
Files in plugrbase/laravel-twitter-api
Vendor plugrbase
Package laravel-twitter-api
Short Description Twitter API wrapper for Laravel 8.x|9.x
License MIT
Homepage https://github.com/plugrbase/laravel-twitter-api
Package laravel-twitter-api
Short Description Twitter API wrapper for Laravel 8.x|9.x
License MIT
Homepage https://github.com/plugrbase/laravel-twitter-api
Keywords plugrbaselaravel-twitter-api
Please rate this library. Is it a good library?
Informations about the package laravel-twitter-api
A small Laravel wrapper for the Twitter API V2.
A very small package providing some functions to access the Twitter V2 API.
Installation
You can install the package via composer:
Optionally publish the config file of this package:
Add the following environment variables.
Functions
Twitter API v2
$twitterApi = new TwitterApi($bearerToken, $oAuthCredentials);
- Create a new instance. If the oauth credentials are not passed, then the application config variables we'll be used instead (if provided).
Tweet
$twitterApi->tweet()->get($tweetId)
- Return a single Tweet.$twitterApi->tweet()->get($tweetId, ['expansions' => 'referenced_tweets.id.author_id','place.fields' => 'contained_within,country']);
- Return a single Tweet with optional query parameters.$twitterApi->tweet()->getMany([$tweetId1, $tweetId2])
- Return multiple Tweets.$twitterApi->tweet()->create($params)
- Create a Tweet. ex $params = ["text": "Hello World!"];
User
$twitterApi->user()->get($userId)
- Return a single user.$twitterApi->user()->get($userId, , ['user.fields' => 'created_at']);
- Return a single user with optional query parameters.$twitterApi->user()->getMany([$userId1, $userId2])
- Return multiple users.$twitterApi->user()->getByUsername($username)
- Return a single user by username.$twitterApi->user()->getManyByUsername([$username1, $username2])
- Return multiple users by username.$twitterApi->user()->getFollowers($userId)
- Return all the followers of a user.$twitterApi->user()->getFollowers($userId, ['max_results' => 5])
- Return the five earliest followers of a user.$twitterApi->user()->getTweets($userId)
- Return all the tweets of a user. By default, the most recent ten Tweets are returned per request. Using pagination, the most recent 3,200 Tweets can be retrieved.$twitterApi->user()->getTweets($userId, ['max_results' => 5])
- Return the five earliest tweets of a user.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-twitter-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
guzzlehttp/guzzle Version ^7.4
guzzlehttp/oauth-subscriber Version ^0.6.0
guzzlehttp/guzzle Version ^7.4
guzzlehttp/oauth-subscriber Version ^0.6.0
The package plugrbase/laravel-twitter-api contains the following files
Loading the files please wait ....