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

v5.0.0(3w ago)34144.7k—1.1%31[1 issues](https://github.com/ptondereau/Laravel-UPS-Api/issues)[1 PRs](https://github.com/ptondereau/Laravel-UPS-Api/pulls)MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5CI failing

Since Mar 18Pushed 1y 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 2d ago

READMEChangelog (10)Dependencies (12)Versions (25)Used By (0)

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

[](#laravel-ups-api)

For Laravel 10 to 13
--------------------

[](#for-laravel-10-to-13)

[![Build Status](https://camo.githubusercontent.com/3903d9c9f0132f9bf04a94555dfcd7c095c9dec95dc54fef95c407f98f368e0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70746f6e6465726561752f4c61726176656c2d5550532d4170692f746573742e796d6c3f6272616e63683d6d6173746572266c6162656c3d5465737473267374796c653d666c61742d737175617265)](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

61

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity90

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 ~162 days

Recently: every ~393 days

Total

24

Last Release

24d 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

v4.1.0 → v5.0.02026-06-10

PHP version history (6 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

v5.0.0PHP ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/267503386?v=4)[rooferz](/maintainers/rooferz)[@Rooferz](https://github.com/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

Static AnalysisPHPStan

Type Coverage Yes

### 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/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/socialite

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

5.7k108.5M886](/packages/laravel-socialite)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M594](/packages/laravel-boost)

PHPackages © 2026

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