PHPackages                             eduardo/gerencianet-sdk-php-atualizado - 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. eduardo/gerencianet-sdk-php-atualizado

ActiveLibrary[API Development](/categories/api)

eduardo/gerencianet-sdk-php-atualizado
======================================

GN API SDK PHP

1.0.11(9y ago)391MITPHPPHP &gt;=5.4.0

Since Dec 9Pushed 9y ago2 watchersCompare

[ Source](https://github.com/eduardo76/gerencianet)[ Packagist](https://packagist.org/packages/eduardo/gerencianet-sdk-php-atualizado)[ RSS](/packages/eduardo-gerencianet-sdk-php-atualizado/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SDK GERENCIANET FOR PHP - NÃO OFICIAL
=====================================

[](#sdk-gerencianet-for-php---não-oficial)

== NÃO OFICIAL ==
Sdk for Gerencianet Pagamentos' API. For more informations about parameters and values, please refer to [Gerencianet](http://gerencianet.com.br) documentation.

[![Build Status](https://camo.githubusercontent.com/56a16388ec2c2f041d00ce00ac5d26a0f7fe22d84cd07a6a204478c73dbc082f/68747470733a2f2f7472617669732d63692e6f72672f676572656e6369616e65742f676e2d6170692d73646b2d7068702e737667)](https://travis-ci.org/gerencianet/gn-api-sdk-php)[![Code Climate](https://camo.githubusercontent.com/76601754d3e0d0e7d86c5dc71fa4f915d0b7118367353c1e1c05262625d47afd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f676572656e6369616e65742f676e2d6170692d73646b2d7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/gerencianet/gn-api-sdk-php)[![Test Coverage](https://camo.githubusercontent.com/5330b1e663217e5b9cfd827abcf74041d6acc26051e99547e445a7addb877c6e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f676572656e6369616e65742f676e2d6170692d73646b2d7068702f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/gerencianet/gn-api-sdk-php/coverage)

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

[](#installation)

Require this package with [composer](https://getcomposer.org/):

```
$ composer require eduardo/gerencianet-sdk-php-atualizado

```

Or include it in your composer.json file:

```
...
"require": {
  "eduardo/gerencianet-sdk-php-atualizado": "1.*"
},
...

```

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

[](#requirements)

- PHP &gt;= 5.4

Tested with
-----------

[](#tested-with)

```
php 5.4 and 5.5

```

Getting started
---------------

[](#getting-started)

Require the module and namespaces:

```
require __DIR__ . '/../sdk/vendor/autoload.php';

use Gerencianet\Gerencianet;
```

Although the web services responses are in json format, the sdk will convert any server response to array. The code must be within a try-catch and exceptions can be handled as follow:

```
try {
  /* code */
} catch(GerencianetException $e) {
  /* Gerencianet's api errors will come here */
} catch(Exception $ex) {
  /* Other errors will come here */
}
```

### For development environment

[](#for-development-environment)

Instantiate the module passing using your client\_id, client\_secret and sandbox equals true:

```
$options = [
  'client_id' => 'client_id',
  'client_secret' => 'client_secret',
  'sandbox' => true
];

$api = new Gerencianet($options);
```

### For production environment

[](#for-production-environment)

To change the environment to production, just set the third sandbox to false:

```
$options = [
  'client_id' => 'client_id',
  'client_secret' => 'client_secret',
  'sandbox' => false
];

$api = new Gerencianet($options);
```

Running tests
-------------

[](#running-tests)

To run tests install [PHPUnit](https://phpunit.de/getting-started.html) and run the following command:

```
$ phpunit -c config.xml
```

Running examples
----------------

[](#running-examples)

Update examples/config.json file with client\_id and client\_secret of your application.

You can run using any web server, like Apache or nginx, or simple start a php server as follow:

```
php -S localhost:9000
```

Then open any example in your browser.

⚠️ Some examples require you to change some parameters to work, like examples/charge/detail.php where you must change the id parameter.

Additional Documentation
------------------------

[](#additional-documentation)

The full documentation with all available endpoints is in .

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3441d ago

### Community

---

Top Contributors

[![eduardo76](https://avatars.githubusercontent.com/u/12026259?v=4)](https://github.com/eduardo76 "eduardo76 (6 commits)")

### Embed Badge

![Health badge](/badges/eduardo-gerencianet-sdk-php-atualizado/health.svg)

```
[![Health](https://phpackages.com/badges/eduardo-gerencianet-sdk-php-atualizado/health.svg)](https://phpackages.com/packages/eduardo-gerencianet-sdk-php-atualizado)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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