This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Twitter Application Only Auth API for Laravel, which is documented here: With Application-only authentication you don’t have the context of an authenticated user and this means that any request to API for endpoints that require user context, such as po

1.0.4 2015-11-15 06:34 UTC

This package is auto-updated.

Last update: 2021-11-14 04:55:53 UTC


Twitter Application-only API for Laravel 5.


Add ckailash/twitter-app-only-auth to composer.json.

"ckailash/twitter-app-only-auth": "~1.0"

Run composer update to get the latest version

Or run

composer require ckailash/twitter-app-only-auth

Now open up /config/app.php and add the service provider to your providers array.

'providers' => [


Run composer dump-autoload to reload the autoload files

Run php artisan twitter-app-only-auth:generate-bearer <twitter-consumer-key> <twitter-consumer-key-secret> to get the bearer token required to interact with the twitter API as an app.

Run php artisan vendor:publish and modify the config file with your own information.


Add the following to your .env file and you'll be on your way: