PHPackages                             bizcommerce/erede-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. [HTTP &amp; Networking](/categories/http)
4. /
5. bizcommerce/erede-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bizcommerce/erede-php
=====================

e.Rede integration SDK

v4.0.3(2w ago)085MITPHPPHP &gt;=8.1CI passing

Since Jun 21Pushed 2w ago2 watchersCompare

[ Source](https://github.com/bizcommerce/erede-php)[ Packagist](https://packagist.org/packages/bizcommerce/erede-php)[ RSS](/packages/bizcommerce-erede-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (11)Versions (4)Used By (0)

eRede PHP SDK
=============

[](#erede-php-sdk)

A modern **PHP 8.1+** SDK for the [e.Rede](https://developer.userede.com.br/e-rede) payment API.

Version **4.0** is a ground-up modernization:

- 🔐 **OAuth 2.0** (`client_credentials`) — tokens fetched, cached and auto-refreshed for you.
- 🔌 **PSR-18 transport** — bring your own HTTP client (Guzzle, Symfony, …); zero hard curl dependency.
- 🧱 **Typed &amp; enum-based API** — `declare(strict_types=1)`, typed properties, backed enums, `DateTimeImmutable`.
- 💳 Credit / debit authorization, capture, cancel/refund, query, **zero-dollar** validation.
- 🛡️ **3D Secure 2.0**, **antifraud**, **IATA/airline**, **sub-acquirer / marketplace**.
- ⚡ **Pix** (QR Code + webhooks) and **Tokenization** (card / brand token).

> **Upgrading from 3.x?** The API is intentionally breaking (enums, PSR-18, `DateTimeImmutable`). See the **[4.0 migration guide](docs/migration-4.0.md)**.

---

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

[](#requirements)

- PHP **&gt;= 8.1** with `ext-json`
- A **PSR-18 HTTP client** and **PSR-17 factories** (the SDK ships none — you pick the implementation)

Installation
------------

[](#installation)

```
composer require bizcommerce/erede-php

# plus any PSR-18 client (auto-discovered via php-http/discovery). For example:
composer require guzzlehttp/guzzle
# or:  composer require symfony/http-client nyholm/psr7
```

The SDK finds your installed client automatically. To inject one explicitly, see [Configuration → HTTP client](docs/configuration.md#http-client).

---

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

[](#quick-start)

```
