Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 752 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 752 Bytes

Steadfast Courier

A Laravel package for integrating Steadfast Courier API.

Installation

You can install the package via composer:

composer require shshohagh/steadfast-courier

Usage

Publish the configuration file:

php artisan vendor:publish --provider="Shshohagh\SteadfastCourier\SteadfastServiceProvider" --tag="config"

Update your .env file with your Steadfast API credentials:

STEADFAST_BASE_URL=https://portal.steadfast.com.bd/api/v1
STEADFAST_API_KEY=your-api-key
STEADFAST_SECRET_KEY=your-secret-key

Use the Steadfast class to interact with the API.

use Shshohagh\SteadfastCourier\Steadfast;

$steadfast = app(Steadfast::class);
$response = $steadfast->placeOrder($orderData);