PHPackages                             lucasamauri/moip-subscriptions-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. [Payment Processing](/categories/payments)
4. /
5. lucasamauri/moip-subscriptions-php

ActiveLibrary[Payment Processing](/categories/payments)

lucasamauri/moip-subscriptions-php
==================================

Client PHP Moip for subscriptions

2.2(5y ago)012PHPPHP ^5.6 || ^7.0

Since Jun 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lucas-amauri/moip-subscriptions-php)[ Packagist](https://packagist.org/packages/lucasamauri/moip-subscriptions-php)[ RSS](/packages/lucasamauri-moip-subscriptions-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

MoIp Subscriptions
==================

[](#moip-subscriptions)

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

[](#instalação)

Execute em seu shell:

```
composer require lucasamauri/moip-subscriptions-php

```

> Authentication

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

use Moip\Moip;

$token = '01010101010101010101010101010101';
$key = 'ABABABABABABABABABABABABABABABABABABABAB';

$moip = new Moip($token, $key, Moip::ENDPOINT_SANDBOX);
```

> Planos

```
// Create a plan
$plan = $moip->plan()
    ->setCode("P99")
    ->setName("R$99")
    ->setDescription("Plano R$99")
    ->setAmount(99.00)
    ->create();

// List Plans
$moip->plan()->getList();
```

> Assinatura

```
// Create a subscription
$customer = $moip->customer()
        ->setCode("01")
        ->setFullname("Your Awesome Name")
        ->setTaxDocument("999.999.999-99")
        ->setEmail("mail@example.com")
        ->setPhone(31, 99999999)
        ->setBirthDate("1980-06-02")
        ->addAddress("AV", "Larga", null, "Vila Cristina", "Belo Horizonte", "MG", "33333-333")
        ->setBillingInfo("Your Awesome Name", "5209 9026 0329 5762", 12, 21, 522)
        ;
try {
    $subscription = $moip->subscription()
        ->setCode("01")
        ->setCustomer($customer)
        ->setPlan("P99")
        ->setPaymentMethod("CREDIT_CARD")
        ->create();
}
catch (Exception $e) {
    var_dump($e->getMessage());
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

10

Last Release

2129d ago

Major Versions

1.2.2 → 2.02020-06-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecce8925afb304ee46488108f210d012ea52a4df205680accfffa8b598fff67d?d=identicon)[lucas-amauri](/maintainers/lucas-amauri)

---

Top Contributors

[![lucas-amauri](https://avatars.githubusercontent.com/u/3185304?v=4)](https://github.com/lucas-amauri "lucas-amauri (13 commits)")

### Embed Badge

![Health badge](/badges/lucasamauri-moip-subscriptions-php/health.svg)

```
[![Health](https://phpackages.com/badges/lucasamauri-moip-subscriptions-php/health.svg)](https://phpackages.com/packages/lucasamauri-moip-subscriptions-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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