PHPackages                             soxft/openidsdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. soxft/openidsdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

soxft/openidsdk
===============

sdk of x openID

v1.1.2(1y ago)1101Apache-2.0PHPPHP &gt;=7.1

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/soxft/openID-sdk-php)[ Packagist](https://packagist.org/packages/soxft/openidsdk)[ RSS](/packages/soxft-openidsdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (7)DependenciesVersions (13)Used By (0)

openIdSdk
=========

[](#openidsdk)

> sdk of x openId

使用方法
====

[](#使用方法)

下载sdk
-----

[](#下载sdk)

> 目前仅提供php sdk, 支持php 7+,php 8

- 使用Git:
- 使用Composer: composer require soxft/openidsdk

使用sdk
-----

[](#使用sdk)

在`v1 API`中, 您可以在您的网站上添加一个按钮或图标跳转至我们的授权接口获取`token`, 验证用户身份后, 将自动携带token跳转至您的回调地址.

对于使用 composer 引入`sdk`后, 我们可以尝试通过以下方法跳转至授权界面:

```
