PHPackages                             wechate/appletlogin - 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. wechate/appletlogin

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

wechate/appletlogin
===================

基于微信官方SDK封装微信小程序登录,用于获取openid和unionid等敏感信息的php后端实现;可安装在laravel框架

1.0.0(7y ago)1109MITPHPPHP &gt;=5.4.0

Since Dec 27Pushed 7y agoCompare

[ Source](https://github.com/QzeroQ/wechate-appletlogin)[ Packagist](https://packagist.org/packages/wechate/appletlogin)[ RSS](/packages/wechate-appletlogin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

#### 基于微信官方SDK封装微信小程序登录，用于获取openid和unionid等敏感信息的php后端实现

[](#基于微信官方sdk封装微信小程序登录用于获取openid和unionid等敏感信息的php后端实现)

##### 安装步骤

[](#安装步骤)

1. 进入项目根目录执行

```
composer require wechate/appletlogin
```

2. 进入laravel项目根目录的config/app.config,添加服务并设置别名

```
'providers' => [
    //在你原来的服务列表中添加如下服务
    Wechat\Appletlogin\WeChatAppletLoginServiceProvider::class
],
'aliases' => [
    //在你原来的别名列表中添加WxLogin别名
     'WxLogin' => Wechat\Appletlogin\Facades\WxLogin::class
]
```

3. 使用例子：

```
