Download the PHP package mmediasoftwarelab/usps-oauth-php without Composer

On this page you can find all versions of the php package mmediasoftwarelab/usps-oauth-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package usps-oauth-php

USPS OAuth PHP Library

Latest Version PHP Version License Tests Coverage

Modern PHP library for the USPS OAuth 2.0 API (2026+). Get real-time shipping rates, generate labels, and track packages using the latest USPS Web Tools API v3.

Why this library?

Installation

Requirements

Getting USPS API Credentials

  1. Create a USPS Business Account at USPS.com
  2. Request API access through the USPS Web Tools portal
  3. You'll receive a Client ID and Client Secret for OAuth authentication

Environment Setup

For development and testing, create a .env file:

Add your credentials:

Note: Never commit .env to version control. It's already in .gitignore.

Quick Start

Features

Domestic Shipping Rates

International Shipping Rates

Supported Services

Domestic:

International:

Configuration

Sandbox vs Production

Custom HTTP Client

Logging

Framework Integration

Laravel

Symfony

WordPress/WooCommerce

See the WordPress Adapter for WooCommerce integration.

Error Handling

Testing

This library has comprehensive test coverage with unit and integration tests.

Test Coverage: 90%+ code coverage with automated CI/CD testing on PHP 8.1, 8.2, and 8.3.

See TESTING.md for detailed testing documentation.

Documentation

API Documentation

For detailed USPS API documentation, visit:

Examples

Check the examples directory for:

Premium Features 💎

Looking for advanced features? Check out USPS OAuth PHP Pro:

Learn more about Pro features →

Framework Integrations

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Security

If you discover any security issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.

Credits

Developed by M Media

Support


All versions of usps-oauth-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-curl Version *
psr/log Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mmediasoftwarelab/usps-oauth-php contains the following files

Loading the files please wait ...