{"id":36993768,"url":"https://github.com/enuenan/pathao-courier","last_synced_at":"2026-01-21T07:52:25.443Z","repository":{"id":212531843,"uuid":"730710408","full_name":"enuenan/pathao-courier","owner":"enuenan","description":"A complete Laravel package for Pathao Merchant Courier","archived":false,"fork":false,"pushed_at":"2026-01-10T04:43:56.000Z","size":44,"stargazers_count":15,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-11T01:26:49.532Z","etag":null,"topics":["api","courier","courier-api","courier-api-integration","laravel-package","pathao","pathao-api","pathao-api-integration","pathao-courier","pathao-courier-laravel","pathao-developer-api","pathao-merchant","pathao-merchant-api","pathao-merchant-laravel-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enuenan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-12T14:04:43.000Z","updated_at":"2026-01-10T04:42:23.000Z","dependencies_parsed_at":"2024-09-12T13:26:32.958Z","dependency_job_id":"06507f99-4b23-4655-8512-e901bc708a1a","html_url":"https://github.com/enuenan/pathao-courier","commit_stats":null,"previous_names":["enuenan/pathao-courier"],"tags_count":9,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/enuenan/pathao-courier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enuenan%2Fpathao-courier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enuenan%2Fpathao-courier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enuenan%2Fpathao-courier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enuenan%2Fpathao-courier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enuenan","download_url":"https://codeload.github.com/enuenan/pathao-courier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enuenan%2Fpathao-courier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","courier","courier-api","courier-api-integration","laravel-package","pathao","pathao-api","pathao-api-integration","pathao-courier","pathao-courier-laravel","pathao-developer-api","pathao-merchant","pathao-merchant-api","pathao-merchant-laravel-api"],"created_at":"2026-01-13T23:45:58.820Z","updated_at":"2026-01-13T23:45:59.478Z","avatar_url":"https://github.com/enuenan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://moammer-enan.com/portfolio/assets/img/Pathao_Courier_API_Integration_with_Laravel.png\"\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eA complete Laravel Package for Pathao Courier\u003c/h1\u003e\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/enan/pathao-courier.svg?style=flat-square)](https://packagist.org/packages/enan/pathao-courier)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/enan/pathao-courier/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/enan/pathao-courier/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/enan/pathao-courier/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/enan/pathao-courier/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/enan/pathao-courier.svg?style=flat-square)](https://packagist.org/packages/enan/pathao-courier)\n\nA complete package for Laravel to use [Pathao Courier Merchant API](https://merchant.pathao.com/). 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. \u003cbr\u003e\nWith this package you can get the following\n\n-   [x] Get the city list\n-   [x] Get the zone list\n-   [x] Get the area list\n-   [x] Get the store list\n-   [x] Create Store\n-   [x] Get order details\n-   [x] Get calculated price\n-   [x] Get the token exipiration days left and also expected date of it\n-   [x] Get the user success rate using phone number ![New](https://img.shields.io/badge/New-brightgreen)\n\nIt 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.\n\n\u003c!-- ## Support us --\u003e\n\n## ⚙️ Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require enan/pathao-courier\n```\n\nYou can publish the migration file and config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"pathao-courier-config\"\n```\n\nThough Laravel auto discover. If not add the following in `config\\app.php`. You can skip this part if you want.\n\n```php\n// add below line in the providers array\nEnan\\PathaoCourier\\PathaoCourierServiceProvider::class,\n\n\n// add below line in the alias array\n'PathaoCourier' =\u003e Enan\\PathaoCourier\\Facades\\PathaoCourier::class,\n```\n\n\u003e 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'\n\n```bash\nPATHAO_DB_TABLE_NAME='pathao-courier'\nPATHAO_CLIENT_ID=\nPATHAO_CLIENT_SECRET=\nPATHAO_SECRET_TOKEN=\n```\n\n### 🔑 Where can I find the value?\n\nGo to your [Pathao Developers Api](https://merchant.pathao.com/courier/developer-api) and you'll find `Merchant API Credentials` there.\nAnd for `PATHAO_SECRET_TOKEN=` you'll be provided it after the successfull authentication.\n\n### 🎫 Setup\n\nRun the migration\n\n```bash\nphp artisan migrate\n```\n\nYou have to set the token of pathao courier. To set run below artisan command \u003cbr\u003e\nThe command will ask the credentials. This is a one time process. You don't have to setup this again. \u003cbr\u003e\nIf you want to update current token and secret you can run the command again. \u003cbr\u003e\nYou will be provided a secret token here. Please set the token in your `.env` file with `PATHAO_SECRET_TOKEN=`\n\n```bash\nphp artisan set:pathao-courier\n```\n\n## 🏗 Usage\n\nAdd the Facade before using\n\n```php\nuse Enan\\PathaoCourier\\Facades\\PathaoCourier;\n```\n\n\u003e For the POST type response the required validation are mentioned before the function like \u003crequired, string\u003e So here the value should be required and string\n\n```php\n/**\n * To Get the days left of token expiration\n * You'll get the expected date of the expiration and total days left\n *\n * @type \u003cGET\u003e\n */\nPathaoCourier::GET_ACCESS_TOKEN_EXPIRY_DAYS_LEFT();\n\n/**\n * To Get the cities\n *\n * @type \u003cGET\u003e\n */\nPathaoCourier::GET_CITIES();\n\n/**\n * To Get the Zones\n * @type \u003cGET\u003e\n *\n * @param int $city_id\n */\nPathaoCourier::GET_ZONES(int $city_id);\n\n/**\n * To Get the Areas\n * @type \u003cGET\u003e\n *\n * @param int $zone_id\n */\nPathaoCourier::GET_AREAS(int $zone_id);\n\n/**\n * To Get the Stores\n * @type \u003cGET\u003e\n *\n * @param int $page\n * $page param is optional. If you want you can implement pagination here.\n */\nPathaoCourier::GET_STORES(int $page);\n\n/**\n * To Create Store\n * @type \u003cPOST\u003e\n * Pass below mentioned parameter\n *\n * @param $name \u003crequired, string\u003e\n * @param $contact_name \u003crequired, string\u003e\n * @param $contact_number \u003crequired, numeric\u003e\n * @param $address \u003crequired, string\u003e\n * @param $city_id \u003crequired, numeric\u003e\n * @param $zone_id \u003crequired, numeric\u003e\n * @param $area_id \u003crequired, numeric\u003e\n */\nPathaoCourier::CREATE_STORE($request);\n\n/**\n * To Create Order\n * @type \u003cPOST\u003e\n * Pass below mentioned parameter\n *\n * @param $store_id \u003crequired, numeric\u003e\n * @param $merchant_order_id    \u003cnullable, string\u003e\n * @param $sender_name  \u003crequired, numeric\u003e\n * @param $sender_phone     \u003crequired, string/\u003e\n * @param $recipient_name   \u003crequired, string\u003e\n * @param $recipient_phone  \u003crequired, string\u003e\n * @param $recipient_address    \u003crequired, string, Min:10\u003e\n * @param $recipient_city   \u003crequired, numeric\u003e\n * @param $recipient_zone   \u003crequired, numeric\u003e\n * @param $recipient_area   \u003crequired, numeric\u003e\n * @param $delivery_type    \u003crequired, numeric\u003e is provided by the merchant and not changeable. 48 for Normal Delivery, 12 for On Demand Delivery\"\n * @param $item_type    \u003crequired, numeric\u003e is provided by the merchant and not changeable. 1 for Document, 2 for Parcel\"\n * @param $special_instruction  \u003cnullable, string\u003e\n * @param $item_quantity    \u003crequired, numeric\u003e\n * @param $item_weight  \u003crequired, numeric\u003e\n * @param $amount_to_collect    \u003crequired, numeric\u003e\n * @param $item_description     \u003cnullable, string\u003e\n */\nPathaoCourier::CREATE_ORDER($request);\n\n/**\n * To Get Price Calculation\n * @type \u003cPOST\u003e\n * Pass below mentioned parameter\n *\n * @param $delivery_type \u003crequired, numeric\u003e\n * @param $item_type \u003crequired, numeric\u003e\n * @param $item_weight \u003crequired, numeric\u003e\n * @param $recipient_city \u003crequired, numeric\u003e\n * @param $recipient_zone \u003crequired, numeric\u003e\n * @param $store_id \u003crequired, numeric\u003e\n */\nPathaoCourier::GET_PRICE_CALCULATION($request);\n\n\n/**\n * To View Order\n * @type \u003cGET\u003e\n * @param string $consignment_id\n */\nPathaoCourier::VIEW_ORDER(string $consignment_id);\n\n\n/**\n * To Get User's success rate using phone number\n * @type \u003cPOST\u003e\n * @param string $phone\n */\nPathaoCourier::GET_USER_SUCCESS_RATE($request);\n\n```\n\n\u003c!-- ## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities. --\u003e\n\n## Credits\n\n-   [Moammer Farshid Enan](https://github.com/Enan)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Check me on\n\n-   [Portfolio](https://moammer-enan.com/)\n-   [Facebook](https://www.facebook.com/moammerfarshidenan)\n-   [GitHub](https://github.com/enuenan)\n-   [LinkedIn](https://www.linkedin.com/in/moammer-farshid/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenuenan%2Fpathao-courier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenuenan%2Fpathao-courier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenuenan%2Fpathao-courier/lists"}