Skip to content

Salamek/PplMyApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

718a100 · Aug 8, 2024
Nov 23, 2021
Aug 17, 2016
Mar 3, 2022
Jun 29, 2024
Nov 9, 2023
Jun 28, 2017
Jun 29, 2024
Aug 17, 2016
Jan 10, 2018
Aug 8, 2024
Feb 18, 2022
Aug 5, 2021

Repository files navigation

Warning

This project is deprecated and no new features will be implemented due to PPL pushing out new (and better designed) REST based API (MyApi2) so if you are implementing new PPL integration please use MyApi2 for example ~implemented by https://github.com/szymsza/php-ppl-create-package-label-api (this project is not drop-in replacement for PplMyApi and is missing some features but it is good building block to start)

Professional Parcel Logistic MyApi client in PHP with PDF and ZPL label generator

Test status Donate

Please consider sponsoring if you're using this package commercially, my time is not free :) You can sponsor me by clicking on "Sponsor" button in top button row. Thank You./Prosím pouvažujte nad sponzorováním tohoto projektu pokud používáte tento projekt komerčně, můj čas není zadarmo :) Sponzorovat můžete kliknutím na tlačítko "Sponsor" v horní řadě tlačítkek. Děkuji.

Professional Parcel Logistic MyApi client in PHP with PDF and ZPL label generator

Requirements

  • PHP 7.3 or higher

Installation

Install salamek/PplMyApi using Composer

$ composer require salamek/ppl-my-api

or if you want master branch code:

$ composer require salamek/ppl-my-api:dev-master

Credentials

You must request MyAPI credentials from PPL IT, it is not same as klient.ppl.cz credentials!

Usage

Consult official PPL documentation for methods description

~Runnable examples of code are in examples folder of this project.

PPL Package number format

40990019352
│├┘│└─────┴──── [0019352] SeriesNumber
││ └─────────── [9] IsCashOnDelivery 9==CoD & 5== NonCoD (for some product it is 8==CoD & 0=NonCoD)
│└───────────── [09] DepoCode
└────────────── [4] ProductType