PHPackages                             ndj888/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. ndj888/socialite

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

ndj888/socialite
================

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

2.0.3(8y ago)011MITPHPPHP &gt;=7.0

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ndj888/socialite)[ Packagist](https://packagist.org/packages/ndj888/socialite)[ RSS](/packages/ndj888-socialite/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (38)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.

 **创造不息，交付不止**
 [ ![](https://camo.githubusercontent.com/4823e192edc17179b00fabdb229806b31b8a761dec0e6a0361bd3bf9b03fad8f/68747470733a2f2f796f757361696c732e636f6d2f62616e6e6572732f6272616e642e706e67) ](https://www.yousails.com)

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

[](#requirement)

```
PHP >= 7.0

```

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

[](#installation)

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

Usage
=====

[](#usage)

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

`authorize.php`:

```
