PHPackages                             ervinomueller/pagarme-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. ervinomueller/pagarme-php

ActiveLibrary[API Development](/categories/api)

ervinomueller/pagarme-php
=========================

v3.7.12(7y ago)010MITPHPPHP &gt;=5.4.0

Since May 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ervinomueller/pagarme-php)[ Packagist](https://packagist.org/packages/ervinomueller/pagarme-php)[ Docs](http://pagar.me)[ RSS](/packages/ervinomueller-pagarme-php/feed)WikiDiscussions V3 Synced 2mo ago

READMEChangelog (2)Dependencies (4)Versions (51)Used By (0)

[![](https://camo.githubusercontent.com/e44007c358a56fd8bcb985c515bc959288de4fe8c0e9a989580853684c976894/68747470733a2f2f63646e2e7261776769742e636f6d2f70616761726d652f6272616e642f396563333064336434613664643862373939626361316332356636306662313233616436366435622f6c6f676f2d636972636c652e737667)](https://camo.githubusercontent.com/e44007c358a56fd8bcb985c515bc959288de4fe8c0e9a989580853684c976894/68747470733a2f2f63646e2e7261776769742e636f6d2f70616761726d652f6272616e642f396563333064336434613664643862373939626361316332356636306662313233616436366435622f6c6f676f2d636972636c652e737667)

Pagar.me PHP SDK
================

[](#pagarme-php-sdk)

PHP integration for [Pagar.me API](https://docs.pagar.me/api/)

[![SensioLabsInsight](https://camo.githubusercontent.com/c21ed309602c21bd666de1f63aa110e98fc3ae8700599810161787051598f896/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34633334636331332d653532662d343932652d613266322d6462636433393831333561322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4c34cc13-e52f-492e-a2f2-dbcd398135a2)[![Coverage Status](https://camo.githubusercontent.com/e4d37b47f94de984d24e8c552bcad7f1d7c62a33095705d798c8db93d4b21fa9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70616761726d652f70616761726d652d7068702f62616467652e7376673f6272616e63683d5633)](https://coveralls.io/github/pagarme/pagarme-php?branch=V3)

ANNOUNCEMENT: this fork was made to add fields that the original sdk does not support yet (2018-11-15)
------------------------------------------------------------------------------------------------------

[](#announcement-this-fork-was-made-to-add-fields-that-the-original-sdk-does-not-support-yet-2018-11-15)

Installation
------------

[](#installation)

Via Composer

```
composer require 'ervinomueller/pagarme-php'
```

Usage
-----

[](#usage)

### Basic

[](#basic)

First you need to create an PagarMe object with your API-KEY (Avaliable on your [dashboard](https://dashboard.pagar.me/#/myaccount/apikeys))

```
$apiKey = 'ak_test_grXijQ4GicOa2BLGZrDRTR5qNQxJW0';
$pagarMe =  new \PagarMe\Sdk\PagarMe($apiKey);
```

### Wiki

[](#wiki)

Check the [wiki](https://github.com/pagarme/pagarme-php/wiki) for detailed documentation.

### Contributing

[](#contributing)

**Also** checkout our [contributing guide](CONTRIBUTING.md) before you send us any contribution.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

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 ~29 days

Recently: every ~14 days

Total

44

Last Release

2737d ago

Major Versions

v1.1.0 → 2.x-dev2016-05-24

v2.0 → v3.02017-01-16

v3.7.9 → v4.0.0-alpha2018-09-20

v3.7.10 → 4.x-dev2018-11-01

PHP version history (3 changes)v1.0.0PHP &gt;5.3

v3.0PHP &gt;=5.4.0

v4.0.0-alphaPHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a44e90dba18d9e2ebed30eeb534b7e3728803d9e97e2b4db634579cc5edd4ae?d=identicon)[ervino.mueller](/maintainers/ervino.mueller)

---

Top Contributors

[![dudu](https://avatars.githubusercontent.com/u/1363250?v=4)](https://github.com/dudu "dudu (115 commits)")[![XDUH](https://avatars.githubusercontent.com/u/76275161?v=4)](https://github.com/XDUH "XDUH (44 commits)")[![devdrops](https://avatars.githubusercontent.com/u/1259313?v=4)](https://github.com/devdrops "devdrops (40 commits)")[![murilohns](https://avatars.githubusercontent.com/u/18074134?v=4)](https://github.com/murilohns "murilohns (12 commits)")[![leonampd](https://avatars.githubusercontent.com/u/1620107?v=4)](https://github.com/leonampd "leonampd (7 commits)")[![ervinomueller](https://avatars.githubusercontent.com/u/2325833?v=4)](https://github.com/ervinomueller "ervinomueller (7 commits)")[![williamokano](https://avatars.githubusercontent.com/u/5909442?v=4)](https://github.com/williamokano "williamokano (6 commits)")[![ricardotulio](https://avatars.githubusercontent.com/u/5113666?v=4)](https://github.com/ricardotulio "ricardotulio (5 commits)")[![petriuslima](https://avatars.githubusercontent.com/u/7064106?v=4)](https://github.com/petriuslima "petriuslima (3 commits)")[![eduardostuart](https://avatars.githubusercontent.com/u/767879?v=4)](https://github.com/eduardostuart "eduardostuart (2 commits)")[![gstpereira](https://avatars.githubusercontent.com/u/1766798?v=4)](https://github.com/gstpereira "gstpereira (2 commits)")[![KennedyTedesco](https://avatars.githubusercontent.com/u/999232?v=4)](https://github.com/KennedyTedesco "KennedyTedesco (2 commits)")[![ThamaraHessel](https://avatars.githubusercontent.com/u/1061875?v=4)](https://github.com/ThamaraHessel "ThamaraHessel (2 commits)")[![DfKimera](https://avatars.githubusercontent.com/u/581765?v=4)](https://github.com/DfKimera "DfKimera (2 commits)")[![leonardo-barbosa](https://avatars.githubusercontent.com/u/30467625?v=4)](https://github.com/leonardo-barbosa "leonardo-barbosa (1 commits)")[![jonathanribas](https://avatars.githubusercontent.com/u/3003782?v=4)](https://github.com/jonathanribas "jonathanribas (1 commits)")[![flyingluscas](https://avatars.githubusercontent.com/u/6232791?v=4)](https://github.com/flyingluscas "flyingluscas (1 commits)")[![MarcoWorms](https://avatars.githubusercontent.com/u/7863230?v=4)](https://github.com/MarcoWorms "MarcoWorms (1 commits)")[![lflimeira](https://avatars.githubusercontent.com/u/7549765?v=4)](https://github.com/lflimeira "lflimeira (1 commits)")

---

Tags

apipagamentospagar.mepayments brazilpagamento brasil

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ervinomueller-pagarme-php/health.svg)

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

###  Alternatives

[pagarme/pagarme-php

271.5M10](/packages/pagarme-pagarme-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[iugu/iugu

iugu PHP Library

92327.8k4](/packages/iugu-iugu)

PHPackages © 2026

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