Download the PHP package justinholtweb/craft-carrier-usps without Composer

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

Carrier for USPS

USPS for Carrier, on the USPS APIs v3 (apis.usps.com), not the retired Web Tools XML. Prices, domestic, international and return labels, voids, reprints, tracking, carrier pickups, Hold for Pickup at a Post Office, and US address validation.

This package translates one API and nothing else. Packing, checkout, label storage, the claim that stops a label being bought twice, tracking schedules, the point picker and the log are Carrier's.

Requirements

Installation

Then add a USPS connection under Carrier → Connections and press Test. The test reads which APIs your app has been granted and, when the payment account is filled in, proves it can pay for a label.

What it does

Feature Notes
Live rates Shipping Options prices every class in one call, once per distinct package
Labels PDF 4×6, ZPL (203 dpi) and PNG; one call per package (USPS has no shipment grouping)
Multi-piece One tracking number per package, in order; see "Partial failure" below
International First-Class Package, Priority Mail and Priority Mail Express International, with customs
Returns Pay-on-use return labels (/labels/v3/return-label)
Void Cancelled at no charge, or a refund request when USPS has already processed the label
Reprint Domestic and international
Tracking Tracking 3.2 batch, 35 numbers a request
Post Offices Search-mode points, for Hold for Pickup services
Carrier pickup Free, Monday to Saturday
Address validation US addresses and territories

Things worth knowing

Partial failure

USPS buys labels one package at a time. If package 2 fails after package 1 was bought:

Unverified

Written against the USPS OpenAPI specs and examples without a live account. These are marked UNVERIFIED in src/carriers/UspsCarrier.php, and should be confirmed in TEM:

Testing

tests/fixtures.php answers every endpoint with USPS's documented shapes so the conformance suite runs the happy path.

Licence

The Craft License. See Carrier, which is commercial.


All versions of craft-carrier-usps with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.3.0
justinholtweb/craft-carrier Version ^5.0.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 justinholtweb/craft-carrier-usps contains the following files

Loading the files please wait ...