coka/constraint-bundle

验证器自定义约束

1.1.3 2024-08-28 13:17 UTC

This package is auto-updated.

Last update: 2024-09-28 13:35:38 UTC


README

本包提供自定义约束验证器。

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads Travis CI

安装

确保Composer已全局安装,具体请参阅Composer文档中的安装章节

使用Symfony Flex的应用程序

打开命令行,进入您的项目目录,然后执行以下命令

$ composer require coka/constraint-bundle

不使用Symfony Flex的应用程序

步骤 1:下载Bundle

打开命令行,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本

$ composer require coka/constraint-bundle

步骤 2:启用Bundle

然后,通过将其添加到项目config/bundles.php文件中注册的Bundle列表来启用该Bundle

// config/bundles.php

return [
    // ...
    Oka\ConstraintBundle\OkaConstraintBundle::class => ['all' => true],
];