Download the PHP package jakson-fischer/lgpd without Composer

On this page you can find all versions of the php package jakson-fischer/lgpd. 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 lgpd

LgpdMask

Descrição pt-Br

A classe LgpdMask foi desenvolvida para mascarar dados pessoais, em conformidade com a LGPD (Lei Geral de Proteção de Dados), baseada na GDPR. Ela pode ser usada para ocultar informações sensíveis, como nome, CPF, RG, telefone, e-mail e data de nascimento, deixando apenas partes visíveis para proteger a privacidade dos usuários.

Description En

The LgpdMask class is designed to mask personal data, in compliance with LGPD (Lei Geral de Proteção de Dados), which is based on GDPR. It can be used to hide sensitive information such as name, CPF, RG, phone number, email, and date of birth, leaving only parts visible to protect user privacy.

Instalação

Instale via Composer:

Installation

Install via Composer:

Métodos Disponíveis

Available Methods

1. maskName($fullName)

Mascarar o nome completo, exibindo apenas o primeiro nome. Mask the full name, displaying only the first name.

Exemplo:

Entrada: "Carlos Eduardo Silva" Saída: "Carlos ****** *****"

2. maskCpf($cpf)

Mascarar um CPF, exibindo apenas os três primeiros dígitos. Mask a CPF, displaying only the first three digits.

Exemplo:

Entrada: "123.456.789-00" Saída: "123.***.***-**"

3. maskRg($rg)

Mascarar um RG, exibindo apenas os três primeiros dígitos. Mask an RG, displaying only the first three digits.

Exemplo:

Entrada: "12345678-9" Saída: "123*****-*"

4. maskEmail($email)

Mascarar um e-mail, exibindo apenas os três primeiros caracteres do e-mail e o domínio final (.com ou .com.br). Mask an email address, showing only the first three characters of the email and the final domain (.com or .com.br).

Exemplo:

Entrada: "[email protected]" Saída: "exe*********@****.com"

5. maskPhone($phone)

Mascarar um número de telefone, exibindo apenas os últimos quatro dígitos, preservando caracteres especiais como (), . e -. Mask a phone number, showing only the last four digits, while preserving special characters like (), ., and -.

Exemplo:

Entrada: "(11) 98765-4321" Saída: "(**) *****-4321"

6. maskDateOfBirth($birthDate)

Mascarar uma data de nascimento, preservando os caracteres / ou -. Mask a date of birth, while preserving / or - characters.

Exemplo:

Entrada: "15/08/1990" Saída: "**/**/****"

Uso

Veja o exemplo de uso abaixo no arquivo index.php.

License

MIT

Usage

See the usage example below in the index.php file.

License

MIT


All versions of lgpd with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 jakson-fischer/lgpd contains the following files

Loading the files please wait ....