PHPackages                             ptondereau/laravel-ups-api - 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. [Framework](/categories/framework)
4. /
5. ptondereau/laravel-ups-api

ActiveLibrary[Framework](/categories/framework)

ptondereau/laravel-ups-api
==========================

A small Laravel's wrapper for the PHP UPS API library

v4.1.0(12mo ago)34140.5k—9.6%31[1 PRs](https://github.com/ptondereau/Laravel-UPS-Api/pulls)MITPHPPHP ^8.1 || ^8.2 || ^8.3CI passing

Since Mar 18Pushed 12mo ago3 watchersCompare

[ Source](https://github.com/ptondereau/Laravel-UPS-Api)[ Packagist](https://packagist.org/packages/ptondereau/laravel-ups-api)[ Fund](https://www.paypal.me/ptondereau)[ GitHub Sponsors](https://github.com/ptondereau)[ RSS](/packages/ptondereau-laravel-ups-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (0)

Laravel UPS Api
===============

[](#laravel-ups-api)

For Laravel 10 and 11
---------------------

[](#for-laravel-10-and-11)

[![Build Status](https://camo.githubusercontent.com/9c71948433d2878e6a8da82fd5816dd47e6858a4b53fb70a200a6b0c28aede1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70746f6e6465726561752f4c61726176656c2d5550532d4170692f54657374733f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/ptondereau/Laravel-UPS-Api/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/c6ff49e4660ea45c55a3ebec44b9c8e28fc2555dc8619ac4e70e1ba74f293813/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f35343135363137312f736869656c64)](https://github.styleci.io/repos/54156171)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/12b8102acd7167e4ffd048b1a8b4d7ed7afc2f9a72f27027e195c2660211d22a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70746f6e6465726561752f6c61726176656c2d7570732d6170693f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ptondereau/laravel-ups-api)[![Latest Version](https://camo.githubusercontent.com/fe7f1490208c75aaa4ce54ec3b5c8810397ecdab8afe5f1b16cb9315e7f17280/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f70746f6e6465726561752f4c61726176656c2d5550532d4170693f7374796c653d666c61742d737175617265)](https://github.com/ptondereau/Laravel-UPS-Api/releases)

Laravel UPS Api was created by, and is maintained by [Pierre Tondereau](https://github.com/ptondereau), and PHP UPS Api was created by, and is maintained by [Gabriel Bull](https://github.com/gabrielbull) at [PHP UPS API](https://github.com/gabrielbull/php-ups-api).

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

[](#installation)

To get the latest version of Laravel UPS Api, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require ptondereau/laravel-ups-api
```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```
{
    "require": {
        "ptondereau/laravel-ups-api": "^1.0"
    }
}
```

The `UpsApiServiceProvider` is auto-discovered and registered by default. If needed, you may register it manually by opening up `config/app.php` and adding the following to the `providers` key.

- `'Ptondereau\LaravelUpsApi\UpsApiServiceProvider'`

You can register all or some of the Ups facades in the `aliases` key of your `config/app.php` file if you like.

- `'UpsAddressValidation' => 'Ptondereau\LaravelUpsApi\Facades\UpsAddressValidation'`
- `'UpsLocator' => 'Ptondereau\LaravelUpsApi\Facades\UpsLocator'`
- `'UpsQuantumView' => 'Ptondereau\LaravelUpsApi\Facades\UpsQuantumView'`
- `'UpsRate' => 'Ptondereau\LaravelUpsApi\Facades\UpsRate'`
- `'UpsTimeInTransit' => 'Ptondereau\LaravelUpsApi\Facades\UpsTimeInTransit'`
- `'UpsTracking' => 'Ptondereau\LaravelUpsApi\Facades\UpsTracking'`
- `'UpsTradeability' => 'Ptondereau\LaravelUpsApi\Facades\UpsTradeability'`
- `'UpsShipping' => 'Ptondereau\LaravelUpsApi\Facades\UpsShipping'`
- `'UpsRateInTransit' => 'Ptondereau\LaravelUpsApi\Facades\UpsRateInTransit'`

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

[](#configuration)

Laravel UPS Api requires connection configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish --provider="Ptondereau\LaravelUpsApi\UpsApiServiceProvider"
```

This will create a `config/ups.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

You also need to add env variables into your .env with your credentials:

```
UPS_ACCESS_KEY=key
UPS_USER_ID=userId
UPS_PASSWORD=password
UPS_SANDBOX=true

```

Usage
-----

[](#usage)

This package only inject and provide Facades for each class of [PHP UPS API](https://github.com/gabrielbull/php-ups-api). You just have to read its documentation.

##### Further Information

[](#further-information)

There are other classes in this package that are not documented here. This is because they are not intended for public use and are used internally by this package.

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an e-mail to Pierre Tondereau at . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

Laravel Ups Api is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance50

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.7% 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

Every ~152 days

Recently: every ~366 days

Total

23

Last Release

363d ago

Major Versions

1.1.2 → 2.0.02020-09-11

v2.3.0 → v3.0.02023-06-13

v3.0.0 → v4.0.02024-05-20

PHP version history (5 changes)1.0.0PHP &gt;=5.5.9

1.0.12PHP ^7.1.3

2.0.0PHP ^7.2.5 || ^8.0

v3.0.0PHP ^7.4.15 || ^8.0

v4.0.0PHP ^8.1 || ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2420b0c65c6a0c8d2869bd9dbfc4e2fc117a3b74d2b7c707ecd93e67203b9a7?d=identicon)[rooferz](/maintainers/rooferz)

---

Top Contributors

[![ptondereau](https://avatars.githubusercontent.com/u/4287777?v=4)](https://github.com/ptondereau "ptondereau (32 commits)")[![Rooferz](https://avatars.githubusercontent.com/u/267503386?v=4)](https://github.com/Rooferz "Rooferz (4 commits)")[![ed-hanton-swytch](https://avatars.githubusercontent.com/u/104428735?v=4)](https://github.com/ed-hanton-swytch "ed-hanton-swytch (1 commits)")[![icweb](https://avatars.githubusercontent.com/u/43120665?v=4)](https://github.com/icweb "icweb (1 commits)")[![ivan-mosiev-altexsoft](https://avatars.githubusercontent.com/u/768022?v=4)](https://github.com/ivan-mosiev-altexsoft "ivan-mosiev-altexsoft (1 commits)")[![NathanGiesbrecht](https://avatars.githubusercontent.com/u/1516627?v=4)](https://github.com/NathanGiesbrecht "NathanGiesbrecht (1 commits)")[![tobytwigger](https://avatars.githubusercontent.com/u/24829185?v=4)](https://github.com/tobytwigger "tobytwigger (1 commits)")[![bmartus](https://avatars.githubusercontent.com/u/4819899?v=4)](https://github.com/bmartus "bmartus (1 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")[![djfrailey](https://avatars.githubusercontent.com/u/5817088?v=4)](https://github.com/djfrailey "djfrailey (1 commits)")

---

Tags

hacktoberfestlaravelphpupsframeworklaravelupsLaravel UPS ApiPierre TondereauPtondereau

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ptondereau-laravel-ups-api/health.svg)

```
[![Health](https://phpackages.com/badges/ptondereau-laravel-ups-api/health.svg)](https://phpackages.com/packages/ptondereau-laravel-ups-api)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k84.2M225](/packages/laravel-horizon)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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