Download the PHP package deniztezcan/laravel-postnl-api without Composer
On this page you can find all versions of the php package deniztezcan/laravel-postnl-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deniztezcan/laravel-postnl-api
More information about deniztezcan/laravel-postnl-api
Files in deniztezcan/laravel-postnl-api
Package laravel-postnl-api
Short Description Laravel PostNL API package
License MIT
Homepage https://github.com/deniztezcan/laravel-postnl-api
Informations about the package laravel-postnl-api
Laravel PostNL API package
Intergrates the PostNL API with Laravel 5 & 6 via a ServiceProvider and Facade.
Instalation
Add a ServiceProvider to your providers array in config/app.php
:
Add the facade to the facades array:
Finally, publish the configuration files:
Configuration
Please set your API: url
, key
and Customer code
, number
, location
, email
and address
in the config/postnlapi.php
Usage
To generate a barcode
you can use the following call. To find which type
and serie
to use please check PostNL documentation
To generate a label
you can use the following call. To find which PrinterType
, AddressType
and ProductCodeDelivery
to use please check PostNL documentation
Note: Watch the Array which needs to be passed in the second and third parameter! Without this it will simply not work!
To get an array of the nearest PostNL locations you can use the following call. You have to pass the CountryCode
and PostalCode
as parameters.
All versions of laravel-postnl-api with dependencies
illuminate/support Version 5.8.*|6.*.*|7.*.*|8.*.*|9.*.*|10.*.*
nesbot/carbon Version ^2.16