TwitterLogin
Get the twitter user authentication keys
Step 1:
- Go to Twitter Developer Portal and Apply to create app.
Step 2:
- Go to app setting and enable 3-legged OAuth and set Callback urls like this (if you want to run localhost):
Step 3:
- Create login directory and clone abraham/twitteroauth by this command:
composer require abraham/twitteroauth
Step 4:
- Replace this line in index.php where variables == "*****" with your keys:
const CONSUMER_KEY = '*****';
const CONSUMER_SECRET = '*****';
Step 5:
- Run the code and enjoy the output :)