101medialab/shipping

dev-master / 1.x-dev 2014-10-08 06:42 UTC

README

Shipping cost estimation library.

Build Status

Installation

The recommended way to install Shipping is through composer:

{
    "require": {
        "101medialab/shipping": "~1.0"
    }
}

Usage

/* @var Sylius\Component\Shipping\Model\ShipmentInterface $shipment */
/* @var Sylius\Component\Addressing\Model\AddressInterface $source, $destination */

$calculator = new MediaLab\Shipping\Calculator\FedExCalculator($key, $password, $accountNumber, $meterNumber);
$calculator->calculate($source, $destination, $shipment);

License

101medialab shipping is licensed under the MIT License - see the LICENSE file for details.