PHPackages                             ledc/pospal - 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. ledc/pospal

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

ledc/pospal
===========

Pospal银豹收银系统开放平台非官方SDK

v7.0.2(1y ago)05MITPHPPHP &gt;=7.4

Since Sep 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ledccn/ledc-pospal)[ Packagist](https://packagist.org/packages/ledc/pospal)[ RSS](/packages/ledc-pospal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Pospal银豹收银系统开放平台非官方SDK
======================

[](#pospal银豹收银系统开放平台非官方sdk)

安装
--

[](#安装)

`composer require ledc/pospal`

使用
--

[](#使用)

开箱即用，只需要传入一个配置，初始化一个实例即可：

```
use Ledc\Pospal\Certificate;
use Ledc\Pospal\CustomerApi;

$config = [
    'appId' => '银豹appId',
    'appKey' => '银豹appKey',
    'urlPrefix' => '银豹接口地址前缀',
];
$certificate = new Certificate($config);
$customerApi = new CustomerApi($certificate);
```

在创建实例后，所有的方法都可以有IDE自动补全；例如：

```
//添加会员
$customerApi->add();
//根据会员号查询会员
$customerApi->queryByNumber();
//根据会员手机号查询会员
$customerApi->queryByTel();
//根据会员在银豹系统的唯一标识查询
$customerApi->queryByUid();
//修改会员密码
$customerApi->updatePassword();
//修改会员余额积分
$customerApi->updateBalancePointByUid();
```

二次开发
----

[](#二次开发)

配置与凭证类：`Ledc\Pospal\Certificate`银豹请求客户端：`Ledc\Pospal\HttpClient`银豹响应类：`Ledc\Pospal\HttpResponse`

你可以继承`Ledc\Pospal\Certificate`或`Ledc\Pospal\HttpClient`，扩展您需要的功能。

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

官方文档
----

[](#官方文档)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

3

Last Release

597d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (3 commits)")

### Embed Badge

![Health badge](/badges/ledc-pospal/health.svg)

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

###  Alternatives

[eadesigndev/module-fullbreadcrumbs

Full breadcrumbs for product page

223.9k](/packages/eadesigndev-module-fullbreadcrumbs)

PHPackages © 2026

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