Download the PHP package kylin987/zzb-sdk-php without Composer

On this page you can find all versions of the php package kylin987/zzb-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zzb-sdk-php

zzb-sdk-php

已弃用 — 本包已拆分为两个独立包,不再维护新功能。

迁移说明

本包原有的双模式(legacy + netsale2025)已按业务职责拆分为两个独立 SDK:

旧包 新包 用途
kylin987/zzb-sdk-php (legacy 模式) kylin987/zzb-ticket-sdk 购票交易:影院 / 影厅 / 场次 / 座位查询、锁座、下单、退票
kylin987/zzb-sdk-php (netsale2025 模式) kylin987/netsale-report-sdk 票房上报:售票 / 退票上报、数据比对文件下载

为什么拆分

  1. 业务无重合:legacy 模式用于购票流程(查询 / 交易),netsale2025 模式用于正式票房上报,两者签名方式、证书格式、接口地址完全不同。
  2. 依赖清晰:只需上报能力的项目不必引入查询 / 交易代码和 PFX 证书解析逻辑。
  3. 独立演进:两个协议各自迭代,互不影响。

迁移步骤

1. 替换依赖

2. 命名空间替换

旧命名空间 新命名空间 所属包
ZzbSdk\ZzbService ZzbTicketSdk\ZzbTicketService zzb-ticket-sdk
ZzbSdk\Config ZzbTicketSdk\Config zzb-ticket-sdk
ZzbSdk\Exception\ZzbException ZzbTicketSdk\Exception\ZzbTicketException zzb-ticket-sdk
ZzbSdk\Model\* ZzbTicketSdk\Model\* zzb-ticket-sdk
ZzbSdk\ZzbService (netsale2025) NetsaleReportSdk\NetsaleReportClient netsale-report-sdk
ZzbSdk\Config (netsale2025) NetsaleReportSdk\Config netsale-report-sdk
ZzbSdk\Model\ZzbTicket NetsaleReportSdk\Model\ReportTicket netsale-report-sdk
ZzbSdk\Model\ZzbResult NetsaleReportSdk\Model\ReportResult netsale-report-sdk
ZzbSdk\Signer\VstkSignerInterface NetsaleReportSdk\Signer\VstkSignerInterface netsale-report-sdk

3. 配置变更

购票 / 交易(zzb-ticket-sdk):

票房上报(netsale-report-sdk):

4. 方法变更

购票 / 交易包保留了所有查询和交易方法,以及 legacy 模式的上报方法:

上报包只保留两个方法:

旧包中的混合模式方法(reportTicketByLockOrderId、refundReportTicketByLockOrderId 等"先查单再上报"的方法)不再包含在上报包中,由业务层自行编排查询和上报。

旧版本归档

旧包的最后版本为 v2.0.4,已归档在此仓库中。如果需要回退,可以使用:

但不建议长期使用旧包,新包的代码更清晰、依赖更少。

License

MIT


All versions of zzb-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-openssl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kylin987/zzb-sdk-php contains the following files

Loading the files please wait ...