PHPackages                             its-pradeependra/postpin-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. its-pradeependra/postpin-php

ActiveLibrary

its-pradeependra/postpin-php
============================

Official PHP SDK for the Postpin shipping-rate API

v0.1.0(1mo ago)01MITPHPPHP &gt;=8.1

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/its-pradeependra/postpin-php)[ Packagist](https://packagist.org/packages/its-pradeependra/postpin-php)[ Docs](https://postpin.in)[ RSS](/packages/its-pradeependra-postpin-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

its-pradeependra/postpin-php
============================

[](#its-pradeependrapostpin-php)

[![Packagist Version](https://camo.githubusercontent.com/430143b461ab0800713cfbf4337b4954a9a880ed06e1edec84eb9ec086f2bed8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6974732d70726164656570656e6472612f706f737470696e2d706870)](https://packagist.org/packages/its-pradeependra/postpin-php)[![PHP Version](https://camo.githubusercontent.com/cdbf983656201484449516ef1f46d0b5e169254743e7b5912e2e464fd5db9964/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6974732d70726164656570656e6472612f706f737470696e2d706870)](https://packagist.org/packages/its-pradeependra/postpin-php)[![license](https://camo.githubusercontent.com/6c41513db4656d937a28f67fb65c1fc811fd1eda4f2335f85a77ac8f91b5f163/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6974732d70726164656570656e6472612f706f737470696e2d706870)](./LICENSE)

Official PHP SDK for the [Postpin](https://postpin.in) shipping-rate API — calculate courier charges between Indian pincodes, check serviceability, look up the pincode directory, and verify webhooks.

- **Zero Composer dependencies** — uses `ext-curl` and `ext-json` only.
- **Robust by default** — automatic retries with exponential backoff + jitter, `Retry-After` support, per-request timeouts, and idempotency keys.
- **Typed exceptions** — catch `RateLimitException`, `QuotaExceededException`, `ValidationException`, and friends.
- **Secure webhooks** — constant-time HMAC signature verification with replay protection.
- **Testable** — a `Transport` interface lets you inject a fake HTTP client.

Requirements
------------

[](#requirements)

- PHP **8.1+** with `ext-curl` and `ext-json`.

Install
-------

[](#install)

```
composer require its-pradeependra/postpin-php
```

Quick start
-----------

[](#quick-start)

```
