Download the PHP package jp-system/validator-docs without Composer

On this page you can find all versions of the php package jp-system/validator-docs. 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 validator-docs

📌 Validator Docs

Este pacote foi inspirado em outros dois pacotes, mas foi criado pela necessidade de uma customização melhor nas messages de validação e na validação dos formatos.

🔧 Instalação

Para fazer a instalação do pacote, rode o comando:

📦 Customização

Nesse pacote você pode publicar as messages de validação e customizá-las, usando o comando:

Caso não queira publicar o arquivo de tradução, você poderá criar suas próprias mensagens dentro do arquivo validation.php:

📋 Utilização

Regras Formatos Formatação Opcional
uf Sem formato null
cep 99999-999, 99.999-999 false
cnh Sem formato null
cns Sem formato null
cpf 999.999.999-99 true
pis 999.99999.99-9 true
cnpj 99.999.999/9999-99 true
money 99.999,99, 99,999.99 false
cellphone 99999-9999, 9999-9999 false
telephone 9999-9999 false
cpf_or_cnpj 999.999.999-99, 99.999.999/9999-99 true
vehicle_plate AAA-1234, AAA-1A23 false
cellphone_with_ddd (99)99999-9999, (99)9999-9999, (99) 99999-9999, (99) 9999-9999 false
telephone_with_ddd (99)9999-9999 false
cellphone_with_code +99(99)99999-9999, +99(99)9999-9999 false
telephone_with_code +55(99)9999-9999 false

Todas as regras podem ser utilizadas a partir da Rule do próprio Laravel:

As regras em que existe a opção de formatação, mas é opcional, podemos aplicar a formatação de três maneiras:

A regra para dinheiro aceita dois parâmetros, a moeda e a localicação. Utilizamos a classe de suporte Number do próprio Laravel:

Caso você precise verificar o formato do dinheiro conforme alguma regra em específica, você pode setar os callbacks no seu AppServiceProvider:

Qualquer melhoria ou correção, poderá abrir um PR ou Issue.

🚀 Obrigado!


All versions of validator-docs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.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 jp-system/validator-docs contains the following files

Loading the files please wait ....