Download the PHP package hardywen/social-login without Composer

On this page you can find all versions of the php package hardywen/social-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package social-login

Laravel 5.0 的可以看看这个扩展(没用过,不过貌似不错的样子)。 https://github.com/liaol/socialite-cn

2015-05-27更新(对应 v0.3): 添加 logout() 方法解决切换用户产生的bug。(bug:只返回第一次用户的信息)。 添加了 auto_logout 配置项,默认为true, 会监听 auth.logout 事件,在触发该事件后清掉第三方登录session。 比如 Laravel的 Auth::logout() 方法就会触发这个事件。 当然你也可以手动调用 方法来清除。

2015-05-05更新(对应 v0.2): 将Sina和QQ的getUserInfo方法统一返回为对象格式。如果你不想改你现在的代码,你可以使用 版本。

social-login

Sina and QQ login

Install:

1.Add hardywen/social-login to composer.json

2.Use composer to install this package.

3.Publish the config files.

Registering the Package

Register the service provider within the array found in :

Add an alias within the array found in :

Config

Usage

login:

And after you login QQ, it will return to the callback url with "code" and "state" params

Then in your callbak page call this function :

Now you can use

to get the login user info.


All versions of social-login with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hardywen/social-login contains the following files

Loading the files please wait ....