joaquimrabelo/iugu 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

joaquimrabelo/iugu

最新稳定版本:1.0.0

Composer 安装命令:

composer require joaquimrabelo/iugu

包简介

iugu PHP Library

README 文档

README

Build status

Requisitos

  • PHP 5.4+

Instalação

Faça o download da biblioteca:

git clone git@github.com:joaquimrabelo/iugu-php.git

Inclua a biblioteca em seu arquivo PHP:

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

Usando Composer

$ composer require joaquimrabelo/iugu-php
Please provide a version constraint for the iugu/iugu requirement: 1.0.0

O autoload do composer irá cuidar do resto.

Exemplo de Uso

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

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

Documentação

Acesse iugu.com/documentacao para referência

Testes

Instale as dependências:

composer update

Execute a comitiva de testes:

composer tests

统计信息

  • 总下载量: 5.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 65
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-02