PHPackages                             rieon/crawler-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rieon/crawler-oauth

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

rieon/crawler-oauth
===================

an oauth login lib for a web crawler

v0.0.1(9y ago)18MITPHP

Since Sep 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rieonke/CrawlerOauth)[ Packagist](https://packagist.org/packages/rieon/crawler-oauth)[ RSS](/packages/rieon-crawler-oauth/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CrawlerOauth
============

[](#crawleroauth)

an php oauth lib for web crawler

用途
--

[](#用途)

在爬取一个只有第三方Oauth登陆的网站时，通常需要扫码登陆，这是一个比较繁琐的过程，这个包为你解决了这个问题。

支持的Oauth服务提供商
-------------

[](#支持的oauth服务提供商)

- 微信 (new Rieon\\CrawlerOauth\\Weixin)
- 微博 (new Rieon\\CrawlerOauth\\Weibo)
- 更多正在路上了~~~

正确食用方法
------

[](#正确食用方法)

- 安装这个包

```
composer require rieon/crawler-oauth

```

- 引入并实例化(以微博为例)

```
use Rieon\CrawlerOauth\Weibo;

$weibo = new Weibo('Oauth请求地址', '二维码保存目录');

```

- 得到Cookies

```
$weibo->cookies()

```

额外:
---

[](#额外)

- 获得二维码路径

```
$weibo->qrcode();

```

- 获得二维码图像

```
$weibo->qrcode(true);

```

- 参数说明

> Oauth请求地址: Oauth客户端的地址，重定向到Oauth服务器之前的那个地址
>
> 二维码保存目录即为Oauth登陆时扫描二维码的保存目录，相对绝对

例子
--

[](#例子)

在 `example`目录中有一个index.php

```
浏览器中访问或者bash中执行php inde.php 之后扫描目录下的二维码即可得到cookies

```

方法
--

[](#方法)

- cookies() 获得cookies
- qrcode() 获得二维码路径
- qrcode(true) 获得二维码图像

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3589d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9777157db23694bab2e00b1a5e2d457799887b796e0238fc33b12f6c690ad39f?d=identicon)[rieon](/maintainers/rieon)

---

Top Contributors

[![rieonke](https://avatars.githubusercontent.com/u/15796994?v=4)](https://github.com/rieonke "rieonke (2 commits)")

### Embed Badge

![Health badge](/badges/rieon-crawler-oauth/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.6M90](/packages/overtrue-socialite)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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