PHPackages                             hotelja/iugu-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. [API Development](/categories/api)
4. /
5. hotelja/iugu-php

ActiveLibrary[API Development](/categories/api)

hotelja/iugu-php
================

iugu PHP Library

1.0.5(12y ago)020MITPHPPHP &gt;=5.2

Since Jan 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/hotelja/iugu-php)[ Packagist](https://packagist.org/packages/hotelja/iugu-php)[ Docs](https://iugu.com)[ RSS](/packages/hotelja-iugu-php/feed)WikiDiscussions master Synced 3w ago

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

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

[](#iugu-para-php)

Requisitos
----------

[](#requisitos)

- PHP 5.3+

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

[](#instalação)

Faça o download da biblioteca:

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

```

Inclua a biblioteca em seu arquivo PHP:

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

```

### Usando Composer

[](#usando-composer)

```
$ composer require hotelja/iugu-php
Please provide a version constraint for the hotelja/iugu-php requirement: 1.0.5

```

O autoload do composer irá cuidar do resto.

Exemplo de Uso
--------------

[](#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
------------

[](#documentação)

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

Testes
------

[](#testes)

Instale as dependências. Iugu-PHP utiliza SimpleTest.

```
composer update --dev

```

Execute a comitiva de testes:

```
php ./test/Iugu.php

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~17 days

Total

8

Last Release

4472d ago

Major Versions

0.1.0 → 1.0.02014-01-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/29a548aeffc651cb6af786419894f2eb5e932e0856afb425dcbe9d30b56271a0?d=identicon)[gusnips](/maintainers/gusnips)

---

Top Contributors

[![pnegri](https://avatars.githubusercontent.com/u/39310?v=4)](https://github.com/pnegri "pnegri (15 commits)")[![gusnips](https://avatars.githubusercontent.com/u/981265?v=4)](https://github.com/gusnips "gusnips (2 commits)")[![flaviozantut](https://avatars.githubusercontent.com/u/460185?v=4)](https://github.com/flaviozantut "flaviozantut (1 commits)")[![paezao](https://avatars.githubusercontent.com/u/301430?v=4)](https://github.com/paezao "paezao (1 commits)")[![vfragosop](https://avatars.githubusercontent.com/u/68680?v=4)](https://github.com/vfragosop "vfragosop (1 commits)")[![wemersonjanuario](https://avatars.githubusercontent.com/u/38724?v=4)](https://github.com/wemersonjanuario "wemersonjanuario (1 commits)")

---

Tags

apipagamentosiugu

### Embed Badge

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

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

###  Alternatives

[iugu/iugu

iugu PHP Library

89331.2k4](/packages/iugu-iugu)

PHPackages © 2026

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