Download the PHP package shimango/gophr without Composer

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

A PHP client for the Gophr Courier Service commercial API

Documentation regarding the Gophr Restfull API can be found at: https://developers.gophr.com/docs

Build Status Latest Stable Version Total Downloads License PHP Version Require

Requirements

The Gophr Commercial API uses API Key based authentication. In order to use this client you need to obtain an API key from Gophr. See how to obtain it here: https://developers.gophr.com/docs/authorisation

Installation

using composer:

Or add the following to your composer.json file for your project:

Alternatively, download this package from github, and run composer install in the directory containing the composer.json file to generate the autoloader, then require the autoloader using

Usage

The two main classes in this library are Shimango\Gophr\Common\Configuration and Shimango\Gophr\Client

Jobs

A Job is a collection of deliveries that will be assigned to a courier and completed by them in the same trip. This library provides the following methods to interact with Jobs: `

Deliveries

A Delivery represents a pickup - dropoff combination along with any parcels that are associated with them. This library provides the following methods to interact with Deliveries:

Parcels

Parcels represent the individual packages within a delivery. A parcel belongs to a delivery and deliveries can have many parcels. This library provides the following methods to interact with Parcels:

All the methods above are available from the main \Shimango\Gophr\Client class. Alternatively, individual resources can be used instead. The resource objects will only have the methods that affect that resource directly. These resources are:

All calls to the Gophr API via this library will return a GophrResponse object. This class is PSR-7 compliant and also, amongst other common response methods, provides two methods to help get the body of the response. These are:

Request and Response payloads

Examples of the request and response payloads for each API call can be found at: https://developers.gophr.com/reference

Test


All versions of gophr with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.5
spatie/data-transfer-object Version ^2.8
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 shimango/gophr contains the following files

Loading the files please wait ....