systemcode / customer-identity-brazil

systemcode/customer-identity-brazil

Brazilian customer identity using Magento native taxvat and name fields.

magento2-module Compatibility: 2.4.8-2.4.9 Code Quality: Warning Tests: N/A Security: Pass OSL-3.0

System Code Brazil Customer Identity

About Module

Brazilian customer identity for Magento using native Tax/VAT and name fields. Supports individual (CPF, RG) and corporation (CNPJ, IE) profiles, field visibility rules, customer group assignment, checkout integration, and address template guidance.

For dedicated CPF, CNPJ, Social Name, and Trade Name attributes, install CustomerIdentityBrazilEnhanced.

Configuration

Stores > Configuration > System Code > Brazil Customer Identity

Enable Tax/VAT under Stores > Configuration > Customers > Customer Configuration > Name and Address Options.

Screenshots

Admin Configuration

[image: Admin Configuration]

Customer Registration

[image: Customer Registration]

My Account — Edit Profile

[image: My Account Edit Profile]

Checkout

[image: Checkout]

Requirements

  • systemcode/base
  • systemcode/customer
  • magento/module-customer
  • magento/module-checkout

How to install

✓ Install by Composer (recommended)

composer require systemcode/base systemcode/customer systemcode/customer-identity-brazil
php bin/magento module:enable SystemCode_CustomerIdentityBrazil
php bin/magento setup:upgrade

✓ Install Manually

  • Copy module to folder app/code/SystemCode/CustomerIdentityBrazil and run commands:
php bin/magento module:enable SystemCode_CustomerIdentityBrazil
php bin/magento setup:di:compile
php bin/magento setup:upgrade

License

OSL-3.0

Authors


Sobre o Módulo

Identidade de cliente brasileira para Magento usando os campos nativos Tax/VAT e nome. Suporta pessoa física (CPF, RG) e jurídica (CNPJ, IE), regras de visibilidade, atribuição de grupo de cliente, integração com checkout e orientações para modelos de endereço.

Para atributos dedicados de CPF, CNPJ, Razão Social e Nome Fantasia, instale o CustomerIdentityBrazilEnhanced.

Configuração

Lojas > Configuração > System Code > Brazil Customer Identity

Ative Tax/VAT em Lojas > Configuração > Clientes > Configuração de Cliente > Opções de Nome e Endereço.

Screenshots

Configuração no Admin

[image: Configuração no Admin]

Cadastro de Cliente

[image: Cadastro de Cliente]

Minha Conta — Editar Perfil

[image: Minha Conta — Editar Perfil]

Checkout

[image: Checkout]

Requisitos

  • systemcode/base
  • systemcode/customer
  • magento/module-customer
  • magento/module-checkout

Como Instalar

✓ Instalação via Composer (recomendado)

composer require systemcode/base systemcode/customer systemcode/customer-identity-brazil
php bin/magento module:enable SystemCode_CustomerIdentityBrazil
php bin/magento setup:upgrade

✓ Instalação Manual

  • Copie o módulo para app/code/SystemCode/CustomerIdentityBrazil e execute:
php bin/magento module:enable SystemCode_CustomerIdentityBrazil
php bin/magento setup:di:compile
php bin/magento setup:upgrade

Licença

OSL-3.0

Autores

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
2.0.0 stable Fail Magento 2.4.8-2.4.9 Details 2026-06-12 16:13:54
1.1.2 stable Not tested Not yet tested Details 2020-10-23 19:45:37
1.1.1 stable Not tested Not yet tested Details 2020-10-17 18:24:29
1.1.0 stable Not tested Not yet tested Details 2020-08-01 22:09:54
1.0.8 stable Not tested Not yet tested Details 2020-06-06 00:48:31
1.0.7 stable Not tested Not yet tested Details 2020-06-04 21:46:59
1.0.5 stable Not tested Not yet tested Details 2020-01-04 19:35:44
1.0.4 stable Not tested Not yet tested Details 2020-01-04 17:40:23
1.0.3 stable Not tested Not yet tested Details 2019-10-30 22:19:22
1.0.1 stable Not tested Not yet tested Details 2019-08-21 12:00:18
1.0.0 stable Not tested Not yet tested Details 2019-07-01 19:39:54

Requires 4

Package Constraint
magento/module-checkout *
magento/module-customer *
systemcode/base ^2.0
systemcode/customer ^1.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Fail di error Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 5 5 rule violations (UnusedFormalParameter:3, NPathComplexity:2)
Cpd Pass 0
Composer validate Info 3 valid; 3 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0

More from systemcode

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.