Download the PHP package enan/pathao-courier without Composer
On this page you can find all versions of the php package enan/pathao-courier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enan/pathao-courier
More information about enan/pathao-courier
Files in enan/pathao-courier
Package pathao-courier
Short Description A complete Laravel package for Pathao Courier
License MIT
Homepage https://github.com/enan/pathao-courier
Informations about the package pathao-courier
A complete Laravel Package for Pathao Courier
A complete package for Laravel to use Pathao Courier Merchant API. Setup once and forget about it. You donβt even have to worry about the validation of creating orders, creating a store, or getting calculated price value which are generally a POST request on the Pathao courier end.
With this package you can get the following
- [x] Get the city list
- [x] Get the zone list
- [x] Get the area list
- [x] Get the store list
- [x] Create Store
- [x] Get order details
- [x] Get calculated price
- [x] Get the token exipiration days left and also expected date of it
- [x] Get the user success rate using phone number
It offers you a bunch of validation for Create order, Create Store, Get calculated price.So you don't have to worry about the validation for all of this.
βοΈ Installation
You can install the package via composer:
You can publish the migration file and config file with:
Though Laravel auto discover. If not add the following in config\app.php
. You can skip this part if you want.
Add the following environment variables to your
.env
file. You can choose the table name of migration before running the migration. Default is 'pathao-courier'
π Where can I find the value?
Go to your Pathao Developers Api and you'll find Merchant API Credentials
there.
And for PATHAO_SECRET_TOKEN=
you'll be provided it after the successfull authentication.
π« Setup
Run the migration
You have to set the token of pathao courier. To set run below artisan command
The command will ask the credentials. This is a one time process. You don't have to setup this again.
If you want to update current token and secret you can run the command again.
You will be provided a secret token here. Please set the token in your .env
file with PATHAO_SECRET_TOKEN=
π Usage
Add the Facade before using
For the POST type response the required validation are mentioned before the function like <required, string> So here the value should be required and string
Credits
License
The MIT License (MIT). Please see License File for more information.
Check me on
All versions of pathao-courier with dependencies
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0