2017 © Pedro PelĂĄez
 

library iugu

iugu PHP Library to laravel

image

adhenrique/iugu

iugu PHP Library to laravel

  • Friday, February 24, 2017
  • by adhenrique
  • Repository
  • 1 Watchers
  • 2 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Iugu para PHP

Requisitos

  • PHP 5.3+

Instalação

Faça o download da biblioteca:, (*1)

git clone https://github.com/iugu/iugu-php

Inclua a biblioteca em seu arquivo PHP:, (*2)

require_once(".../iugu-php/lib/Iugu.php");

Usando Composer

$ composer require iugu/iugu
Please provide a version constraint for the iugu/iugu requirement: 1.0.6

O autoload do composer irĂĄ cuidar do resto., (*3)

Exemplo de Uso

Iugu::setApiKey("c73d49f9-6490-46ee-ba36-dcf69f6334fd"); // Ache sua chave API no Painel

Iugu_Charge::create(
    Array(
      "token"=> "TOKEN QUE VEIO DO IUGU.JS OU CRIADO VIA BIBLIOTECA",
      "email"=>"your@email.test",
      "items" => 
      Array(
        Array(
          "description"=>"Item Teste",
          "quantity"=>"1",
          "price_cents"=>"1000"
          )
        )
      )
    );

Documentação

Acesse iugu.com/documentacao para referĂȘncia, (*4)

Testes

Instale as dependĂȘncias. Iugu-PHP utiliza SimpleTest., (*5)

composer update --dev

Execute a comitiva de testes:, (*6)

php ./test/Iugu.php

The Versions

24/02 2017

dev-master

9999999-dev https://iugu.com

iugu PHP Library to laravel

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api pagamentos iugu

23/02 2017

v1.0

1.0.0.0 https://iugu.com

iugu PHP Library to laravel

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api pagamentos iugu