1. Go to this page and download the library: Download hsvisus/wechat library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hsvisus / wechat example snippets
* 构建自定菜单
public function buildMenus($company_id=null)
* 消费通知
public function consumerInform(string $toOpenid, array $data, $company_id=null)
* 访客申请通知
public function applyInform(string $toOpenid, array $data, $company_id=null)
* 预约审核通知
public function auditInform(string $toOpenid, array $data, $company_id=null)
* 考勤通知
public function attendanceInform(string $toOpenid, array $data, $company_id=null)
* 绑定员工和公众号
public function bindStaff(int $person_id, string $openid, $company_id=null)
* 绑定访客和公众号 $data数据有(['nickname':微信昵称 sex:性别, head:微信头像] 都可为空)
public function bindVisitor(string $openid, array $data)
* 获取开门二维码图片
public function createQR(int $appointment_id):string
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.