PHPackages                             bmorais/pix - 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. [Database &amp; ORM](/categories/database)
4. /
5. bmorais/pix

ActiveLibrary[Database &amp; ORM](/categories/database)

bmorais/pix
===========

Utilização do PIX em PHP

v1.0.2(3y ago)142344[1 issues](https://github.com/brunobmorais/php-pix/issues)MITPHPPHP &gt;=7.4

Since Sep 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/brunobmorais/php-pix)[ Packagist](https://packagist.org/packages/bmorais/pix)[ Docs](https://www.bmorais.com)[ RSS](/packages/bmorais-pix/feed)WikiDiscussions master Synced 1mo ago

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

Pix @BMoraisCode
================

[](#pix-bmoraiscode)

[![Maintainer](https://camo.githubusercontent.com/61bbc602b585f7553199c15226668f871c57b5337db6b2d1d2b47e28fadad47d/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406272756e6f626d6f726169732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://linkedin.com/in/brunobmorais)[![Source Code](https://camo.githubusercontent.com/14aa1789945a45e7242251a7647ddc559a508179131f0f0a5cd673a0da151f6f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d626d6f726169732f7069782d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/brunobmorais/php-pix)[![PHP from Packagist](https://camo.githubusercontent.com/6396f160584e85a083d66c329553eba74e9d8585805ca57505f2e42d07352954/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626d6f726169732f7069782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bmorais/pix)[![Latest Version](https://camo.githubusercontent.com/e215fa179e31d3749c9eb504e6a880586c9b337b98f07154317ce54cddc4f988/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6272756e6f626d6f726169732f7068702d7069782e7376673f7374796c653d666c61742d737175617265)](https://github.com/brunobmorais/php-pix/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/3a72b05d5328b9256231b555e2b4f9899a5234ac1cc1ac9fdd564341696689b4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6272756e6f626d6f726169732f7068702d7069782e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/brunobmorais/php-pix)[![Total Downloads](https://camo.githubusercontent.com/ca8494aa4403b5a962810b5486b9aa28a98c88efcad815d66100b4a386763c1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626d6f726169732f7069782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bmorais/pix)

###### **Pix** is the newest electronic payment method created by **Banco Central do Brasil**. You can find all the details on the [official page](https://www.bcb.gov.br/estabilidadefinanceira/pix) of Pix

[](#pix-is-the-newest-electronic-payment-method-created-by-banco-central-do-brasil-you-can-find-all-the-details-on-the-official-page-of-pix)

O **Pix** é o mais novo método de pagamento eletrônico criado pelo **Banco Central do Brasil**. Você encontra todos os detalhes na [página oficial](https://www.bcb.gov.br/estabilidadefinanceira/pix) do Pix.

About BMoraisCode
-----------------

[](#about-bmoraiscode)

###### BMoraisCode is a set of small and optimized PHP components for common tasks. Held by Bruno Morais. With them you perform routine tasks with fewer lines, writing less and doing much more.

[](#bmoraiscode-is-a-set-of-small-and-optimized-php-components-for-common-tasks-held-by-bruno-morais-with-them-you-perform-routine-tasks-with-fewer-lines-writing-less-and-doing-much-more)

BMoraisCode é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Bruno Morais. Com eles você executa tarefas rotineiras com poucas linhas, escrevendo menos e fazendo muito mais.

### Highlights

[](#highlights)

- Easy to set up (Fácil de configurar)
- Create safe models (Crie de modelos seguros)
- Composer ready (Pronto para o composer)
- PSR-2 compliant (Compatível com PSR-2)

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

[](#installation)

###### Pix is available via Composer

[](#pix-is-available-via-composer)

Pix is disponível via Composer:

```
"bmorais/pix": "1.0.*"
```

###### or run

[](#or-run)

or execute

```
composer require bmorais/pix
```

Documentation
-------------

[](#documentation)

###### For details on how to use the Data Layer, see the sample folder with details in the component directory

[](#for-details-on-how-to-use-the-data-layer-see-the-sample-folder-with-details-in-the-component-directory)

Para mais detalhes sobre como usar o PIX, veja a pasta de exemplo com detalhes no diretório do componente

```
$defaultPíxKey = "CHAVEPIX";
$defaultDescription = mb_strimwidth("DESCRICAO PIX", 0, 19, ""); //ex: Pagamento do pedido
$defaultMerchantName = "NOME PESSOA PIX";
$defaultMerchantCity = "NOME CIDADE";
$defaultTxid = "IDUNICO";
$order = "";
$amount = "100,00";

$pix = new Pix();
// Instancia principal do payload Pix
$obPayload = $pix->setPixKey($defaultPíxKey)
        ->setDescription($defaultDescription . $order)
        ->setMerchantName($defaultMerchantName)
        ->setMerchantCity($defaultMerchantCity)
        ->setAmount($amount)
        ->setTxid($defaultTxid);

// Código de pagamento Pix
$payload = $obPayload->getPayload();
$qrcode = $pix->qrcode($payload,400);
```

[![exemple1](/example/example1.png)](/example/example1.png)

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/brunobmorais/php-pix/blob/master/CONTRIBUTING.md) for details.

Support
-------

[](#support)

###### Security: If you discover any security related issues, please email  instead of using the issue tracker.

[](#security-if-you-discover-any-security-related-issues-please-email-contatobmoraiscom-instead-of-using-the-issue-tracker)

Se você descobrir algum problema relacionado à segurança, envie um e-mail para  em vez de usar o rastreador de problemas.

Thank you

Credits
-------

[](#credits)

- [Bruno Morais](https://github.com/brunobmorais) (Developer)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/brunobmorais/php-pix/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

1329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fde1fc1bacf9b6a02985abded66855671439c98b77c7f33b2b939b7af016571?d=identicon)[bmorais](/maintainers/bmorais)

---

Top Contributors

[![brunobmorais](https://avatars.githubusercontent.com/u/11892712?v=4)](https://github.com/brunobmorais "brunobmorais (7 commits)")

---

Tags

databasepdocrudsavedeletedestroy

### Embed Badge

![Health badge](/badges/bmorais-pix/health.svg)

```
[![Health](https://phpackages.com/badges/bmorais-pix/health.svg)](https://phpackages.com/packages/bmorais-pix)
```

###  Alternatives

[coffeecode/datalayer

The data layer is a persistent abstraction component of your database that PDO

33843.6k4](/packages/coffeecode-datalayer)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)

PHPackages © 2026

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