justincdotme/tweetme

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.14) of this package.

A simple Twitter feed package for Laravel 5.

Maintainers

Package info

github.com/justincdotme/tweetme

pkg:composer/justincdotme/tweetme

Transparency log

Statistics

Installs: 28

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.0.14 2017-02-11 04:21 UTC

README

The code and its dependency tree may contain unpatched security vulnerabilities. It is preserved for archival purposes only and should not be used in any environment. No issues, pull requests, or updates will be accepted.

TweetMe

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.

Requirements

Laravel 5.*
Lumen 5.*

Lumen 5.* Installation

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);

Laravel 5.* Installation

composer require justincdotme/tweetme

php artisan vendor:publish
Add the TweetServiceProvider to the providers array in app/config.php
'providers' => [
    ...
    Justincdotme\TweetMe\TweetServiceProvider::class,
    ...
]
Add OAuth tokens and keys to .env
OAUTH_CONSUMER_KEY=""
OAUTH_ACCESS_TOKEN=""
OAUTH_CONSUMER_SECRET=""
OAUTH_ACCESS_TOKEN_SECRET=""

Usage

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();

Todo

  • Implement the Guzzle HTTP lib
  • Replace OAuth with the Guzzle OAuth implementation