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

ActiveLibrary

cblink/pospal
=============

v0.2.0(4y ago)0627MITPHP

Since May 24Pushed 4y agoCompare

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

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

pospal
======

[](#pospal)

银豹收银系统 SDK

安装
--

[](#安装)

```
composer require hanson/pospal:dev-master

```

文档
--

[](#文档)

### 实例化

[](#实例化)

```
$pospal = new \Hanson\Pospal\Pospal([
    'url' => 'your-url',
    'app_id' => 'your-app-id',
    'app_key' => 'your-app-key',
]);
```

### 销售单据 API

[](#销售单据-api)

#### 单据实例

[](#单据实例)

```
$ticket = $pospal->ticket;
```

#### 查询支付方式代码

[](#查询支付方式代码)

```
$result = $ticket->allPayMethod();
```

#### 根据单据序列号查询

[](#根据单据序列号查询)

```
$result = $ticket->query($sn);
```

#### 分页查询所有单据

[](#分页查询所有单据)

```
$result = $ticket->paginate([
   'startTime' => '2017-09-25 01:59:59',
   'endTime' => '2017-09-25 23:59:59',
]);
```

#### 查询所有单据

[](#查询所有单据)

此 API 需要传入匿名函数

```
// 默认查询昨天
$result = $ticket->all([], function ($tickets) {
    foreach($tickets as $ticket) {
        echo $ticket['sn'];
    }
});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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

Every ~128 days

Total

2

Last Release

1691d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a33f3d22f7c5ba81df984215eda327fe21f224f59a8a8cb404138042ec9f788?d=identicon)[overnic](/maintainers/overnic)

---

Top Contributors

[![Hanson](https://avatars.githubusercontent.com/u/10583423?v=4)](https://github.com/Hanson "Hanson (6 commits)")[![0daynick](https://avatars.githubusercontent.com/u/17755109?v=4)](https://github.com/0daynick "0daynick (1 commits)")

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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