Download the PHP package feerozkhan/twitter without Composer

On this page you can find all versions of the php package feerozkhan/twitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package twitter

Twitter

Twitter API for Laravel 4/5

You need to create an application and create your access token in the Application Management.

Build Status

Installation

Add thujohn/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 (Thujohn\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 thujohn/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.

Laravel 5

Run php artisan vendor:publish --provider="Thujohn\Twitter\TwitterServiceProvider" 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

Account

Block

DirectMessage

Favorite

Friendship

Geo

Help

List

Media

Search

Status

Trend

User

Helper 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.

Get User Credentials with email.

In the above, you need to pass true as a string, not as a boolean. The boolean will get converted to 1 which Twitter ignores.

This also is assuming you have your permissions setup correctly with Twitter. You have to choose 'Get user email' when you set up your Twitter app, passing the value alone will not be enough.

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

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/support Version 4.*|5.*
themattharris/tmhoauth Version 0.8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package feerozkhan/twitter contains the following files

Loading the files please wait ....