Download the PHP package aniket-in/laravel-shiprocket without Composer

On this page you can find all versions of the php package aniket-in/laravel-shiprocket. 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 laravel-shiprocket

Laravel-Shiprocket

Shiprocket API Wrapper for Laravel

Table of Contents

  1. Features
  2. Installation
  3. Import
  4. Authentication
  5. Response
  6. Usage
    1. Orders
    2. Couriers
    3. Return Orders
    4. Shipments
    5. Tracking
    6. Pickup Addresses
    7. Wallet
    8. Products

Features

Installation

You can install the package via composer:

You can publish config file with:

This is the contents of the published config file:

Import

To use the methods of this package, import the Facade on top of your controller like this:

Authentication

Using this package handle the Authentication itself, you don't need to do anything other than, just setting up your Shiprocket credentials in the config/shiprocket.php file.

You can also configure token caching to true in that config file. This will save a lot of time by caching the token and not generating new token on every request. The cache duration is also customizeable.

However, if you want to just get the token

Also, if you want to use different credential other than the default one, then:

Response

To get the returned response from the API, you may use any of the Laravel provided method, like:

All available methods:

For more information refer https://laravel.com/docs/9.x/http-client#making-requests

Orders

Create Custom Order

https://apidocs.shiprocket.in/#247e58f3-37f3-4dfb-a4bb-b8f6ab6d41ec

Create Channel Specific Order

https://apidocs.shiprocket.in/#45126d19-74ed-4cf5-9447-8ac1041bbb3c

Change/Update Pickup Location of Created Orders

https://apidocs.shiprocket.in/#4ba045ab-e25b-4bb1-adbd-37bbd07b354e

Update Customer Delivery Address

https://apidocs.shiprocket.in/#f98ea72a-2efb-4bbc-a4bb-f4dd7e15618a

Update Order

https://apidocs.shiprocket.in/#f08900fe-ea38-485d-b50c-3ec2fbc5644a

Cancel an Order

https://apidocs.shiprocket.in/#5c0e41ca-d868-44c4-8ddb-73a8de239401

Get all Orders

https://apidocs.shiprocket.in/#d4f48023-b0b2-40af-8072-1adf97227d21

Get Specific Order Details

https://apidocs.shiprocket.in/#aa23cc40-6ee8-4ce0-b0ab-1a7291514299

Couriers

Generate AWB for Shipment

https://apidocs.shiprocket.in/#b267ca9a-f7aa-4edc-8477-7dc15e46e08a

List of Couriers

https://apidocs.shiprocket.in/#ce08883d-5782-4523-a425-919d10b27536

Check Courier Serviceability

https://apidocs.shiprocket.in/#29ff5116-0917-41ba-8c82-638412604916

Check International Courier Serviceability

https://apidocs.shiprocket.in/#6d1f2fb0-43c1-434f-8c93-50674a0b59ef

Request for Shipment Pickup

https://apidocs.shiprocket.in/#9f42cdfd-a055-4934-a0f4-86764f87c80d

Return Orders

Create a Return Order

https://apidocs.shiprocket.in/#81b2135b-d43c-4002-8f7f-a670aa5210fa

Get All Return Orders

https://apidocs.shiprocket.in/#a98c37b1-47ac-40b4-b80f-051611fe350e

Shipments

Get All Shipment Details

https://apidocs.shiprocket.in/#a9913eaf-94ba-4012-a105-9687fddc7221

Get Details of Specific Shipment

https://apidocs.shiprocket.in/#5f9bced5-4f16-4868-be55-a8c0215d0711

Cancel Shipments By AWBs

https://apidocs.shiprocket.in/#659bb564-413a-4e4c-b866-ebe01d3f61dc

Tracking

Get Tracking through AWB

https://apidocs.shiprocket.in/#f2ac0962-4c34-4fe4-8266-50f8a1e8eab0

Get Tracking Data for Multiple AWBS

https://apidocs.shiprocket.in/#cf273e6a-08d0-4624-bf7a-7510c28292e0

Get Tracking through Shipment ID

https://apidocs.shiprocket.in/#89005f4f-2b2f-473d-95b0-f54665a16b42

Get Tracking Data through Order iD

https://apidocs.shiprocket.in/#bfcf3357-4e39-4134-831a-1ff33f67205e

Pickup Addresses

Get All Pickup Locations

https://apidocs.shiprocket.in/#3bd67de6-8f00-435f-a708-c0c3ab252fee

Add a New Pickup Location

https://apidocs.shiprocket.in/#6fbe81f5-c3d5-462e-b18f-d6316dde7779

Wallet

Get Wallet Balance

https://apidocs.shiprocket.in/#341bd458-5d80-4978-8e30-13651be2a652

Products

Get All Products

https://apidocs.shiprocket.in/#0b8d1f26-3abd-4f4e-9cd8-3928bcfcf30b

Get Specific Product Details

https://apidocs.shiprocket.in/#134f7710-660c-464f-b579-6da46ba9402f

Add New Products

https://apidocs.shiprocket.in/#344b789d-584e-486a-a7a9-0cf33ce52bf3

Authors

Support & Feedback

For support or feedback, email [email protected] or raise your issue.


All versions of laravel-shiprocket with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
spatie/laravel-package-tools Version ^1.9.2
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 aniket-in/laravel-shiprocket contains the following files

Loading the files please wait ....