Package Data | |
---|---|
Maintainer Username: | justincdotme |
Maintainer Contact: | info@justinc.me (Justin Christenson) |
Package Create Date: | 2015-05-09 |
Package Last Update: | 2017-02-11 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-19 03:23:44 |
Package Statistics | |
---|---|
Total Downloads: | 28 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A simple Twitter feed package for Laravel and Lumen 5.*. TweetMe returns a collection of slimmed down Tweets from a user's Twitter message history.
Laravel 5.*
Lumen 5.*
Install the package using Composer
composer require justincdotme/tweetme
You can optionally enable Facades by uncommenting the following from bootstrap/app.php
$app->withFacades();
Register the Service Provider by adding the following to bootstrap/app.php
$app->register(Justincdotme\TweetMe\TweetServiceProvider::class);
composer require justincdotme/tweetme
php artisan vendor:publish
'providers' => [
...
Justincdotme\TweetMe\TweetServiceProvider::class,
...
]
OAUTH_CONSUMER_KEY=""
OAUTH_ACCESS_TOKEN=""
OAUTH_CONSUMER_SECRET=""
OAUTH_ACCESS_TOKEN_SECRET=""
The TweetMe class exposes one method, getTweets(), which returns a collection.
Feel free to use the Facade or inject the TweetMeInterface.
Usage Examples:
$tweetArray = TweetMe::getTweets()->toArray();
OR
$jsonResponse = TweetMe::getTweets()->toJson();