Download the PHP package eugabrielsilva/glowie-br-validator without Composer

On this page you can find all versions of the php package eugabrielsilva/glowie-br-validator. 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 glowie-br-validator

Validação em PT-BR para Glowie Framework

Este plugin implementa regras de validação brasileiras comuns no Validator do Glowie.

Instalação

  1. Instale o plugin no seu projeto:

  2. Insira a classe dentro da array plugins no arquivo app/config/Config.php:

Como usar

No Validator, passe o nome custom: seguido do nome da regra que você deseja usar para validação. Exemplo:

Regras disponíveis

Nome Descrição
cellphone Valida se a string está num formato de celular: 99999-9999 ou 9999-9999
cellphone_with_ddd Valida se a string está num formato de celular com DDD: (99) 99999-9999 ou (99) 9999-9999, com ou sem espaços
cellphone_with_code Valida se a string está num formato de celular com DDD e código do país: +99 (99) 99999-9999 ou +99 (99) 9999-9999, com ou sem espaços
cep Valida se a string está num formato de CEP, com ou sem máscara
cep_with_mask Valida se a string está num formato de CEP com máscara: 99999-999
cnpj Valida se a string é um CNPJ válido, com ou sem máscara
cnpj_with_mask Valida se a string é um CNPJ válido com máscara: 99.999.999/9999-99
cpf Valida se a string é um CPF válido, com ou sem máscara
cpf_with_mask Valida se a string é um CPF válido com máscara: 999.999.999-99
cpf_or_cnpj Valida se a string é um CPF ou CNPJ válido, com ou sem máscara
cpf_or_cnpj_with_mask Valida se a string é um CPF Ou CNPJ válido com máscara: 999.999.999-99 ou 99.999.999/9999-99
phone Valida se a string está num formato de telefone: 9999-9999
phone_with_ddd Valida se a string está num formato de telefone com DDD: (99) 9999-9999, com ou sem espaços
phone_with_code Valida se a string está num formato de telefone com DDD e código do país: +99 (99) 9999-9999, com ou sem espaços
uf Valida se a string é um UF válido do Brasil, aceito apenas em maiúsculo

Créditos

Desenvolvido por Gabriel Silva, baseado na implementação em Laravel feita por LaravelLegends.


All versions of glowie-br-validator with dependencies

PHP Build Version
Package Version
Requires glowieframework/glowie-core Version *
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 eugabrielsilva/glowie-br-validator contains the following files

Loading the files please wait ...