PHPackages                             lzerma/rede-gateway - 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. [Payment Processing](/categories/payments)
4. /
5. lzerma/rede-gateway

ActiveLibrary[Payment Processing](/categories/payments)

lzerma/rede-gateway
===================

Gateway de pagamento com a plataforma Rede.

2581PHP

Since May 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lzerma/gateway-rede)[ Packagist](https://packagist.org/packages/lzerma/rede-gateway)[ RSS](/packages/lzerma-rede-gateway/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4097f5d5dcf1921d3d3c911c76e88085acaeef5930f6c43f4fcbc524a575e412/68747470733a2f2f7472617669732d63692e6f72672f6c7a65726d612f676174657761792d726564652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lzerma/gateway-rede)[![Code Climate](https://camo.githubusercontent.com/4dbf58bfa477126c9a4fd335c3bed2cb455ce20ece5ec695f3a37b53d715102e/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3535316464636466363935363830366333653030313331302f6261646765732f33633235383035333339343861663565666463632f6770612e737667)](https://codeclimate.com/repos/551ddcdf6956806c3e001310/feed)

Payment Gateway - E-Rede
========================

[](#payment-gateway---e-rede)

This module provides a interface for communication with the payment gateway E-Rede.

For use this library, you need a install, by using [GitHub](http://git@github.com:lzerma/gateway-rede.git) or use composer.

For use composer, edit your *composer.json* and add line below:

> "lzerma/rede-gateway": "stable"

After install the library, you can use setting a few objects to create a request and after send to the gateway.

***Authentication object:***

```
// Auth object
$auth = new Authetication();
$auth->setAcquirerCode("1212121");
$auth->setPassword("###");
```

In this case, I creating a new object with the ***acquirer code*** *(providing by E-Rede)* and the ***password*** *(provinding by E-Rede)*.

***Card data Object***

```
// Card object
$card = new Card()

$card->setCardPan("0101010101010101");
$card->setCardExpiryDate("01/15");
$card->setCvc(123);

// In the CartTypes class, exists others methods for configure this object.
$card->setCardMethod(CardTypes::$CARD_TXN_METHOD_AUTH);

// Set card type operation (Credit ou Debit)
$card->setCardType(CardTypes::$CARD_CREDIT);

// Country of transaction
$card->setCountry("Brazil");
```

This lines above create a new card object with a many information, like a number of card, expiration date of card, security code of card, etc. You can find in a list of all parameters [here](#).

For use boleto in your integration, you must need write the lines below:

```
// Boleto object
$boleto->setFirstName("Lucas");
$boleto->setLastName("Zerma");
$boleto->setBillingStret1("No name street, n/a number");
$boleto->setExpiryDate('2013-05-01');
$boleto->setCustomerEmail("lzerma[at]gmail[dot]com");
$boleto->setCustomerIp(192.168.1.1);
$boleto->setInstructions("Few instructions for the bank employer.");
// Here you can set which processor bank you work. A list of all you find on the respective class.
$boleto->setProcessorId(\Rede\Gateway\Types\Boleto::$PROCESSOR_BANCOBRASIL);
```

This lines configure one object with all information about the boleto request for sending to gateway e-rede.

*ps: This properties listed above is only required properties and the list of all the properties you find [here](#)*

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdecb68df787953ec82ba95521ee2168cddb27ab63284a16e56a7457c62b3dc9?d=identicon)[lzerma](/maintainers/lzerma)

---

Top Contributors

[![lzerma](https://avatars.githubusercontent.com/u/1020217?v=4)](https://github.com/lzerma "lzerma (56 commits)")

### Embed Badge

![Health badge](/badges/lzerma-rede-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/lzerma-rede-gateway/health.svg)](https://phpackages.com/packages/lzerma-rede-gateway)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
