PHP code example of cblink / user-account
1. Go to this page and download the library: Download cblink/user-account 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/ */
cblink / user-account example snippets
return [
// ...
// ...
// 其他第三方登陆
// @see https://socialiteproviders.netlify.com/
// 小程序登陆
'wechat_mini' => [
'appid' => 'xxx',
'secret' => 'xxxxxxxxxxx',
]
];
return [
// 路由前缀
'route' => [
'prefix' => '',
],
// 验证码相关
'captcha' => [
// 验证码位数
'number' => 6,
// 验证码有效期,单位s
'expired_time' => 600,
],
];