Package Data | |
---|---|
Maintainer Username: | meteorlxy |
Maintainer Contact: | meteor.lxy@foxmail.com (meteorlxy) |
Package Create Date: | 2017-09-01 |
Package Last Update: | 2018-08-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:04:40 |
Package Statistics | |
---|---|
Total Downloads: | 122 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
XJTUANA development package for Laravel
Site: https://ana.xjtu.edu.cn
Authors:
Eloquent模型
和用户认证
,配置使用CAS的用户登录认证流程composer require xjtuana/laravel-xjtuana ~2.0.0
** 可以通过Xjtuana\XjtuanaServiceProvider
配置所有模块,也可以根据需要的子模块,使用其中提供的ServiceProvider
分别配置 **
在config/app.php
的providers
下,加入:
Xjtuana\XjtuanaServiceProvider::class,
在config/app.php
的aliases
下,加入:
'CasProxy' => Xjtuana\Cas\Facades\XjtuanaCasProxy::class,
'WsUserInfo' => Xjtuana\XjtuWs\Facades\XjtuWsUserInfo::class,
'WsUserPhoto' => Xjtuana\XjtuWs\Facades\XjtuWsUserPhoto::class,
'WsSms' => Xjtuana\XjtuWs\Facades\XjtuWsSms::class,
'ApiNetworkLog' => Xjtuana\XjtuApi\Facades\XjtuApiNetworkLog::class,
'ApiSms' => Xjtuana\XjtuApi\Facades\ApiSms::class,
'CheckJetbrains' => Xjtuana\HealthCheck\Facades\CheckJetbrains::class,
'CheckKms' => Xjtuana\HealthCheck\Facades\CheckKms::class,
'CheckShadowsocks' => Xjtuana\HealthCheck\Facades\CheckShadowsocks::class,
运行以下命令生成配置文件
php artisan vendor:publish --provider="Xjtuana\XjtuanaServiceProvider"
根据需要,在.env
文件中配置相应变量
XJTUANA_CAS_PROXY_PROTOCOL=
XJTUANA_CAS_PROXY_HOSTNAME=
XJTUANA_CAS_PROXY_PREFIX=
XJTUANA_CAS_PROXY_VERSION=
XJTUANA_WS_USERINFO_URL=
XJTUANA_WS_USERINFO_AUTH=
XJTUANA_WS_USERPHOTO_URL=
XJTUANA_WS_USERPHOTO_AUTH=
XJTUANA_WS_SMS_URL=
XJTUANA_WS_SMS_USER=
XJTUANA_WS_SMS_PWD=
XJTUANA_API_NETWORKLOG_URL=
XJTUANA_API_SMS_URL=
XJTUANA_API_SMS_ACCOUNT_ID=
XJTUANA_API_SMS_ACCOUNT_KEY=
XJTUANA_API_SMS_CHANNEL_ID=