Download the PHP package markosirec/gls-italy-sdk without Composer
On this page you can find all versions of the php package markosirec/gls-italy-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markosirec/gls-italy-sdk
More information about markosirec/gls-italy-sdk
Files in markosirec/gls-italy-sdk
Informations about the package gls-italy-sdk
GLS Italy PHP SDK
This is an unofficial PHP SDK for the GLS Italy webservice. Since the official documentation and API are both in Italian, things can get quite confusing. Therefore I decided to create a simple SDK with which you can easily integrate your existing project.
Please note - GLS Italy has its own unique API and is very different from GLS branches in other countries.
What's new
v2.0.0
Adding and closing packets is now done in batches. You pass an array of Parcel instances instead of making a call for each individual parcel. (please have a look at the example below)
Getting Started
Prerequisites
- PHP 7.1
- PHP curl library
Installing
Clone/download this repo directly or get it through composer:
Usage
List parcels
Here is an example of how to get a list of parcels in the GLS system. These endpoints can sometimes return weird or incomplete results - seems to be a bug in the GLS system. Keep in mind your mileage may vary!
Add parcels and generate the PDF label/sticker
For a full list of options, take a look at the Parcel model in src/Models/Parcel.php
Delete parcel
Running the tests
The SDK uses phpunit for tests. Cd into the SDK root folder and run:
Contributing
Pull requests are very welcome. (Please use the PSR-2 coding style) This library does not yet support certain API features/endpoints so if you have a specific wish, please contact me and I will try to help.
Authors
- Marko Širec - Initially created this Project
Contact
- If you have questions or feature requests please email me at [email protected]
- (sorry, I don't speak Italian)
License
This project is licensed under the MIT License.
All versions of gls-italy-sdk with dependencies
ext-curl Version *