Download the PHP package asteriskpound/usps-php-api without Composer

On this page you can find all versions of the php package asteriskpound/usps-php-api. 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-php-api

USPS PHP API

A comprehensive PHP library for integrating with the USPS Web APIs, providing easy access to shipping rates, address validation, location services, and more.

Features

Requirements

Installation

Install via Composer:

Getting Started

1. Obtain USPS API Credentials

  1. Visit the USPS Developer Portal
  2. Register for an account
  3. Create a new application to get your Consumer Key and Consumer Secret
  4. Note: Some APIs require additional business account setup

2. Basic Setup

3. Configuration Options

Usage Examples

Address Validation

Domestic Pricing

International Pricing

Location Services

Available Enums

The library provides comprehensive enums for type safety:

Testing

The library includes comprehensive tests. To run them:

1. Set Up Test Environment

Create a .env file in the project root:

2. Run Tests

3. Test Configuration

The test suite includes:

Error Handling

The library provides specific exception types:

Advanced Configuration

Custom Cache Implementation

Implement PSR-6 caching for improved performance:

Request Validation

Control request validation behavior:

Custom Timeout

Adjust request timeouts:

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass (./vendor/bin/phpunit)
  6. Commit your changes (git commit -m 'Add feature')
  7. Push to the branch (git push origin feature/feature)
  8. Open a Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

Changelog

v0.1.0 (Current)


Note: This library is not officially affiliated with the United States Postal Service. USPS is a trademark of the United States Postal Service.


All versions of usps-php-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/guzzle Version ^7.0
league/openapi-psr7-validator Version ^0.22
marc-mabe/php-enum Version ^4.6
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 asteriskpound/usps-php-api contains the following files

Loading the files please wait ...