PHPackages                             joyboo/curl-oauth - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. joyboo/curl-oauth

ActiveLibrary[HTTP &amp; Networking](/categories/http)

joyboo/curl-oauth
=================

curl oauth component

v2.0.3(4y ago)29Apache-2.0PHPPHP &gt;=7.1.0

Since Jun 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Joyboo/curl-oauth)[ Packagist](https://packagist.org/packages/joyboo/curl-oauth)[ RSS](/packages/joyboo-curl-oauth/feed)WikiDiscussions master Synced 3w ago

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

o-auth
======

[](#o-auth)

介绍
--

[](#介绍)

基于`curl`对第三方登录授权的SDK。

安装
--

[](#安装)

```
composer require joyboo/curl-oauth

```

代码
--

[](#代码)

公共的方法：

- `getAuthUrl()` 获取授权地址
- `getAccessToken($storeState = null, $state = null, $code = null)` 获取AccessToken（只返回access\_token）
- `getAccessTokenResult()` 执行`getAccessToken`方法后，此方法获取原结果
- `getUserInfo(string $accessToken)` 获取用户信息
- `validateAccessToken(string $accessToken)` 验证token是否有效
- `refreshToken(string $refreshToken = null)` 刷新token 返回`bool`
- `getRefreshTokenResult()` 执行`refreshToken`方法后，此方法获取原结果

示例代码
----

[](#示例代码)

[微信](./examples/WeiXin.php)

[QQ](./examples/QQ.php)

[微博](./examples/Weibo.php)

[支付宝](./examples/AliPay.php)

[Github](./examples/Github.php)

[Gitee](./examples/Gitee.php)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~82 days

Total

6

Last Release

1787d ago

Major Versions

1.0.2 → v2.02021-08-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c1380e303b035eea96cbf01e1ed85ac84d28b5063f0ad0507f54ca9b147f77e?d=identicon)[Joyboo](/maintainers/Joyboo)

---

Top Contributors

[![Player626](https://avatars.githubusercontent.com/u/44792981?v=4)](https://github.com/Player626 "Player626 (26 commits)")[![Joyboo](https://avatars.githubusercontent.com/u/35485279?v=4)](https://github.com/Joyboo "Joyboo (8 commits)")[![kiss291323003](https://avatars.githubusercontent.com/u/24490609?v=4)](https://github.com/kiss291323003 "kiss291323003 (5 commits)")

---

Tags

alipaycurldingtalkgiteegithubloginoauth2qqwechatweibo

### Embed Badge

![Health badge](/badges/joyboo-curl-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/joyboo-curl-oauth/health.svg)](https://phpackages.com/packages/joyboo-curl-oauth)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
