Download the PHP package tao2581/ucclient without Composer
On this page you can find all versions of the php package tao2581/ucclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tao2581/ucclient
More information about tao2581/ucclient
Files in tao2581/ucclient
Package ucclient
Short Description uc_client for Laravel5, Based on MyController/ucclient
License MIT
Homepage https://github.com/mycontroller/ucclient
Informations about the package ucclient
UCClient for Laravel5
本项目基于 MyController/ucclient 做了一点儿微小的升级,感谢 wehnhew !
增加注册账号时同步额外用户属性
- role 用户角色
- domain_user 域用户名
- meta json 格式自定义信息 如: {student_number: 1002} 学号
安装
配置
在 /config/app.php
文件中找到 providers
键,
在 /config/app.php
文件中找到 aliases
键,
如果想自定义配置, 可以运行以下命令将配置文件复制到 /config/uc-client.php
, 之后就可以方便的自定义了
使用
例如:获取用户名为wen的信息
关于SSO登录注销
您需要自己实现 UCenterSSOContract 接口, 并将 UCenterSSOContract的具体实现类 绑定至 UCenterSSOContract 接口。
例如可以实现:
然后在 App\Providers\AppServiceProvider 的 register方法 里增加:
避免开启了 barryvdh/laravel-debugbar 插件后影响 UCenterAPI 的输出结果
您需要自己实现 UCenterAPIExecuteFilterContract 接口, 并将 UCenterAPIExecuteFilterContract的具体实现类 绑定至 UCenterAPIExecuteFilterContract 接口。
例如可以实现:
然后在 App\Providers\AppServiceProvider 的 register方法 里增加:
License
MIT
All versions of ucclient with dependencies
illuminate/http Version 5.1.* || 5.2.* || 5.3.*
illuminate/routing Version 5.1.* || 5.2.* || 5.3.*
illuminate/session Version 5.1.* || 5.2.* || 5.3.*
illuminate/support Version 5.1.* || 5.2.* || 5.3.*