Skip to content

Releases: mmediasoftwarelab/usps-oauth-php

v1.0.0 - Initial Release

11 Jan 02:54

Choose a tag to compare

Initial Release

Added

  • Initial release of USPS OAuth PHP library
  • OAuth 2.0 authentication with automatic token refresh and caching
  • Domestic shipping rate calculations with 10+ service types
  • International shipping rate calculations
  • Support for all major USPS services (Ground Advantage, Priority Mail, Media Mail, etc.)
  • PSR-4 autoloading
  • PSR-3 logging support (optional)
  • Modern PHP 8.1+ with strict type safety
  • Comprehensive exception handling (Authentication, API, HTTP, Rate, Validation)
  • Rate adjustment and handling fee support (markup/discount)
  • Framework-agnostic HTTP client interface
  • cURL-based HTTP client implementation with proper error handling
  • Service type enums for type safety (DomesticServiceType, InternationalServiceType)
  • Rich Rate model with helper methods
  • MIT license for maximum flexibility

Testing

  • 43 comprehensive tests (38 unit + 5 integration)
  • 120+ test assertions covering all major functionality
  • PHPStan level 8 static analysis (strictest type checking)
  • PSR-12 code style compliance
  • Real API integration tests for production validation

Documentation

  • Complete setup and usage guide
  • Integration examples (WordPress, Laravel)
  • Testing documentation
  • Publishing and monetization guides