PHPackages                             gopague/gopague-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gopague/gopague-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gopague/gopague-php
===================

Go Pague PHP Library

01.9kPHP

Since May 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bfgasparin/gopague-php)[ Packagist](https://packagist.org/packages/gopague/gopague-php)[ RSS](/packages/gopague-gopague-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Go Pague PHP Library
====================

[](#go-pague-php-library)

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

[](#requirements)

PHP 7.0.1 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require gopague/gopague-php
```

To use the go pague classes, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

Dependencies
------------

[](#dependencies)

This library require the following extension in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer
- [`json`](https://secure.php.net/manual/en/book.json.php) (JSON handler)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

First you need set the email and password of the user to login to Go Pague API.

```
GoPague\Http\Client::setEmail('myemail@foo.bar')
GoPague\Http\Client::setPassword('secret');
```

Now you can use the resource binding classes to interact with Go Pague API.

```
// gets the list of banks
$banks = GoPague\Bank::all();
```

> **Note**: See `Resource Binding Classes` section to know all classes and methods available.

The binding classes will automatically use the previous given email and password to login and autenticate to the API before the first API request.

But if you want to autenticate to API manually, just use:

```
$credential = GoPague\Http\Client::login('myemail@foo', 'secret');

// gets the list of banks
$banks = GoPague\Bank::all();
// ...
```

You can access the Logged User data any time just calling the method:

```
$credencial = GoPague\Http\Client::credential();

echo $credential->token;   // the Authenticated Token
echo $credential->userId;   // the Authenticated User Id
echo $credential->clientIds;   // The client ids linked to the Authenticted User
```

Resource Binding Classes
------------------------

[](#resource-binding-classes)

@todo

Development
-----------

[](#development)

Install dependencies:

```
composer install
```

Tests
-----

[](#tests)

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:

```
./vendor/bin/phpunit
```

License
-------

[](#license)

The GoPague PHP Library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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://avatars.githubusercontent.com/u/4076928?v=4)[Bruno Ferme Gasparin](/maintainers/bfgasparin)[@bfgasparin](https://github.com/bfgasparin)

---

Top Contributors

[![bfgasparin](https://avatars.githubusercontent.com/u/4076928?v=4)](https://github.com/bfgasparin "bfgasparin (36 commits)")

---

Tags

gopaguephp-7

### Embed Badge

![Health badge](/badges/gopague-gopague-php/health.svg)

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

###  Alternatives

[balbuf/composer-git-merge-driver

Custom git merge driver to minimize merge conflicts in composer.json and composer.lock files.

136278.1k](/packages/balbuf-composer-git-merge-driver)[lephare/import-bundle

Provide Symfony integration for lephare/import

128.8k](/packages/lephare-import-bundle)

PHPackages © 2026

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