PHPackages                             kaio-souza/pix-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaio-souza/pix-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaio-souza/pix-php
==================

A simple PIX generator

v1.0(3y ago)423MITPHP

Since Oct 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kaio-souza/pix-generator)[ Packagist](https://packagist.org/packages/kaio-souza/pix-php)[ RSS](/packages/kaio-souza-pix-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PIX GENERATOR
=============

[](#pix-generator)

A simple library to generate media / data to Copy and Paste Pix

Avalilable on Composer

```
composer require kaio-souza/pix-php

```

Requeriments
------------

[](#requeriments)

- To generate Images, the ext php-gd needs to be enable

Instatiate Class
----------------

[](#instatiate-class)

Using Constants to Params (more secure, in cases of update)

```
$pix = new PixGenerator([
    MandatoryConfig::PIX_KEY => 'teste@teste.com',
    MandatoryConfig::MERCHANT_NAME => 'Tester',
]);
```

Using String

```
$pix = new PixGenerator([
   'pix_key' => 'teste@teste.com',
   'merchant_name' => 'Tester',
]);
```

More Params

```
$pix = new PixGenerator([
    MandatoryConfig::PIX_KEY => 'teste@teste.com',
    MandatoryConfig::MERCHANT_NAME => 'Tester',
    OptionalConfig::MERCHANT_CITY => 'SAO PAULO', // 'SAO PAULO' is the DefaultValue
    OptionalConfig::CURRENCY => '986', // 986 = BRL | is the DefaultValue
    OptionalConfig::COUNTRY_CODE => 'BR', // 'BR' is the default Alpha2 value
]);
```

- The currency code is fill with ISO4217 [Click Here to see ISO4217 Currency List](./utils/CURRENCIES.MD)
- The Country Code is fill with ISO3166-1 alpha 2

Get QRCode Text
---------------

[](#get-qrcode-text)

```
echo $pix->getQrCodeText(20, 'Teste Lala');
// returns 00020126510014br.gov.bcb.pix0115teste@teste.com0210Teste Lala520400005303986540520,005802BR5906Tester6002BR62270523bca37b925af47abd511393463041FC2
```

Get QRCode Image
----------------

[](#get-qrcode-image)

```
// returns QRCode PNG output
$code = $pix->getQrCode(20, 'Teste Lala');
// Save the output on file
file_put_contents('qr.png', $code);
```

or

```
$code = $pix->getBase64QrCode('14,50', 'Teste Lala');

// show QRCODE on HTML img tag
echo "";
```

\*\* The amount accepts a comma or dots to separate the decimal places

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/962b7ae1edee171afab45eae5c6bf6a6356c80e776bc491bd1a9edbb07758a78?d=identicon)[kaleu62](/maintainers/kaleu62)

---

Top Contributors

[![kaio-souza](https://avatars.githubusercontent.com/u/16223766?v=4)](https://github.com/kaio-souza "kaio-souza (7 commits)")

### Embed Badge

![Health badge](/badges/kaio-souza-pix-php/health.svg)

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

###  Alternatives

[dazet/data-map

Library for mapping data structures.

2123.7k](/packages/dazet-data-map)

PHPackages © 2026

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