Download the PHP package shahrukhkhan/twitter without Composer
On this page you can find all versions of the php package shahrukhkhan/twitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shahrukhkhan/twitter
More information about shahrukhkhan/twitter
Files in shahrukhkhan/twitter
Informations about the package twitter
Twitter API for Laravel 4/5
You need to create an application and create your access token in the Application Management.
Installation
Add shahrukhkhan/twitter
to composer.json
.
Run composer update
to pull down the latest version of Twitter.
Or run
Now open up /config/app.php
and add the service provider to your providers
array.
Now add the alias.
Upgrading from 1.x.x
The package now requires PHP >= 5.4.0
Facade has changed (Shahrukh\Twitter\Facades\Twitter)
Config file has been updated (debug, UPLOAD_URL, ACCESS_TOKEN_URL, REQUEST_TOKEN_URL)
set_new_config() has been renamed reconfig()
Configuration (Laravel 4)
Run php artisan config:publish shahrukhkhan/twitter
and modify the config file with your own informations.
Also, make sure to remove the env in the config file and replace it with your information.
Configuration (Laravel 5)
Run php artisan vendor:publish
and modify the config file with your own information.
With Laravel 5, it's simple to edit the config.php file - in fact you don't even need to touch it! Just add the following to your .env file and you'll be on your way:
Special parameter
Functions
Linkify : Transforms URLs, @usernames, hashtags into links. The type of $tweet can be object, array or text. By sending an object or an array the method will expand links (t.co) too.
Ago : Converts date into difference (2 hours ago)
LinkUser : Generates a link to a specific user, by their user object (such as $tweet->user), or id/string.
LinkTweet : Generates a link to a specific tweet.
Examples
Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow.
Returns the X most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
Updates the authenticating user's current status, also known as tweeting.
Updates the authenticating user's current status with media.
Sign in with twitter
Debug
First activate debug in the config file.
Then you can access the logs() method.
All versions of twitter with dependencies
illuminate/support Version 4.*|5.*
themattharris/tmhoauth Version 0.8.4