Download the PHP package swoft-laravel/validation without Composer

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

swoft-laravel-validation

集成 laravel校验类至 swoft

php >7.2, swoft > v1.9 (暂不支持v2.x)

技术细节

  1. 技术目标:
    • 独立使用 laravel validation组件,文档和使用方式参考 laravel 社区文档
    • 在尽可能精简代码的前提下,尽可能迁移 laravel validation的功能:Validation, 多语言模板支持,通用校验方法
  2. 实现:
    • 参照laravel validation的加载依赖,加载validation所需要的Validator Factory, Translator组件
    • Validator 类行为与laravel validator facade一致

      安装

      在composer.json require 中添加如依赖

更新依赖

在根目录下新建文件结构:

使用

详细用法可参考laravel官方文档:

使用通用校验类

模板文件的使用 详细用法可参考官方文档:


All versions of validation with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.7
illuminate/validation Version ^5.7
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 swoft-laravel/validation contains the following files

Loading the files please wait ....