2017 © Pedro Peláez
 

library ups

A simple tool to return UPS shipping rates.

image

beaudierman/ups

A simple tool to return UPS shipping rates.

  • Tuesday, January 19, 2016
  • by beaudierman
  • Repository
  • 3 Watchers
  • 9 Stars
  • 6,591 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

UPS

This package is used to send shipment rate quote requests to the UPS webservice., (*1)

Install using Composer, edit your composer.json file to include:, (*2)

"require": {
    "beaudierman/ups": "1.*"
}

Update composer from the command line:, (*3)

composer update

Add a new Service Provider to the providers array in your app/config/app.php file:, (*4)

'Beaudierman\Ups\UpsServiceProvider'

Add a class alias in the same configuration file to the aliases array:, (*5)

'Ups'             => 'Beaudierman\Ups\Facades\Ups'

Example:, (*6)

$return = Ups::getQuote(
    array(
        'access_key' => 'your key',
        'username' => 'your username',
        'password' => 'your password',
        'account_number' => 'your account number',
    ),
    array(
        'from_zip' => '37902',
        'from_state' => 'TN', // Optional, may yield a more accurate quote
        'from_country' => 'US', // Optional, defaults to US
        'to_zip' => '90210',
        'to_state' => 'CA', // Optional, may yield a more accurate quote
        'to_country' => 'US', // Optional, defaults to US
        'packages' => 1,
        'weight' => 50,
        'measurement' => 'LBS', // Currently the UPS API will only allow LBS and KG, default is LBS
        'negotiated_rates' => true // Optional, set true to return negotiated rates from UPS
    )
);

Returns:, (*7)

Array
(
    [03] => Array
        (
            [service] => UPS Ground
            [rate] => 52.32
        )

    [12] => Array
        (
            [service] => UPS 3 Day Select
            [rate] => 145.09
        )

    [02] => Array
        (
            [service] => UPS 2nd Day Air
            [rate] => 235.40
        )

    [01] => Array
        (
            [service] => UPS Next Day Air
            [rate] => 301.46
        )

)

The Versions

19/01 2016

dev-master

9999999-dev https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

19/01 2016

v1.1.1

1.1.1.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

06/08 2015

v1.1.0

1.1.0.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

11/11 2014

v1.0.4

1.0.4.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

10/11 2014

v1.0.3

1.0.3.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

07/11 2014

v1.0.2

1.0.2.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups

07/11 2014

v1.0.1

1.0.1.0 https://github.com/beaudierman/ups

A simple tool to return UPS shipping rates.

  Sources   Download

MIT

The Requires

 

by Beau Dierman

laravel shipping ups