PHPackages                             linghitai/platform-php-sdk - 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. linghitai/platform-php-sdk

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

linghitai/platform-php-sdk
==========================

platform-php-sdk

v1.0.3(6y ago)017.0k—1.3%PHPPHP &gt;=5.6CI failing

Since Nov 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linghitai/platform-php-sdk)[ Packagist](https://packagist.org/packages/linghitai/platform-php-sdk)[ RSS](/packages/linghitai-platform-php-sdk/feed)WikiDiscussions master Synced yesterday

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

how to use
----------

[](#how-to-use)

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令

```
$ composer require linghitai/platform-php-sdk
```

使用方法
----

[](#使用方法)

### 举例手相服务的HandClient类

[](#举例手相服务的handclient类)

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

use LinghitAi\PlatformPhpSdk\HandClient;

//$ak,$sk 在AI平台控制台进行申请
//$timeout默认60s可不传，单位为秒
$client = new HandClient($ak, $sk,$timeout);

//提供2种方式上传（1.Base64，2.图片url）

//1.使用图片的$base64编码进行调用,如果使用表单或者其他方式上传图片的，需要获取图片的base64
$bas64 = "data:image\jpg;base64......"；
$res = $client->handRecognitionByBase64($bas64);

//2.使用图片地址上传
$url = "https://....";
$res = $client->handRecognitionByUrl($url);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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 ~1 days

Total

3

Last Release

2411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e035d758e3b382602826e1703195f26c925deefa6c657be5186e57fb6d29273?d=identicon)[linghitai](/maintainers/linghitai)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linghitai-platform-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/linghitai-platform-php-sdk/health.svg)](https://phpackages.com/packages/linghitai-platform-php-sdk)
```

###  Alternatives

[samrap/gestalt

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

163.6k3](/packages/samrap-gestalt)

PHPackages © 2026

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