GithubHelp home page GithubHelp logo

hyperzlib / thinkphp5-ucenter-interface Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 5.0 53 KB

UCenter client api for thinkphp5 (new)

License: MIT License

PHP 100.00% HTML 0.01%
ucenter thinkphp thinkphp5 discuz

thinkphp5-ucenter-interface's Introduction

thinkphp5 UCenter 接口

基于 https://github.com/d8q8/UCenter 改造 在原项目基础上完善某些接口并修复bug,同时添加了PHP7的支持

用法

把UCenter目录复制到thinkphp的扩展目录(extend),并添加一个控制器,继承UCenter\Controller\ApiController

UCenter后台配置:

1.进入UCenter用户中心后台
2.找到左侧菜单[应用管理]
3.点击[添加新应用]按钮
4.进入新应用界面[应用类型]选择[其他]
5.[应用名称]这里可以取个好记的名字
6.[应用的主URL]这里填写[http://域名|IP:PORT/你的控制器]
7.[通信密钥]可以填写自己的密钥,不填写保存后会自动生成
8.[是否开启同步登录/是否接受通知]选择[是]单选按钮
9.保存成功后,返回[应用列表]后[通信情况]是红色的[通信失败]
10.进入编辑,把UCenter后台生成的配置文件拷贝到UCenter模块的Conf目录中的config.php文件中保存即可
11.再次保存后,返回应用列表会变成绿色的[通信成功]字样
12.如果ucenter未接收到应用列表同步,可以进入应用->编辑->保存,即可收到ucenter的同步数据

感谢

原作者 d8q8

thinkphp5-ucenter-interface's People

Contributors

dtpark avatar hyperzlib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

thinkphp5-ucenter-interface's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.