All Projects → SocialiteProviders → Twitter

SocialiteProviders / Twitter

Licence: other
[READ ONLY] Subtree split of the SocialiteProviders/Twitter Provider (see SocialiteProviders/Providers)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Twitter

Slack
[READ ONLY] Subtree split of the SocialiteProviders/Slack Provider (see SocialiteProviders/Providers)
Stars: ✭ 11 (-47.62%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
Spotify
[READ ONLY] Subtree split of the SocialiteProviders/Spotify Provider (see SocialiteProviders/Providers)
Stars: ✭ 13 (-38.1%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
Instagram
[READ ONLY] Subtree split of the SocialiteProviders/Instagram Provider (see SocialiteProviders/Providers)
Stars: ✭ 34 (+61.9%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
Weibo
[READ ONLY] Subtree split of the SocialiteProviders/Weibo Provider (see SocialiteProviders/Providers)
Stars: ✭ 37 (+76.19%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
Twitch
[READ ONLY] Subtree split of the SocialiteProviders/Twitch Provider (see SocialiteProviders/Providers)
Stars: ✭ 20 (-4.76%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
VKontakte
[READ ONLY] Subtree split of the SocialiteProviders/VKontakte Provider (see SocialiteProviders/Providers)
Stars: ✭ 82 (+290.48%)
Mutual labels:  oauth, social-media, socialite, oauth1, socialite-providers
erlang-oauth
An Erlang OAuth 1.0 implementation
Stars: ✭ 298 (+1319.05%)
Mutual labels:  oauth, oauth1
electron-oauth-helper
Easy to use helper library for OAuth1 and OAuth2.
Stars: ✭ 55 (+161.9%)
Mutual labels:  oauth, oauth1
Oauthswift
Swift based OAuth library for iOS
Stars: ✭ 2,949 (+13942.86%)
Mutual labels:  oauth, oauth1
Qq
[READ ONLY] Subtree split of the SocialiteProviders/QQ Provider (see SocialiteProviders/Providers)
Stars: ✭ 50 (+138.1%)
Mutual labels:  oauth, social-media
Weixin
[READ ONLY] Subtree split of the SocialiteProviders/Weixin Provider (see SocialiteProviders/Providers)
Stars: ✭ 84 (+300%)
Mutual labels:  oauth, social-media
oauther
OAuth 1.0 for Elixir
Stars: ✭ 64 (+204.76%)
Mutual labels:  oauth, oauth1
oauth-provider-sample
A Spring Security OAuth provider, developed in my monograph about SSO and OAuth
Stars: ✭ 13 (-38.1%)
Mutual labels:  oauth, oauth1
Oauthlib
A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
Stars: ✭ 2,323 (+10961.9%)
Mutual labels:  oauth, oauth1
laravel-socialiter
Automatically manage user persistence and resolution for any Laravel Socialite provider.
Stars: ✭ 43 (+104.76%)
Mutual labels:  oauth, socialite
kubernetes-localdev
Create a local Kubernetes development environment on macOS or Windows and WSL2, including HTTPS/TLS and OAuth2/OIDC authentication.
Stars: ✭ 210 (+900%)
Mutual labels:  oauth
aPRAW
Asynchronous Python Reddit API Wrapper
Stars: ✭ 49 (+133.33%)
Mutual labels:  oauth
awesome-alternatives
A list of alternative websites/software to popular proprietary services.
Stars: ✭ 123 (+485.71%)
Mutual labels:  social-media
New-JavaScript-SDK---OAuth-2.0-based-FBConnect-Tutorial
Javascript SDK oAuth 2.0 based FBConnect
Stars: ✭ 68 (+223.81%)
Mutual labels:  oauth
oauth1-signer-ruby
Zero dependency library for generating a Mastercard API compliant OAuth signature.
Stars: ✭ 15 (-28.57%)
Mutual labels:  oauth1

Twitter

composer require socialiteproviders/twitter

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'twitter' => [    
  'client_id' => env('TWITTER_CLIENT_ID'),  
  'client_secret' => env('TWITTER_CLIENT_SECRET'),  
  'redirect' => env('TWITTER_REDIRECT_URI') 
],

Enable Sign in With Twitter

You will need to enable 3-legged OAuth in the Twitter Developers Dashboard. Make sure to also add your callback URL.

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Twitter\TwitterExtendSocialite::class.'@handle',
    ],
];

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

return Socialite::driver('twitter')->redirect();

Returned User fields

  • id
  • nickname
  • name
  • email
  • avatar
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].