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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pathao-courier

A complete Laravel Package for Pathao Courier

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

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

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package enan/pathao-courier contains the following files

Loading the files please wait ....