Download the PHP package thinkphp5/validator without Composer

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

README

在thinkphp5的项目开发过程中经常要自己写验证器

但其实大多数验证规则都是通过数据库中的字段定义上进行修改而来的

由于之前用的是yii2,受到其gii2的启发

想着做一个基于thinkphp5的composer插件,用以生成对应的验证器

于是就有了这个库

怎么引用

× 本地引用

$ git clone xxxxxxxxxxx

在开发项目中的composer.json添加

最后在项目中运行composer命令

$ composer require --dev thinkphp5/validator:dev-master

thinkphp5.1.* 版本对应2.0分支

thinkphp5.0.* 版本对应1.0分支

× composer引用

$ composer require thinkphp5/validator

thinkphp5.1. 版本对应composer 2.版本

thinkphp5.0. 版本对应composer 1.版本

怎么使用

  1. 填写数据库连接信息

  2. 浏览器中输入http://yourproject/validator_builder

  3. 默认生成的验证器会在APP_PATH/common/validate

  4. 注意目录权限问题

效果

alt img alt img alt img


All versions of validator with dependencies

PHP Build Version
Package Version
No informations.
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 thinkphp5/validator contains the following files

Loading the files please wait ...