2017 © Pedro PelĂĄez
 

library birder

Get and filter Tweets (by @user or #hashtag) in a Laravel Way

image

thatzad/birder

Get and filter Tweets (by @user or #hashtag) in a Laravel Way

  • Monday, August 15, 2016
  • by rgomezcasas
  • Repository
  • 1 Watchers
  • 8 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Birder

Installation

Begin by installing this package through Composer. Go to your project folder from the terminal and execute: composer require thatzad/birder, (*1)

Once this operation completes, the next step is to add the service provider. Open app/config/app.php, and add a new item to the providers array., (*2)

'Thatzad\Birder\BirderServiceProvider'

And add the alias., (*3)

'Birder' => 'Thatzad\Birder\Facades\BirderFacade'

Finally you'll need to publish the config file. To do that, in the project folder execute:, (*4)

php artisan vendor:publish

This will output the configuration in your config folder. You must to fill all twitter fields., (*5)

Usage

If you're familiar in the Laravel world, you'll find that very easy to use. E.g., imagine you need to find all @dotZecker tweets that have more than 2 retweets and only 1 fav. Do this is as easy as:, (*6)

$tweets = Birder::user('@dotZecker')
    ->where('retweets', '>', 2)
    ->where('favorites', '=', 1) // The same as: ->whereFavorites(1)
    ->get();

Now, you want to get all tweets by the #Zelda hashtag that have more than 5 retweets or more than 6 favs., (*7)

$tweets = Birder::hashtag('#Zelda')
    ->where('retweets', '>', 5)
    ->orWhere('favorites', '>', 6)
    ->get();

This will return you a Illuminate\Support\Collection, by this way you'll be able to use all these methods., (*8)

Are you British or lazy?

Don't worry!, Birder uses internal synonyms (alias) for the favorites and retweets., (*9)

You can use:, (*10)

->where('favorites' ...), ->where('favourites' ...), ->where('favs' ...), ->whereFavourites(...), ..., (*11)

->where('retweets' ...), ->where('rts' ...), ->whereRts(...), ..., (*12)

The Versions

15/08 2016

dev-master

9999999-dev

Get and filter Tweets (by @user or #hashtag) in a Laravel Way

  Sources   Download

MIT

The Requires

 

laravel filter twitter tweet

16/08 2014

dev-develop

dev-develop

Get and filter Tweets (by @user or #hashtag) in a fluent way

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel filter twitter tweet

28/11 2013

v0.1

0.1.0.0

Get and filter Tweets (by @user or #hashtag) in a Laravel Way

  Sources   Download

MIT

The Requires

 

laravel filter twitter tweet