PHPackages                             starryseer/apple - 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. starryseer/apple

ActiveLibrary

starryseer/apple
================

a extension of easyswoole on apple pay

00PHP

Since Feb 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/starryseer/apple)[ Packagist](https://packagist.org/packages/starryseer/apple)[ RSS](/packages/starryseer-apple/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 apple
=======

[](#-apple-)

 基于easyswoole的苹果集成组件，包含了苹果登录和苹果支付.

Installing
----------

[](#installing)

```
$ composer require starryseer/apple
```

Usage
-----

[](#usage)

```
    订单凭证验证

    function orderReceipt()
    {
        //客户端传入的凭证
        $receipt = '';
        //实例化配置文件
        $config = new \Starryseer\Apple\Config();
        //设置环境 正式服 NORMAL 测试服 SANDBOX
        $config->setGateway(\Starryseer\Apple\GateWay::SANDBOX);

        //实例化订单信息
        $order = new \Starryseer\Apple\Pay\Order();
        //在订单内设置凭证，如果没有base64_dencode,则参数传入encry=>true
        $order->setReceipt($receipt,true);

        //实例化苹果对象
        $apple= new \Starryseer\Apple\Apple($config);
        //调用orderReceipt方法获取订单信息
        $response = $apple->orderReceipt($order,10);

    }
```

```
    用户登录验证

    function userVerify()
    {
        //客户端传入的token
        $identityToken = '';
        //用户id
        $clientUser = '';
        //实例化配置文件
        $config = new \Starryseer\Apple\Config();
        //设置环境 正式服 NORMAL 测试服 SANDBOX
        $config->setGateway(\Starryseer\Apple\GateWay::SANDBOX);

        //实例化订单信息
        $user = new \Starryseer\Apple\Login\User();
        //在订单内设置凭证，如果没有base64_dencode,则参数传入encry=>true
        $user->setClientUser($clientUser);
        $user->setIdentityToken($identityToken);

        //实例化苹果对象
        $apple= new \Starryseer\Apple\Apple($config);
        //调用userVerify方法，验证成功返回true，失败返回false
        $res = $apple->userVerify($user,10);

    }
```

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

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/starryseer/apple/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/starryseer/apple/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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbc7e61eb16d869c8ff7cdfa806e66f181b833227e92d44eede7cfe68064fc4a?d=identicon)[starryseer](/maintainers/starryseer)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/starryseer-apple/health.svg)

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

PHPackages © 2026

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