heyshop / hey-token
用于在app登录嘿店颁发token
v1.0
2018-09-07 02:01 UTC
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-11-11 16:52:01 UTC
README
使用事例:
require 'vendor/autoload.php';
use HeyShop\Token\HeyShopMultipass;
$customer_data = array(
"mobile" => "138xxxx7277",
"email" => "leslie@xxxxxxxx.com",
"full_name" => "LZL",
"remote_ip" => "127.0.0.1"
);
$multipass = new HeyShopMultipass('secret');
$token = $multipass->generate_token($customer_data);
var_dump($token);