Download the PHP package nayemuf/pathao-courier without Composer

On this page you can find all versions of the php package nayemuf/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

Laravel Pathao Courier Package

Latest Version on Packagist Total Downloads License Laravel

A professional Laravel package for integrating with Pathao Courier Merchant API. This package provides a clean, well-structured interface for all Pathao API endpoints with built-in caching, rate limiting, and comprehensive error handling.

✨ Features

📋 Requirements

📦 Installation

Install the package via Composer:

The package will automatically register its service provider and facade.

⚙️ Configuration

Step 1: Publish Configuration

Publish the configuration file to your config directory:

This will create config/pathao.php in your Laravel application.

Step 2: Environment Variables

Add the following to your .env file:

🧪 Sandbox Credentials (for Testing)

Pathao provides sandbox credentials for testing:

📍 Test Store IDs (Sandbox)

You can use any of these store IDs for testing in the sandbox environment:

Store ID Store Name
149049 double discount
149048 Test Marchent
149047 Test Seller
149046 mo
149045 DCC Online
149044 Becho
149043 Sandbox Store
149042 Elvis Lowe
149040 Partha
149039 Partha Store

Note: To get the full list of available stores, use:

🚀 Usage

Create an Order

Create Bulk Orders

Get Order Information

Get Cities, Zones, and Areas

Calculate Delivery Price

Store Management

Refresh Access Token

📚 API Reference

Authentication

Order API

Area API

Store API

Price API

⚠️ Error Handling

The package throws Nayemuf\PathaoCourier\Exceptions\PathaoException for all API errors:

🔒 Caching

Access tokens are automatically cached using Laravel's cache system to reduce API calls. Tokens are cached for their full lifetime (5 days) minus 5 minutes for safety. The cache key is configurable in config/pathao.php.

🚦 Rate Limiting

The package includes built-in rate limiting to prevent API abuse. By default, it limits requests to 60 per minute. You can configure this in your config/pathao.php:

✅ Validation Rules

All input data is validated before sending to the API:

🧪 Testing

Run the test suite:

Or run PHPUnit directly:

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Guidelines

Before contributing, please ensure you follow these guidelines:

  1. Follow PSR-4 Autoloading Standard - All code must adhere to PSR-4 autoloading standards
  2. Refer to Pathao Official Documentation First - Always check the Pathao API Documentation before implementing new features or changes
  3. Maintain Code Quality - Follow existing code style, add proper type hints, and include PHPDoc comments
  4. Write Tests - Include tests for new features or bug fixes
  5. Update Documentation - Update README, CHANGELOG, and inline documentation as needed

Contribution Process

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes following the guidelines above
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request with a clear description of your changes

📝 Changelog

Please see CHANGELOG for more information on what has changed recently.

🔗 Links

📄 License

The MIT License (MIT). Please see License File for more information.

👤 Author

Nayem Uddin

🙏 Acknowledgments

🐛 Reporting Issues

For issues, questions, or feature requests, please open an issue on GitHub.

💝 Support

If this package helps you, please consider giving it a ⭐ on Packagist or GitHub.



All versions of pathao-courier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.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 nayemuf/pathao-courier contains the following files

Loading the files please wait ...