Download the PHP package noxue/ucenter without Composer
On this page you can find all versions of the php package noxue/ucenter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download noxue/ucenter
More information about noxue/ucenter
Files in noxue/ucenter
Download noxue/ucenter
More information about noxue/ucenter
Files in noxue/ucenter
Please rate this library. Is it a good library?
Informations about the package ucenter
discuz Ucenter 集成 laravel5.5
说明:本项目在 https://github.com/binaryoung/ucenter 项目的基础上做了修改。
原项目,接口路由地址问题,在做同步登陆的时候不能用session,所以做了修复
运行命令:
composer require noxue/ucenter
安装完后,在 app/config/app.php
文件中找到 providers
键,
'providers' => [
'Noxue\Ucenter\UcenterServiceProvider'
]
找到 aliases
键,
'aliases' => [
'Ucenter' => 'Noxue\Ucenter\Facades\Ucenter'
]
配置文件
运行以下命令发布配置文件
创建 config/ucenter.php
写入以下内容:
路由
在routes/web.php
中写入:
Ucenter::routes();
这个会添加一个api地址,用于同步登陆和退出
使用
例如:获取用户名为admin的信息
$result = Ucenter::uc_get_user('admin');
var_dump($result);
有任何疑问请到此处提问:http://www.noxue.com/f-wenda-1.html
联系我
有问题,请提交issue
All versions of ucenter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package noxue/ucenter contains the following files
Loading the files please wait ....