PHPackages                             douglaszuqueto/gerencianet-sdk-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. [API Development](/categories/api)
4. /
5. douglaszuqueto/gerencianet-sdk-php

ActiveLibrary[API Development](/categories/api)

douglaszuqueto/gerencianet-sdk-php
==================================

GN API SDK PHP

00PHP

Since Oct 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/douglaszuqueto/gerencianet-sdk-php)[ Packagist](https://packagist.org/packages/douglaszuqueto/gerencianet-sdk-php)[ RSS](/packages/douglaszuqueto-gerencianet-sdk-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

SDK GERENCIANET FOR PHP
=======================

[](#sdk-gerencianet-for-php)

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 gerencianet/gerencianet-sdk-php

```

Or include it in your composer.json file:

```
...
"require": {
  "gerencianet/gerencianet-sdk-php": "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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.8% 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/c4f4b6feb33d050fdd6d5d4acd301749231accc34071447d58dc734b6572a7b2?d=identicon)[douglaszuqueto](/maintainers/douglaszuqueto)

---

Top Contributors

[![ceciliadeveza](https://avatars.githubusercontent.com/u/2746797?v=4)](https://github.com/ceciliadeveza "ceciliadeveza (46 commits)")[![dannielhugo](https://avatars.githubusercontent.com/u/4249245?v=4)](https://github.com/dannielhugo "dannielhugo (22 commits)")[![talitacampos](https://avatars.githubusercontent.com/u/2728950?v=4)](https://github.com/talitacampos "talitacampos (8 commits)")[![douglaszuqueto](https://avatars.githubusercontent.com/u/7410247?v=4)](https://github.com/douglaszuqueto "douglaszuqueto (3 commits)")[![franciscotfmc](https://avatars.githubusercontent.com/u/1483404?v=4)](https://github.com/franciscotfmc "franciscotfmc (2 commits)")[![giovani-felipe](https://avatars.githubusercontent.com/u/37030674?v=4)](https://github.com/giovani-felipe "giovani-felipe (1 commits)")[![mariopacio](https://avatars.githubusercontent.com/u/5333657?v=4)](https://github.com/mariopacio "mariopacio (1 commits)")[![mpmnicolau](https://avatars.githubusercontent.com/u/1793450?v=4)](https://github.com/mpmnicolau "mpmnicolau (1 commits)")

### Embed Badge

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

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

###  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)
