Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork20
Zasilkovna.cz PHP library supporting SOAP and REST API + custom Label generator
License
Salamek/zasilkovna
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This library provides SOAP and REST API implementations.Additionaly Branch implementation to fetch and store branch data and label implementation to generate labels.
Install salamek/zasilkovna usingComposer
$ composer require salamek/zasilkovna
or if you want master branch code:
$ composer require salamek/zasilkovna
Seehttp://www.zasilkovna.cz/popis-api/ for more info
require"vendor/autoload.php";$api =newSalamek\Zasilkovna\ApiRest($apiPassword,$apiKey);// OR Soap implementation $api = new Salamek\Zasilkovna\ApiSoap($apiPassword, $apiKey);$branch =newBranch($apiKey,newBranchStorageSqLite());// 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 =newLabel($api,$branch);// To greate new packet$transporterPackage =newPacketAttributes('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);
About
Zasilkovna.cz PHP library supporting SOAP and REST API + custom Label generator
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.