PHPackages                             sujanshresthanet/ups-rates - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. sujanshresthanet/ups-rates

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sujanshresthanet/ups-rates
==========================

A simple tool to return UPS shipping rates.

v5.5.1(3y ago)12LGPL-3.0PHPPHP ^7.2

Since Jun 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sujanshresthanet/ups-rates)[ Packagist](https://packagist.org/packages/sujanshresthanet/ups-rates)[ Docs](https://github.com/sujanshresthanet/ups-rates)[ RSS](/packages/sujanshresthanet-ups-rates/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/fb587263858f7552cadf67f13594a7b7d46ae61c7b6c32bf754c245c7b43bb3d/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f76)](https://packagist.org/packages/sujanshresthanet/ups-rates) [![Total Downloads](https://camo.githubusercontent.com/0c7a219b36a8e3cc9cf852f1235f97f8748696c3f5d8e4c6f439d39120106e6d/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f646f776e6c6f616473)](https://packagist.org/packages/sujanshresthanet/ups-rates) [![Latest Unstable Version](https://camo.githubusercontent.com/1de5525bd73630e05e1afa58ff2a132b8832245f1e7c7b39927ed85da746cb13/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f762f756e737461626c65)](https://packagist.org/packages/sujanshresthanet/ups-rates) [![License](https://camo.githubusercontent.com/17e3b538854aa2ac0731349468a687415ad26f98829c402c89f5053052b2626f/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f6c6963656e7365)](https://packagist.org/packages/sujanshresthanet/ups-rates) [![PHP Version Require](https://camo.githubusercontent.com/b9c6acb7703c951ee30a38967933e6191efef3a52714f3960b67b333a01257af/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f726571756972652f706870)](https://packagist.org/packages/sujanshresthanet/ups-rates) [![Dependents](https://camo.githubusercontent.com/c78ef051915082c1856e4a482c447fcaec4723812a2684cf772b2c309d711b42/687474703a2f2f706f7365722e707567782e6f72672f73756a616e73687265737468616e65742f7570732d72617465732f646570656e64656e7473)](https://packagist.org/packages/sujanshresthanet/ups-rates)

UPS Rates Description
=====================

[](#ups-rates-description)

This package is used to send shipment rate quote requests to the UPS webservice.

Install using Composer, edit your `composer.json` file to include:

```
"require": {
	"sujanshresthanet/ups-rates": "1.*"
}

```

Update composer from the command line:

```
composer update

```

Add a new Service Provider to the `providers` array in your `app/config/app.php` file:

```
'Shipment_ups\Ups\UpsServiceProvider'

```

Add a class alias in the same configuration file to the `aliases` array:

```
'Ups'             => 'Shipment_ups\Ups\Facades\Ups'

```

Example:

```
$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:

```
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
        )

)

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79e91bf7fe29065bcae86009f347546ddbb64441a466f88a36be87807d2413a5?d=identicon)[sujanshrestha](/maintainers/sujanshrestha)

---

Top Contributors

[![sujanshresthanet](https://avatars.githubusercontent.com/u/103834513?v=4)](https://github.com/sujanshresthanet "sujanshresthanet (1 commits)")

---

Tags

laravelphpshipmentupsphplaravelshippingups

### Embed Badge

![Health badge](/badges/sujanshresthanet-ups-rates/health.svg)

```
[![Health](https://phpackages.com/badges/sujanshresthanet-ups-rates/health.svg)](https://phpackages.com/packages/sujanshresthanet-ups-rates)
```

###  Alternatives

[renoki-co/laravel-aws-webhooks

Easy webhook handler for Laravel to catch AWS SNS notifications for various services.

73248.5k](/packages/renoki-co-laravel-aws-webhooks)[ivanmitrikeski/laravel-shipping

Shipping package for Laravel. Supported providers: CanadaPost, USPS, UPS, FedEx and Purolator.

206.8k2](/packages/ivanmitrikeski-laravel-shipping)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
