PHPackages                             wengooooo/socialite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. wengooooo/socialite

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

wengooooo/socialite
===================

A collection of OAuth 2 packages that extracts from laravel/socialite.

2.0.19(5y ago)015MITPHPPHP &gt;=5.6

Since Dec 9Pushed 5y agoCompare

[ Source](https://github.com/wengooooo/socialite)[ Packagist](https://packagist.org/packages/wengooooo/socialite)[ Patreon](https://www.patreon.com/overtrue)[ RSS](/packages/wengooooo-socialite/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (54)Used By (0)

 Socialite
==========

[](#-socialite)

[![Build Status](https://camo.githubusercontent.com/4a36416429256b2d9e618ed8eb124f18fc3634eba4ee62777f8207c64381ef9c/68747470733a2f2f7472617669732d63692e6f72672f6f766572747275652f736f6369616c6974652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/overtrue/socialite)[![Latest Stable Version](https://camo.githubusercontent.com/c4749ba8861fa6a83a1292608571c847b1819806543a90d839a4e0e0508f0722/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f736f6369616c6974652f762f737461626c652e737667)](https://packagist.org/packages/overtrue/socialite)[![Latest Unstable Version](https://camo.githubusercontent.com/9576aa8da9eaf92f975f11c1f95803dd62483a7d912aad22feb3dc7be12a5277/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f736f6369616c6974652f762f756e737461626c652e737667)](https://packagist.org/packages/overtrue/socialite)[![Build Status](https://camo.githubusercontent.com/84824a0b71246e2fd9e22abc3f547f249c208fb5ac73f65d3c0a2c258ba17f79/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f736f6369616c6974652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/socialite/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8875667fdd3207182eae14a679413579def05bbf58700fbbbc3191cfaa7fd782/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f736f6369616c6974652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/socialite/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/40c66609e54ea696e7f8e3dde8c816f48a8f1b64a4a41f1bb764140008f4f60c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f736f6369616c6974652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/socialite/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/5f91220582b557781a69c0d377967c9cfd094da1bbd7f05c3932984cf59335ac/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f736f6369616c6974652f646f776e6c6f616473)](https://packagist.org/packages/overtrue/socialite)[![License](https://camo.githubusercontent.com/e7a731ae7b59dc7b6d4aca5064a4d703aa8908e4d79c8ee0409f68ca989bee84/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f736f6369616c6974652f6c6963656e7365)](https://packagist.org/packages/overtrue/socialite)

Socialite is an OAuth2 Authentication tool. It is inspired by [laravel/socialite](https://github.com/laravel/socialite), You can easily use it in any PHP project.

Requirement
===========

[](#requirement)

```
PHP >= 5.6

```

Installation
============

[](#installation)

```
$ composer require "overtrue/socialite" -vvv
```

Usage
=====

[](#usage)

For Laravel 5: [overtrue/laravel-socialite](https://github.com/overtrue/laravel-socialite)

`authorize.php`:

```
