Download the PHP package its-pradeependra/postpin-php without Composer

On this page you can find all versions of the php package its-pradeependra/postpin-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 postpin-php

its-pradeependra/postpin-php

Packagist Version PHP Version

Official PHP SDK for the Postpin shipping-rate API — calculate courier charges between Indian pincodes, check serviceability, look up the pincode directory, and verify webhooks.

Requirements

Install

Quick start

Load your API key from the environment — never hard-code it.

Configuration

Resources

Each method returns an associative array decoded from the API response.

Error handling

Every failure throws a subclass of Postpin\Exception\PostpinException:

Exception HTTP When
AuthenticationException 401 Missing or invalid API key
PermissionException 403 Key lacks the required scope
ValidationException 400 / 422 Invalid parameters ($e->details)
NotFoundException 404 Resource does not exist
QuotaExceededException 402 Monthly quota used up
RateLimitException 429 Too many requests ($e->retryAfter)
ApiException 5xx Server-side error (auto-retried)
TimeoutException Request exceeded the timeout
ConnectionException Network failure after retries

Every PostpinException exposes $errorCode, $statusCode, $requestId, $details, and $headers.

Webhooks

Verify against the raw request body — re-serializing the JSON breaks the signature.

verify() returns true or throws; constructEvent() verifies and returns the parsed event array. Both accept a $toleranceSeconds argument (default 300; 0 disables the replay check).

License

MIT © Postpin


All versions of postpin-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
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 its-pradeependra/postpin-php contains the following files

Loading the files please wait ...