Download the PHP package cserepesmark/laravel-csomagpiac without Composer
On this page you can find all versions of the php package cserepesmark/laravel-csomagpiac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cserepesmark/laravel-csomagpiac
More information about cserepesmark/laravel-csomagpiac
Files in cserepesmark/laravel-csomagpiac
Package laravel-csomagpiac
Short Description Csomagpiac API integration for Laravel
License MIT
Homepage https://github.com/cserepesmark/laravel-csomagpiac
Informations about the package laravel-csomagpiac
About
This is a wrapper for the Csomagpiac API v1, which utilizes Laravel's built-in HTTP Requests class. The package manages authentication using a universal token. In its absence, it can also request the necessary token using a username + password combination. The token obtained in this manner is cached for faster access. The package supports switching between demo and production environments (demo vs. bestr).
API Documentation: Csomagpiac API v1
Installation
Requires
To get started with package, simply install it via Composer:
Configuration
The packages support the use of either a universal token or a username and password. However, the package prioritizes the use of the universal token.
Configure your API credentials in .env
or in config/csomagpiac.php file:
You can also easily switch between environments in .env
or in config/csomagpiac.php file:
Usage
See /examples
folder
Shipment
ShipmentService method | API Name | API Endpoint |
---|---|---|
createShipment | new shipment | shipment/new |
downloadShipmentLabel | download shipment label | shipment/download |
deleteShipment | delete shipment | shipment/delete |
listShipments | list of shipments | shipment/list |
getShipmentStatus | shipment status | shipment/status |
listShipmentHistories | shipment history | shipment/history |
listAllStatuses | statuses | shipment/statuses |
MPL Close
ShipmentService method | API Name | API Endpoint |
---|---|---|
handleMplClose | mplClose | mplclose |
listMplCloses | mplClosesList | mplcloseslist |
downloadMplClose | mplClosePdf | mplclosepdf |
Other
ShipmentService method | API Name | API Endpoint |
---|---|---|
listPickupPoints | pickuppoints | pickuppoints |
listLocations | pdpoints | locations/list |
listServices | services | client/services |
listLocationTypes | pdpointTypes | locations/types |
listHandlers | handlers | handlers |
License
The MIT License (MIT). Please see License File for more information.