PHP code example of spatie / laravel-twitter-streaming-api
1. Go to this page and download the library: Download spatie/laravel-twitter-streaming-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spatie / laravel-twitter-streaming-api example snippets
return [
/*
* To work with Twitter's Streaming API you'll need some credentials.
*
* If you don't have credentials yet, head over to https://developers.twitter.com/
*/
'handle' => env('TWITTER_HANDLE'),
'api_key' => env('TWITTER_API_KEY'),
'api_secret_key' => env('TWITTER_API_SECRET_KEY'),
'bearer_token' => env('TWITTER_BEARER_TOKEN'),
];