Download the PHP package robersonfaria/validation without Composer

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

Laravel Custom Validation

Pacote Laravel para validações comuns ao Brasil(pt-BR) tipo: CNPJ,CPF,CEP,CNS

Instalação

Instale a dependencia com o seguinte comando

Laravel 5.4-

Configure o sua aplicação adicionando o seguinte provider:

config/app.php

Laravel 5.5+

Adicionado suporte ao Package Discovery, sendo assim não é mais necessário adicionar o Service Provider ao seu config/app.php

Uso

Para usar basta adicionar o nome da validação que deseja como regra:

Mensagens de erro

Adicione as mensagens de validação no seu arquivo na respectiva linguagem. Ex: Em pt_BR o arquivo resources/lang/pt_BR/validation.php

Ou ainda, se desejar, pode customizar a mensagem de erro em tempo de execução:

Validações

validation Sigla Descrição
cns CNS Cartão Nacional de Saúde
cnpj CNPJ Cadastro Nacional da Pessoa Jurídica.
cpf CPF Cadastro de Pessoas Físicas.
cep_format CEP Format Validação do formato do CEP, não validará se o CEP é válido, pelo menos não inicialmente.

CHANGELOG

1.0.0

Criação do pacote e implementação da validação do CNS - Cartão Nacional de Saúde

1.0.1

Implementação das validações de CNPJ, CPF e formato de CEP.

1.0.2

Adicionado merge do arquivo de configuração para quando tiver modificações.

1.0.3

Correção de autoload no composer.json

1.0.4

Adicionado package discovery

2.0.0

Alterado para compatibilizar com laravel 5.5

2.0.1

Alterado para compatibilizar com laravel 5.6

2.0.2

Alterado para compatibilizar com laravel 5.6+|6|7|8


All versions of validation with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version ^5.5|^6.0|^7.0|^8.0
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 robersonfaria/validation contains the following files

Loading the files please wait ....