Download the PHP package eduardo/gerencianet-sdk-php-atualizado without Composer
On this page you can find all versions of the php package eduardo/gerencianet-sdk-php-atualizado. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gerencianet-sdk-php-atualizado
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 documentation.
Installation
Require this package with composer:
Or include it in your composer.json file:
Requirements
- PHP >= 5.4
Tested with
Getting started
Require the module and namespaces:
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:
For development environment
Instantiate the module passing using your client_id, client_secret and sandbox equals true:
For production environment
To change the environment to production, just set the third sandbox to false:
Running tests
To run tests install PHPUnit and run the following command:
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:
Then open any example in your browser.
:warning: Some examples require you to change some parameters to work, like examples/charge/detail.php where you must change the id parameter.
Additional Documentation
The full documentation with all available endpoints is in https://dev.gerencianet.com.br/.
License
MIT
All versions of gerencianet-sdk-php-atualizado with dependencies
php Version >=5.4.0
codeclimate/php-test-reporter Version v0.3.2