Download the PHP package kayon-ariel/pix-php without Composer

On this page you can find all versions of the php package kayon-ariel/pix-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pix-php

PixPhp

A PHP library to generate static PIX codes, facilitating online payments with PIX copy and paste.

PHP Version License Packagist Downloads

Table of Contents

Installation

You can install the library via Composer. Run the following command:

Usage

Step 1: Include the Autoloader

Once installed, include the Composer autoloader in your PHP script:

Step 2: Import the Namespace

Import the PixPhp namespace at the beginning of your PHP file:

Step 3: Generate a PIX Code

You can generate a PIX code using the generatePix method. Here's a basic example:

Accepted Key Types

In the PixPhp library, the following types of keys are accepted for generating PIX codes:

  1. CPF (Cadastro de Pessoas Físicas)

    • Format: 123.456.789-09
    • Description: A Brazilian individual taxpayer identification number. The library accepts CPF numbers with or without formatting.
  2. CNPJ (Cadastro Nacional da Pessoa Jurídica)

    • Format: 12.345.678/0001-95
    • Description: A Brazilian business taxpayer identification number. The library accepts CNPJ numbers with or without formatting.
  3. Email

    • Format: [email protected]
    • Description: A valid email address. The library accepts well-formed email addresses as PIX keys.
  4. Phone

    • Format: +55 11 91234-5678
    • Description: A Brazilian phone number including the country code. The library accepts phone numbers with various formatting styles, including spaces and dashes, while retaining the +55 prefix.
  5. Random Key
    • Format: 617ef6be-e18e-427f-919b-6e43bae33400
    • Description: The Pix random key is a 32-character alphanumeric code, randomly generated by the Central Bank to be linked to a single account.

Example Usage

You can pass any of the accepted key types to the generatePix method:


All versions of pix-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kayon-ariel/pix-php contains the following files

Loading the files please wait ....