Download the PHP package pass-qa/delivery without Composer

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

Pass Delivery: Api package library

About API

See the integration page for description of pass delivery api.

Documentation

See the documentation for pass delivery api documentation.

Installation

Optional:

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

Publish files

You should publish the config/passdelivery.php config file with:

After that, you should put your api_key in config file, also you can set test_mode to true for development or false for production.

Usage Instructions

First Step

You must generate a token. See this page to learn how to create a token.

create new object

calculate order price before create order

Request a quote to receive your exact delivery fee for an order by using the origin address and destination addresses.

This endpoint retrieves calculation information in the format of for a pair of {latitude, longitude} coordinates.

use object

or use facade

create an order

Once you calculated the price of your order, you can use this endpoint in order to create a new order.

use object

or use facade

tracking driver of your order

Once you successfully have created an order, you will be able to watch the Pass driver on a live map.

The driver's location and order status will be change as the driver is moving.

The 'order id' is available in the create API response

use object

or use facade

get order detail

Call the following endpoint in order to get the order details.

The order details include:

  1. Pickup and Dropoff details including description
  2. Driver details including name, phone number, avatar and vehicle information
  3. Order price and payment details
  4. Order statuses
  5. Share URL. A tool which you can use to share a link with your clients to view the live driver status.

The 'order id' is available in the create API response

use object

or use facade

cancel an order

You can cancel any order before courier arrival (before the pickup status)

The 'order id' is available in the create API response

use object

or use facade

list of orders

List of all submitted orders by your tokens

use object

or use facade

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of delivery with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
ext-json Version *
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 pass-qa/delivery contains the following files

Loading the files please wait ....