PHPackages                             polarthink/submit - 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. [API Development](/categories/api)
4. /
5. polarthink/submit

ActiveLibrary[API Development](/categories/api)

polarthink/submit
=================

搜索引擎收录接口封装

v0.1(6y ago)265[2 issues](https://github.com/polarthink/submit/issues)[2 PRs](https://github.com/polarthink/submit/pulls)PHP

Since Dec 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/polarthink/submit)[ Packagist](https://packagist.org/packages/polarthink/submit)[ RSS](/packages/polarthink-submit/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

提交搜索引擎收录

- 百度
- 谷歌
- 360搜索
- 搜狗

### 安装

[](#安装)

```
composer require polarthink/submit

```

### 创建一个提交对象

[](#创建一个提交对象)

```
require_once './vendor/autoload.php';

use submit\Baidu;

$baidu = new Baidu([
    'target' => 'your domain',
    'token'  => 'your token',
]);

$baidu->submit('http://xxx...');
```

### 也支持链式调用

[](#也支持链式调用)

```
require_once './vendor/autoload.php';

use submit\Baidu;

$baidu = new Baidu;

$baidu->target('your domain')->token('your token')->submit('your url');
```

### 提交结果

[](#提交结果)

```
use submit\Types;

$res = $object->submit($url);
switch ($res) {
    case Types::SUCCESS:
        echo '成功';
        break;
    case Types::ERROR_REQUEST:
        echo '请求错误';
        break;
    case Types::ERROR_RESPONSE;
        echo '返回错误';
        break;
    case Types::ERROR_SUBMIT:
        echo '提交错误';
        break;
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

2337d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59154788?v=4)[polarthink](/maintainers/polarthink)[@polarthink](https://github.com/polarthink)

---

Top Contributors

[![xiaoqingping](https://avatars.githubusercontent.com/u/19622268?v=4)](https://github.com/xiaoqingping "xiaoqingping (2 commits)")[![polarthink](https://avatars.githubusercontent.com/u/59154788?v=4)](https://github.com/polarthink "polarthink (1 commits)")

### Embed Badge

![Health badge](/badges/polarthink-submit/health.svg)

```
[![Health](https://phpackages.com/badges/polarthink-submit/health.svg)](https://phpackages.com/packages/polarthink-submit)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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