dealer-venom/passworks-php
Composer 安装命令:
composer require dealer-venom/passworks-php
包简介
Client for Passworks API allowing the creating of Apple Passbook/Wallet content
README 文档
README
Passworks PHP API client can be installed via Composer or PHAR file. (Composer is the recommended method for using Passworks API client).
Installing using Composer
The API client can be installed through Composer. It's been made available as a Packagist package, available here. In order to use it, first add a file named composer.json in your project root:
{ "require": { "passworks/passworks-php": "2.0.0" } }
Once the composer.json file is created, you need to download the composer.phar executable. To do so, run the following curl command on your console of choice:
curl -sS https://getcomposer.org/installer | php
Now you can run the composer install for the initial package install and composer update to update to the latest version of the API client, which is linked to the master branch.
php composer.phar install
Now you're set to go! Just include the following file and you're good to go.
require 'vendor/autoload.php';
Installation using the PHAR file
Download the lastest version of Passworks.phar and require it as usual.
include 'Passworks.phar';
Example
<?php require 'vendor/autoload.php'; use Passworks\Client; // Instantiate the Passworks client $api = new Passworks\Client('your api username', 'your api key'); // upload a asset (background image) $api->createAsset('background', '/local-path-to-a-image/image.png'); // Fetch the asset list $assets = $api->getAssets(); // Iterate through asset list foreach($assets as $asset) { print_r($asset); }
More Examples:
Creating, Listing and Editing Coupons
Creating, Listing and Editing Event Tickets
Creating, Listing and Editing Boarding Passes
Creating, Listing and Editing Store Cards
Creating, Listing and Editing Generic Passes
Documentation
For more information about the API please please refere to https://github.com/passworks/passworks-api
For more examples about the PHP client try browsing the wiki
Help us make it better
Please tell us how we can make the PHP client better. If you have a specific feature request or if you found a bug, please use GitHub issues. Fork these docs and send a pull request with improvements.
To talk with us and other developers about the API open a support ticket or mail us at api at passworks.io if you need to talk to us.
dealer-venom/passworks-php 适用场景与选型建议
dealer-venom/passworks-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 265 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「apple」 「passbook」 「wallet」 「passworks」 「passkit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dealer-venom/passworks-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dealer-venom/passworks-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dealer-venom/passworks-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Generate Apple Wallet (previously Passbook) compatible tickets from PHP
iOS Passbook for Symfony
A Laravel package to create Apple Wallet (old Passbook) compatible tickets.
The BlockTrail PHP SDK, for integration of Bitcoin functionality through the BlockTrail API
Generate Apple Passbooks from your Symfony application
A simple library to decode and parse Apple Sign In client tokens.
统计信息
- 总下载量: 265
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-23