PHPackages                             aimer/auxpi - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aimer/auxpi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aimer/auxpi
===========

A auxpi ADK.

0.01(6y ago)1212MITPHP

Since Jun 17Pushed 6y agoCompare

[ Source](https://github.com/aimerforreimu/auxpi-php-sdk)[ Packagist](https://packagist.org/packages/aimer/auxpi)[ RSS](/packages/aimer-auxpi/feed)WikiDiscussions master Synced 3d ago

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

 auxpi
=======

[](#-auxpi-)

 A auxpi ADK.

安装
--

[](#安装)

```
$ composer require aimer/auxpi -vvv
```

使用
--

[](#使用)

你可以在 `src/index.php` 找到实例代码

### 上传图片

[](#上传图片)

```
use Aimer\Auxpi\Api;

include_once "../vendor/autoload.php";

$url = "http://你的图床/api/";
$token = "你的 Token";
$api = new Api($url, $token);
$v1 = $api->uploadImageV1('sougou '123.png');
$v2 = $api->uploadImageV2('123.png');

echo 'Version 1 Link:'.  $v1['data']['url']. "\r\n";
echo 'Version 2 Link:'. $v2['data']['url'] . "\r\n";
```

`uploadImageV1($select,$path)` 方法可以上传到指定图床其中`$select` 为要进行上传的图床，`$path` 为图片的存储路径。返回一个数组，格式如下:

```
array(3) {
  ["code"]=>
  int(200)
  ["msg"]=>
  string(2) "ok"
  ["data"]=>
  array(3) {
    ["delete"]=>
    string(0) ""
    ["name"]=>
    string(7) "123.png"
    ["url"]=>
    string(71) "https://cy-pic.kuaizhan.com/g3/8a/79/3e25-c3f6-4d59-8e73-caa980b87f2d51"
  }
}

```

`uploadImageV2($path)` 方法是上传图片到你的服务器，并且获取分发链接，具体上传到那个图床由你的服务器决定。返回一个数组，格式如下:

```
array(3) {
  ["code"]=>
  int(200)
  ["msg"]=>
  string(2) "ok"
  ["data"]=>
  array(2) {
    ["name"]=>
    string(7) "123.png"
    ["url"]=>
    string(66) "https://test.demo-1s.com/dispatch/46a13a9329ff4e2fc60e8e0d46b7c5cc"
  }
}

```

`$select` 的可选值如下

```
sougou # 搜狗图床
sina   # 新浪图床
smms   #smms 图床
cc     #upload.cc
flickr #flickr
imgur  #imgur
prnt   #prnt
neteasy #网易
jd      #京东
juejin  #掘金
ali     #阿里
local   #本地
suning  #苏宁
xiaomi  #小米
vim     #Vim-CN
ooxx    #OOXX
souhu   #搜狐
github  #Github
toutiao #头条
gitee   #gitee

```

### 运行示例代码

[](#运行示例代码)

```
cd src
php index.php
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/aimer/auxpi/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/aimer/auxpi/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

2524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74f92b4547c0483a0eeed0794cd1c42fdc8a286250b548dfa40b4dc7149d30ce?d=identicon)[aimer](/maintainers/aimer)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aimer-auxpi/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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