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

ActiveLibrary[Payment Processing](/categories/payments)

pilhadigital/pagarme-php
========================

3.x-dev114PHP

Pushed 8y agoCompare

[ Source](https://github.com/devpilha/custom-pagarme)[ Packagist](https://packagist.org/packages/pilhadigital/pagarme-php)[ RSS](/packages/pilhadigital-pagarme-php/feed)WikiDiscussions V3 Synced today

READMEChangelogDependenciesVersions (1)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)

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

[](#installation)

Via Composer

```
composer require 'pagarme/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

15

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/26129cc0229f0b4c0dd44c22a8bb830a7b32be32cf5cbd175c0fc6ec4d9cd57f?d=identicon)[pilhadigital](/maintainers/pilhadigital)

---

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 (43 commits)")[![devdrops](https://avatars.githubusercontent.com/u/1259313?v=4)](https://github.com/devdrops "devdrops (40 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)")[![palmamatheus](https://avatars.githubusercontent.com/u/26751411?v=4)](https://github.com/palmamatheus "palmamatheus (3 commits)")[![DfKimera](https://avatars.githubusercontent.com/u/581765?v=4)](https://github.com/DfKimera "DfKimera (2 commits)")[![gstpereira](https://avatars.githubusercontent.com/u/1766798?v=4)](https://github.com/gstpereira "gstpereira (2 commits)")[![ThamaraHessel](https://avatars.githubusercontent.com/u/1061875?v=4)](https://github.com/ThamaraHessel "ThamaraHessel (2 commits)")[![MarcoWorms](https://avatars.githubusercontent.com/u/7863230?v=4)](https://github.com/MarcoWorms "MarcoWorms (1 commits)")[![leonardo-barbosa](https://avatars.githubusercontent.com/u/30467625?v=4)](https://github.com/leonardo-barbosa "leonardo-barbosa (1 commits)")[![flyingluscas](https://avatars.githubusercontent.com/u/6232791?v=4)](https://github.com/flyingluscas "flyingluscas (1 commits)")[![jonathanribas](https://avatars.githubusercontent.com/u/3003782?v=4)](https://github.com/jonathanribas "jonathanribas (1 commits)")[![murilohns](https://avatars.githubusercontent.com/u/18074134?v=4)](https://github.com/murilohns "murilohns (1 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3256.8M45](/packages/omnipay-paypal)[horstoeko/zugferd

A library for creating and reading european electronic invoices

3943.8M13](/packages/horstoeko-zugferd)[adyen/module-payment

Official Magento2 Plugin to connect to Payment Service Provider Adyen.

1643.0M6](/packages/adyen-module-payment)[tbbc/money-bundle

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

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

2Checkout PHP Library

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

Generate QR code data for SEPA payments

59682.3k5](/packages/smhg-sepa-qr-data)

PHPackages © 2026

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