定制 salamek/zasilkovna 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salamek/zasilkovna

最新稳定版本:4.1.0

Composer 安装命令:

composer require salamek/zasilkovna

包简介

Zasilkovna SOAP and REST client in PHP

README 文档

README

Integrity check Donate

This library provides SOAP and REST API implementations. Additionaly Branch implementation to fetch and store branch data and label implementation to generate labels.

Installation

Install salamek/zasilkovna using Composer

$ composer require salamek/zasilkovna

or if you want master branch code:

$ composer require salamek/zasilkovna

Documentation

See http://www.zasilkovna.cz/popis-api/ for more info

Example code

require "vendor/autoload.php"; $api = new Salamek\Zasilkovna\ApiRest($apiKey); // OR Soap implementation $api = new Salamek\Zasilkovna\ApiSoap($apiKey); $branch = new Branch($apiKey, new BranchStorageSqLite()); // There are multiple implementations of IBranchStorage BranchStorageSqLite using SQLite, BranchStorageFile using file in /tmp and BranchStorageMemory using simple variable (SLOW), You can implement your own by implementing IBranchStorage interface $label = new Label($api, $branch); // To greate new packet $transporterPackage = new PacketAttributes( 'ORDERID', 'FirstName', 'LastName', null, 'addressId', null, 'Company', 'Email', 'Phone', null, null, null, 'www', false, 'Street', 'StreetNumber', 'City', 'ZipCode' ); $api->createPacket($transporterPackage); // Generate A4 label $label->generateLabelFull($pdf, $transporterPackage); // Generate A2 label $label->generateLabelQuarter($pdf, $transporterPackage); // Get full branch list as array $branch->getBranchList(); // Returns branch detail by ID $branch->find($branchId);

统计信息

  • 总下载量: 53.18k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 6
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 21
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2026-01-04