Download the PHP package rbadillap/twitterstreaming-laravel without Composer

On this page you can find all versions of the php package rbadillap/twitterstreaming-laravel. 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 twitterstreaming-laravel

TwitterStreaming Laravel 5 Service Provider

We are now supporting TwitterStreamingPHP with Laravel 5 through a Service Provider :)

Installation

This TwitterStreamingPHP Service Provider can be installed via Composer. Running the following command:

composer require rbadillap/twitterstreaming-laravel

Now you should register the provider in the Laravel application in your config/app.php configuration file:

Also, add the TwitterStreaming facade in the aliasses array (located in the same file).

Also you may want to create a twitterstreaming.php configuration file, to do that and put on it the credentials of your Twitter App you should run the following command:

php artisan vendor:publish

Now, you can see a new file created in the app folder where you can add your credentials.

And ready to use!

Usage

To understand how to use TwitterStreamingPHP please visit its documentation

Extras

Within this Service Package you will find some extra methods to simplify the way to work with TwitterStreamingPHP in Laravel. Let's take a look all of them:

Simplified way to define the endpoints

Instead of define the endpoints using the endpoint method in TwitterStreamingPHP you can call some methods which injects the endpoint (and its types) directly. For example:

All the methods to simplify the endpoints definitions listed here:

Integration with Filters module

Are you using Filters module?

If no, well, you should :)

If yes, we have been integrated into the Laravel Service Provider.

The only thing that you need to use is require the package using composer:

composer require rbadillap/twitterstreaming-filters

And use it without the need to register the new extension.

How can I use it in Laravel

There is some ways, but if you wanna combine Laravel and TwitterStreamingPHP you can create your own command

php artisan make:console TwitterTrack

And put your logic to track tweets.

Even better, you could dispatch a queue listener to store in database.

Contributing

Use the same workflow as many of the packages that we have here in Github.

  1. Fork the project.
  2. Create your feature branch with a related-issue name.
  3. Try to be clear with the code committed and follow the PSR-2 Coding Style Guide.
  4. Run the tests (and create your new ones if necessary).
  5. Commit and push the branch.
  6. Create the Pull Request.

All versions of twitterstreaming-laravel with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.*
rbadillap/twitterstreaming Version 0.1.*
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 rbadillap/twitterstreaming-laravel contains the following files

Loading the files please wait ....