PHPackages                             eng\_assys/iugu - 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. eng\_assys/iugu

ActiveLibrary[API Development](/categories/api)

eng\_assys/iugu
===============

iugu PHP Library

1.0.6(10y ago)0161MITPHPPHP &gt;=5.2

Since Jan 8Pushed 6y agoCompare

[ Source](https://github.com/eng-assys/iugu-php)[ Packagist](https://packagist.org/packages/eng_assys/iugu)[ Docs](https://iugu.com)[ RSS](/packages/eng-assys-iugu/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (12)Used By (0)

Iugu para PHP
=============

[](#iugu-para-php)

[![Build status](https://camo.githubusercontent.com/8356dbfb07fe93feae6b68a5dfb59da30973d4793feb02b91559a252f9e59df4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f697567752f697567752d7068702e737667)](https://travis-ci.org/iugu/iugu-php)

Aviso
-----

[](#aviso)

Devido às modificações na estrutura do código, os testes não estão funcionando e os exemplos disponíveis na pasta 'examples' estão desatualizados (essa situação será consertada em uma release futura).

Requisitos
----------

[](#requisitos)

- PHP 5.4+

Instalação
----------

[](#instalação)

Faça o download da biblioteca:

```
git clone https://github.com/eng-assys/iugu-php

```

### Usando Composer

[](#usando-composer)

```
$ composer require eng_assys/iugu:dev-master

```

O autoload do composer irá cuidar do resto.

Exemplos de Uso
---------------

[](#exemplos-de-uso)

### 1. Buscar um Cliente

[](#1-buscar-um-cliente)

```
require 'vendor/autoload.php';

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

\Iugu\Customer::fetch('8DCD9BE5DC8D4FFD9CE8FA6C0FCAC631');
```

### 2. Criar uma cobrança

[](#2-criar-uma-cobrança)

```
use Iugu\Iugu;

use Iugu\Charge;

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

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

[](#documentação)

Acesse [iugu.com/documentacao](http://iugu.com/documentacao) para referência

Testes
------

[](#testes)

- Testes desatualizados por enquanto.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~169 days

Total

9

Last Release

3819d ago

Major Versions

0.1.0 → 1.0.02014-01-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/38c9efad410cf2038a0059acc5f5e8e3642ac625933cf964bbf0cce7102d3692?d=identicon)[eng\_assys](/maintainers/eng_assys)

---

Top Contributors

[![lucasprag](https://avatars.githubusercontent.com/u/2293178?v=4)](https://github.com/lucasprag "lucasprag (22 commits)")[![pnegri](https://avatars.githubusercontent.com/u/39310?v=4)](https://github.com/pnegri "pnegri (19 commits)")[![filpgame](https://avatars.githubusercontent.com/u/5223937?v=4)](https://github.com/filpgame "filpgame (2 commits)")[![marcelom56](https://avatars.githubusercontent.com/u/9989138?v=4)](https://github.com/marcelom56 "marcelom56 (2 commits)")[![licor](https://avatars.githubusercontent.com/u/485402?v=4)](https://github.com/licor "licor (1 commits)")[![lucaspaiva1](https://avatars.githubusercontent.com/u/12314580?v=4)](https://github.com/lucaspaiva1 "lucaspaiva1 (1 commits)")[![luisvquintas](https://avatars.githubusercontent.com/u/177688?v=4)](https://github.com/luisvquintas "luisvquintas (1 commits)")[![paezao](https://avatars.githubusercontent.com/u/301430?v=4)](https://github.com/paezao "paezao (1 commits)")[![ruivoh](https://avatars.githubusercontent.com/u/22963567?v=4)](https://github.com/ruivoh "ruivoh (1 commits)")[![vfragosop](https://avatars.githubusercontent.com/u/68680?v=4)](https://github.com/vfragosop "vfragosop (1 commits)")[![EduardoIugu](https://avatars.githubusercontent.com/u/42146682?v=4)](https://github.com/EduardoIugu "EduardoIugu (1 commits)")[![wemersonjanuario](https://avatars.githubusercontent.com/u/38724?v=4)](https://github.com/wemersonjanuario "wemersonjanuario (1 commits)")[![eng-assys](https://avatars.githubusercontent.com/u/7086930?v=4)](https://github.com/eng-assys "eng-assys (1 commits)")[![flaviozantut](https://avatars.githubusercontent.com/u/460185?v=4)](https://github.com/flaviozantut "flaviozantut (1 commits)")[![jholdy-dev](https://avatars.githubusercontent.com/u/97171085?v=4)](https://github.com/jholdy-dev "jholdy-dev (1 commits)")

---

Tags

apipagamentosiugu

### Embed Badge

![Health badge](/badges/eng-assys-iugu/health.svg)

```
[![Health](https://phpackages.com/badges/eng-assys-iugu/health.svg)](https://phpackages.com/packages/eng-assys-iugu)
```

###  Alternatives

[iugu/iugu

iugu PHP Library

92327.8k4](/packages/iugu-iugu)[pagarme/pagarme-php

271.5M10](/packages/pagarme-pagarme-php)

PHPackages © 2026

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