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.
Download mmediasoftwarelab/usps-oauth-php
More information about mmediasoftwarelab/usps-oauth-php
Files in mmediasoftwarelab/usps-oauth-php
Package usps-oauth-php
Short Description Modern PHP library for USPS OAuth 2.0 API - Shipping rates, labels, and tracking for the 2026+ API
License MIT
Homepage https://github.com/mmediasoftwarelab/usps-oauth-php
Informations about the package usps-oauth-php
USPS OAuth PHP Library
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?
- ✅ OAuth 2.0 - Uses the new USPS API (2026+ ready)
- ✅ Modern PHP - PHP 8.1+ with type safety
- ✅ Framework Agnostic - Works with any PHP project
- ✅ PSR Compatible - PSR-4 autoloading, PSR-3 logging
- ✅ Well Tested - Comprehensive unit tests
- ✅ Production Ready - Used in commercial applications
Installation
Requirements
- PHP 8.1 or higher
- ext-json
- ext-curl
- ext-openssl (for HTTPS requests)
- ext-mbstring (recommended)
- Valid USPS Business Account with API credentials
Getting USPS API Credentials
- Create a USPS Business Account at USPS.com
- Request API access through the USPS Web Tools portal
- 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:
- USPS Ground Advantage
- Priority Mail
- Priority Mail Express
- Media Mail
- First-Class Package
International:
- Priority Mail International
- Priority Mail Express International
- First-Class Package 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
- QUICKSTART.md - Quick start guide and overview
- TESTING.md - Comprehensive testing guide
- MONETIZATION_STRATEGY.md - Business model and revenue strategy
- LICENSING_IMPLEMENTATION.md - Premium features licensing guide
- CONTRIBUTING.md - How to contribute
API Documentation
For detailed USPS API documentation, visit:
Examples
Check the examples directory for:
- Basic usage
- Laravel integration
- Symfony integration
- WordPress/WooCommerce adapter
- Custom HTTP client
- Error handling patterns
Premium Features 💎
Looking for advanced features? Check out USPS OAuth PHP Pro:
- 🏷️ Label Generation - PDF, PNG, and ZPL formats
- 📦 Package Tracking - Real-time tracking with webhooks
- 📊 Multi-Carrier - Compare rates across USPS, UPS, FedEx
- ⚡ Rate Caching - Redis/Memcached integration
- 🔄 Batch Operations - Process thousands of shipments
- 💳 Commercial Support - Priority support and SLA
Learn more about Pro features →
Framework Integrations
- WooCommerce Plugin - $149
- Laravel Package - Coming Q2 2026
- Symfony Bundle - Coming Q2 2026
- Magento Extension - Coming Q3 2026
- Shopify App - Coming Q3 2026
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
- Email: [email protected]
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Commercial Support: Contact Sales
- Documentation: Full Documentation