PHPackages                             lucasgiovanny/laravel-erede - 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. [API Development](/categories/api)
4. /
5. lucasgiovanny/laravel-erede

AbandonedArchivedLibrary[API Development](/categories/api)

lucasgiovanny/laravel-erede
===========================

Laravel Service Provider to use eRede PHP SDK

v2.0.0(3y ago)158PHPPHP ^8.0.2

Since Jul 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lucasgiovanny/laravel-erede)[ Packagist](https://packagist.org/packages/lucasgiovanny/laravel-erede)[ GitHub Sponsors](https://github.com/lucasgiovanny)[ RSS](/packages/lucasgiovanny-laravel-erede/feed)WikiDiscussions 2.x Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

eRede API for Laravel
=====================

[](#erede-api-for-laravel)

> THIS PROJECT IS NO LONGER BEING MAINTAINED

This package makes it easy to use [eRede PHP SDK](https://github.com/DevelopersRede/erede-php) with Laravel framework.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

This package can be installed via composer:

`composer require lucasgiovanny/laravel-erede`

Set the enviroments variables in your `.env` file

```
REDE_PV=
REDE_TOKEN=
REDE_SANDBOX=false

```

Usage
-----

[](#usage)

To use this package, you just need to import the Rede Facades.

```
use  lucasgiovanny\ERede\Facades\Rede;
```

### Available methods

[](#available-methods)

- [`authorize`](#authorize): Authorize a transaction with creditcard.
- [`cancel`](#cancel): Cancel a transaction.
- [`get`](#get): Find a transaction by id.
- [`getByReference`](#getByReference): Find a transaction by reference.
- [`getRefunds`](#getRefunds): Find transaction refunds.

#### authorize

[](#authorize)

ParamTypeDefaulttotal*float* (**required**)reference*string* (**required**)creditcard*array* (**required**)capture*bool*`true`installments*int*`1`Example:

```
use  lucasgiovanny\ERede\Facades\Rede;

$creditCard = [
'cardNumber'  =>  "5448280000000007",
'cardCvv' => '123'
'cardExpirationMonth'  =>  '12',
'cardExpirationYear'  =>  '2020',
'cardHolder'  =>  'Walter White',
];

$transaction = Rede::authorize(100.99, 'Order 45', $creditCard);

if ($transaction->getReturnCode() == '00') {
    printf("Success! tid=%s\n", $transaction->getTid());
}
```

- Transactions are captured by default, if you don't want this, you can set the capture parameter to `false`.
- To set installments, just use the last parameter.

#### cancel

[](#cancel)

ParamTypetransaction*string* (**required**)Example:

```
use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::cancel('TID123');
```

#### get

[](#get)

ParamTypetransaction*string* (**required**)Example:

```
use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::get('TID123');
```

#### getByReference

[](#getbyreference)

ParamTypereference*string* (**required**)Example:

```
use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::getByReference('TID123');
```

#### getRefunds

[](#getrefunds)

ParamTypetransaction*string* (**required**)Example:

```
use  lucasgiovanny\ERede\Facades\Rede;

$transaction = Rede::getRefunds('TID123');
```

To do List
----------

[](#to-do-list)

- Tests

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Test needs to be written. Feel free to collaborate.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Lucas Giovanny](https://github.com/lucasgiovanny)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~206 days

Total

4

Last Release

1145d ago

Major Versions

v1.0.0 → v2.0.02022-05-27

1.x-dev → 2.x-dev2023-03-24

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v2.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8487f2121d7a9d801d87e5d28efe83dea1549b6ba8e2fc6519edea6d66eaa31a?d=identicon)[lucasgiovanny](/maintainers/lucasgiovanny)

---

Top Contributors

[![lucasgiovanny](https://avatars.githubusercontent.com/u/4853801?v=4)](https://github.com/lucasgiovanny "lucasgiovanny (18 commits)")

---

Tags

apieredeerede-php-sdklaravelredelaravelpaymentredePagamentoerede

### Embed Badge

![Health badge](/badges/lucasgiovanny-laravel-erede/health.svg)

```
[![Health](https://phpackages.com/badges/lucasgiovanny-laravel-erede/health.svg)](https://phpackages.com/packages/lucasgiovanny-laravel-erede)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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