Download the PHP package xiaohuilam/laravel-wxapp-login without Composer

On this page you can find all versions of the php package xiaohuilam/laravel-wxapp-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 laravel-wxapp-login

Laravel 快速接入微信小程序

让 Laravel 应用3分钟内快捷接入微信小程序的扩展

版本适配

单元测试

安装

发布

执行以下命令发布路由和 controller

确保启用了小程序配置

根据 Issue#11 这条评论 ,请确保 overtrue/laravel-wechatconfig/wechat.php 启用了小程序的配置

表结构、模型改动

laravel-wxapp-login 需要在 users 表中添加 openid 的字段,所以需要运行 database/migrations/2019_05_28_060312_users_add_openid.php

另外,需要在用户模型中,将 openid 加入到 $fillable 属性:

打开 app\User.php (如果你修改过模型位置,请以自己项目实际位置为准)

配置

使用

接口使用

routes/wechat.php

修改注册用户逻辑

app/Http/Controllers/Auth/WechatLoginController.php 中修改

方法为:

在小程序JS使用

Restful API

运行 route('wechat.login') 得到微信登录的 api 的 URL, 调用微信登录

Websocket

小程序代码

注册 channel.php

授权

MIT

鸣谢


All versions of laravel-wxapp-login with dependencies

PHP Build Version
Package Version
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 xiaohuilam/laravel-wxapp-login contains the following files

Loading the files please wait ....