Download the PHP package crakter/bringapi without Composer
On this page you can find all versions of the php package crakter/bringapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crakter/bringapi
More information about crakter/bringapi
Files in crakter/bringapi
Package bringapi
Short Description BringApi is a fully functional library to help contact Bring API
License MIT
Informations about the package bringapi
Bring API PHP
Bring API PHP is a library to contact Bring API for prices, booking, reports and so on. I did not find anything that i could use for my project with PHP and Bring API. So i needed a good library that was reusable. This is used in production of a large Norwegian wholesaler.
Install
Composer (recommended)
Can be installed directly with Composer.
Run the following command in correct directory.
Requirements
- PHP version 7.2.0 or higher
- PHP extension
php_simplexml
enabled (enabled by default in 5.1.2 and above)
Supported Apis
- [x] Shipping Guide API
- [x] Get estimated prices
- [x] Get Estimated delivery time
- [x] Get Estimated shipment prices, delivery time and more
- [x] Booking API
- [x] List customer names
- [x] Book Shipments
- [x] Order pickups
- [x] Tracking API
- [x] Track shipments (also logged in)
- [x] Download Signature
- [x] Reports API
- [x] List available customers
- [x] List available reports for a customer
- [x] Generate a report
- [x] Check the status of a report
- [x] List invoice numbers
- [x] Postal Code API
- [x] Lookup postal code
Basic usage
Tracking as logged in
If you remove the authorizationModule you can track like normal user.
Advanced Usage
Look in the examples folder or you can generate the documents using Sami (composer dev-dependency).
For people running Linux
For people running Windows
You will now find the documents in the docs/build folder.
Running examples
For the tests to be able to run the Bring UID, Bring API Key and Customer number has to be set in the environment
For people running Linux
For people running Windows
Go into a new command prompt and run the examples. Some examples can be passed with arguments like postalcodes.
Contribute
Contributions are very welcomed.
Please follow PSR-2 coding standard. You can run php-cs-fixer to fix the problems in the code.
License
MIT