PHPackages                             vasildakov/shipping - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vasildakov/shipping

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vasildakov/shipping
===================

Shipping Library

v0.1.0-alpha(2y ago)10MITPHPPHP &gt;=8.1

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vasildakov/shipping)[ Packagist](https://packagist.org/packages/vasildakov/shipping)[ Docs](https://github.com/vasildakov/shipping)[ RSS](/packages/vasildakov-shipping/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (16)Versions (2)Used By (0)

Shipping
========

[](#shipping)

[![build](https://github.com/vasildakov/shipping/actions/workflows/php.yml/badge.svg)](https://github.com/vasildakov/shipping/actions/workflows/php.yml/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/315fb64f27c15356b0098a491cf4373c63e38689dd6700832e48ecf7ac999ef1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766173696c64616b6f762f7368697070696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/vasildakov/shipping/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/eaf806465f057313cc6713ac707af39eb81eb42bb7b610cf00f8eb84b27b710a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766173696c64616b6f762f7368697070696e672f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/vasildakov/shipping/?branch=main)[![Total Downloads](https://camo.githubusercontent.com/2143be46c171f1c3ff45cf9f760e5633316c67e9f3475a28c3d69db25bd3c70e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766173696c64616b6f762f7368697070696e672e737667)](https://packagist.org/packages/vasildakov/shipping/stats)

Features
--------

[](#features)

This library is compliant with [PSR-7: HTTP message interfaces](https://www.php-fig.org/psr/psr-7/), [PSR-17: HTTP Factories](https://www.php-fig.org/psr/psr-17/) and [PSR-18: HTTP Client](https://www.php-fig.org/psr/psr-18/)

Installation
------------

[](#installation)

Using Composer:

```
$ composer require vasildakov/shipping

```

Tests
-----

[](#tests)

```
$ ./vendor/bin/phpunit

# with code coverage
$ ./vendor/bin/phpunit --coverage-html ./build/coverage
```

Configuration
-------------

[](#configuration)

...

Add your adapters configuration to a `.env` file in the root of your project. Make sure the `.env` file is added to your `.gitignore` so it is not checked-in the code

```
SPEEDY_USERNAME="username"
SPEEDY_PASSWORD="password"
SPEEDY_LANGUAGE="EN"

ECONT_USERNAME="username"
ECONT_PASSWORD="password"
```

Usage
-----

[](#usage)

Here is a simple example of how to use Shipping. As you can see, Shipping has a consistent, well thought out API. As much as possible, we try to abstract the differences between the various shipping gateways.

```
