Download the PHP package tcgunel/omniship-common without Composer

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

Omniship Common

Multi-carrier shipping abstraction library for PHP. Like Omnipay, but for shipping.

Requirements

Installation

Architecture

Each carrier is a separate package that extends the appropriate base class.

The two base classes take different constructor arguments — an HTTP carrier accepts a PSR-18 client, a SOAP carrier accepts a SoapClient. Ask before you instantiate, rather than assuming:

Available Carriers

Package Carrier Type Auth
tcgunel/omniship-yurtici Yurtiçi Kargo SOAP Username/Password
tcgunel/omniship-aras Aras Kargo HTTP/XML Username/Password
tcgunel/omniship-kolaygelsin KolayGelsin (Sendeo) HTTP/JSON API Token

Quick Start

Common Operations

Every carrier supports these operations:

Create Shipment

Track Shipment

Cancel Shipment

Logging SOAP Traffic

SOAP carriers build their own SoapClient from the WSDL, so there is no PSR-18 client to wrap. Supply a factory to hand them a client of your own — typically a subclass that overrides __doRequest() to record every exchange:

The factory receives the carrier's WSDL URL and SOAP options, and is called once, lazily, on the first request. Passing a ready-made client to the constructor (or setSoapClient()) still works when you do not need the WSDL.

Parameter Handling

Parameters usually arrive from HTTP input, where everything is a string, while setters are typed for the carrier's API. initialize() bridges that:

Domain Models

Address

Package

ShipmentStatus Enum

Key Concepts for Turkish Carriers

Testing

License

MIT


All versions of omniship-common with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
php-http/discovery Version ^1.19
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1|^2.0
psr/log Version ^3.0
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 tcgunel/omniship-common contains the following files

Loading the files please wait ...