wangshukai / mn-sso-php-sdk
There is no license information available for the latest version (0.0.1) of this package.
0.0.1
2022-06-23 06:12 UTC
Requires
- hanson/foundation-sdk: ^5.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
mnssoSDK
安装
$ composer require wangshukai/mn-sso-php-sdk
使用示例
<?php #使用分配的key和appSecret 网关地址填写测试或者线上地址 参数相关请参考文档 $config =['appKey' => '', 'appSecret' => '', 'gatewayUrl' => "","jumpUrl"=>'']; $sso = new Sso($config); $token = $sso->token;//用户相关 $data = [ 'grant_type' => 'authorization_code', 'code' => 'xxx' ]; $res=$token->getToken($data);//token操作
License
MIT