tinymeng/oauth
Composer 安装命令:
composer require tinymeng/oauth
包简介
wechat sina qq alipay twitter google line facebook oauth
README 文档
README
After developing multiple QQ and WeChat logins, it is natural to develop an aversion. Inertia has returned and I want to search for relevant wheels online, but I have never found a one that I feel satisfied with. Either it is too difficult to understand when using, or the file structure is too messy, so I have to roll up my sleeves and do it myself.
!!Please familiarize yourself with the Oauth/QQ/WeChat documentation first!! Please have basic debugging skills !!
Welcome Star, welcome PR !
If you have any questions to communicate, please post them here : OAuth2 exchange Or Send an email 666@majiameng.com
Integrating many third party login interfaces, including qq-login、wx-login、sina-login、github-login、alipay-login、aliyum-login、douyin-login and so on
集成了许多第三方登录界面,包括QQ登录、微信登录、新浪登录、github登录、支付宝登录、百度登录、抖音登录、GitLab、Naver、Line、codeing、csdn、gitee等,陆续增加ing
Documentation
You can find the tinymeng/oauth documentation on the website. Check out the Getting Started page for a quick overview.
- Wiki Home
- Getting Started
- Installation
- Configuration
- Contributing Guide
- Update log
- Complete demo example
- 中文文档
General third-party login instructions document
Domestic Platforms
| Gateways | Login Name | Login Method |
|---|---|---|
| Tencent QQ | PC Scan Code, APP | |
| PC, Official Account, Mini Program, APP | ||
| wecom | WeCom | PC, APP |
| sina | Sina Weibo | PC, APP |
| alipay | Alipay | PC, APP |
| aliyun | Alibaba Cloud | PC |
| baidu | Baidu | PC |
| douyin | Douyin | PC, APP |
| toutiao | Toutiao | PC, APP |
| xigua | Xigua Video | PC, APP |
| dingtalk | DingTalk | PC, APP |
| xiaomi | Xiaomi | PC, APP |
| huawei | Huawei | PC, APP |
Development Platforms
| Gateways | Login Name | Login Method |
|---|---|---|
| github | GitHub | PC |
| gitlab | GitLab | PC |
| gitee | Gitee | PC |
| coding | Coding | PC |
| oschina | OSChina | PC |
| csdn | CSDN | PC |
International Platforms
| Gateways | Login Name | Login Method |
|---|---|---|
| PC | ||
| PC | ||
| PC | ||
| line | Line | PC |
| naver | Naver | PC |
| amazon | Amazon | PC |
| apple | Apple | PC, APP |
| yahoo | Yahoo | PC |
| microsoft | Microsoft | PC |
Notes:
- International platforms like Google, Facebook, and Twitter require overseas or Hong Kong servers for successful callback
- Some platforms support multiple authorization methods, such as PC web authorization and APP authorization
- Please read the corresponding platform's development documentation and complete developer qualification certification before use
Installation
composer require tinymeng/oauth:^2.0.0 -vvv
The namespace used by the class library is
\\tinymeng\\oauth
目录结构
.
├── example 示例代码目录
│ ├── config 配置示例
│ │ └── params.php 参数配置示例
│ ├── oauth2.php OAuth2 使用示例
│ ├── demo OAuth2 使用demo带html 示例
│ ├── proxy 代理相关示例
│ │ └── wx_proxy.php 微信多域名代理 PHP 版本
│ └── weixin-authorize-proxy.html 微信多域名代理 HTML 版本(推荐)
├── src 源代码目录
│ ├── Connector 连接器基类目录
│ │ ├── Gateway.php 必须继承的抽象基类
│ │ └── GatewayInterface.php 必须实现的接口
│ ├── Exception 异常处理目录
│ │ └── OAuthException.php OAuth 异常类
│ ├── Gateways 各平台授权实现目录
│ │ ├── Alipay.php 支付宝授权
│ │ ├── Aliyun.php 阿里云授权
│ │ ├── Baidu.php 百度授权
│ │ ├── Coding.php Coding 授权
│ │ ├── Csdn.php CSDN 授权
│ │ ├── Douyin.php 抖音授权
│ │ ├── Facebook.php Facebook 授权
│ │ ├── Gitee.php Gitee 授权
│ │ ├── Github.php GitHub 授权
│ │ ├── Gitlab.php GitLab 授权
│ │ ├── Google.php Google 授权
│ │ ├── Line.php Line 授权
│ │ ├── Naver.php Naver 授权
│ │ ├── Oschina.php OSChina 授权
│ │ ├── Qq.php QQ 授权
│ │ ├── Sina.php 新浪微博授权
│ │ ├── Twitter.php Twitter 授权
│ │ └── Wechat.php 微信授权
│ ├── Helper 辅助类目录
│ │ ├── ConstCode.php 公共常量定义
│ │ └── Str.php 字符串辅助类
│ └── OAuth.php OAuth 工厂类
├── tests 测试目录
│ └── OAuthTest.php OAuth 测试类
├── composer.json Composer 配置文件
├── LICENSE MIT 开源协议
└── README.md 说明文档
Contributors
Thanks for your contribution to the project!
Star History
tinymeng/oauth 适用场景与选型建议
tinymeng/oauth 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 457 次下载、GitHub Stars 达 79, 最近一次更新时间为 2018 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「login」 「tinymeng」 「oauth-login」 「qq-login」 「wx-login」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tinymeng/oauth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tinymeng/oauth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tinymeng/oauth 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
WeChat OAuth SDK
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
yii2 use solr
A Silverstripe module to allow you to log into any of your Silverstripe sites from one place.
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Contao 4 bundle for a Facebook login.
统计信息
- 总下载量: 457
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 81
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-09