PHPackages                             jerfeson/omnipay-pagseguro - 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. jerfeson/omnipay-pagseguro

ActiveLibrary[Payment Processing](/categories/payments)

jerfeson/omnipay-pagseguro
==========================

PagSeguro driver for the Omnipay PHP payment processing library

1.0.0(5y ago)126MITPHP

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jerfeson/omnipay-pagseguro)[ Packagist](https://packagist.org/packages/jerfeson/omnipay-pagseguro)[ RSS](/packages/jerfeson-omnipay-pagseguro/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

Omnipay: PagSeguro
==================

[](#omnipay-pagseguro)

**PagSeguro driver for the Omnipay PHP payment processing library**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP. This package implements PagSeguro support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `jerfeson/omnipay-pagseguro` with Composer:

```
composer require league/omnipay jerfeson/omnipay-pagseguro

```

Basic Usage
-----------

[](#basic-usage)

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

\##Sample

```
// purchase

$params = $this->getParams();
$gateway = $this->getGateway();

$items = [];
foreach ($params->items as $item) {
    $items[] = [
        'number' => $item->id, // 1, 2
        'quantity' => $item->quantity, // 10, 20
        'name' => $item->name, // sample product 1, sample product 2
        'description' => $item->description, // sample description 1, sample description 2
        'price' => $item->price, // 10.00, 40.00
        'weight' => $item->weight // 1, 1
    ];
}

$response = $gateway->purchase(
    [
        'transactionId' => $params->id, // 1
        'amount' => $params->value, //50.00
        'currency' => $params->currency, //BRL
        'returnUrl' => 'http://example.com/return',
        'cancelUrl' => 'http://example.com/cancel',
        'NotifyUrl' => 'http://example.com/notify',
        'items' => $items
    ]
)->send();
```

Roadmap
-------

[](#roadmap)

- more methods
- more code examples

Contributing
------------

[](#contributing)

- welcome to discuss a bugs, features and ideas.

License
-------

[](#license)

jerfeson/omnipay-pagseguro is release under the MIT license.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/jerfeson/omnipay-pagseguro/issues), or better yet, fork the library and submit a pull request.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f318ad28c5ab51c42da3afbfac025a6fbcf5f5d04866fcd533b55e2005f0b267?d=identicon)[jerfeson](/maintainers/jerfeson)

---

Top Contributors

[![jerfeson](https://avatars.githubusercontent.com/u/2961357?v=4)](https://github.com/jerfeson "jerfeson (15 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasePagseguro

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jerfeson-omnipay-pagseguro/health.svg)

```
[![Health](https://phpackages.com/badges/jerfeson-omnipay-pagseguro/health.svg)](https://phpackages.com/packages/jerfeson-omnipay-pagseguro)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[abdala/omnipay-pagseguro

PagSeguro gateway for OmniPay

2523.3k1](/packages/abdala-omnipay-pagseguro)

PHPackages © 2026

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