1. Go to this page and download the library: Download golive_jxw/governmentaffair 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/ */
golive_jxw / governmentaffair example snippets
use Government\Affair\Classes\User;
//alipay-支付宝入口
//ZhejiangOffice-同源APP入口(含浙里办APP及其他同源适配APP容器环境)
$user = new User();
$user->auth($goto,'ZhejiangOffice');
//alipay-支付宝入口
//ZhejiangOffice-同源APP入口(含浙里办APP及其他同源适配APP容器环境)
use Government\Affair\Classes\User;
$user = new User();
$user->ticket($ticket);
//wechat-微信小程序入口
use Government\Affair\Classes\Wechat;
$user = new Wechat();
$user->ticket($ticket);
//alipay-支付宝入口
//ZhejiangOffice-同源APP入口(含浙里办APP及其他同源适配APP容器环境)
use Government\Affair\Classes\User;
$user = new User();
$user->info($token);
//wechat-微信小程序入口
use Government\Affair\Classes\Wechat;
$user = new Wechat();
$user->info($token);