halloverden / symfony-validator-constraints-bundle
为 symfony 验证器提供的各种约束
3.0.0
2024-09-23 08:47 UTC
Requires
- php: >=8.2
- ext-json: *
- giggsey/libphonenumber-for-php: ^8.11
- league/uri: ^7.4
- symfony/framework-bundle: ^6.4|^7.1
- symfony/property-access: ^6.4|^7.1
- symfony/validator: ^6.4|^7.1
Requires (Dev)
- symfony/phpunit-bridge: ^6.4|^7.1
- dev-main
- 3.0.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/remove-outdated-validators-and-bundle-cleanup
- dev-feature/symfony-7
- dev-dependabot/composer/guzzlehttp/psr7-1.9.1
- dev-feature/add-new-phone-constraints
- dev-feature/identical-to-constraint
- dev-feature/inital-version
This package is auto-updated.
Last update: 2024-09-23 08:51:43 UTC
README
安装
确保已全局安装 Composer,具体请参考 Composer 文档中的安装章节。
使用 Symfony Flex 的应用程序
打开命令行控制台,进入您的项目目录并执行
$ composer require halloverden/symfony-validator-constraints-bundle
不使用 Symfony Flex 的应用程序
步骤 1:下载 Bundle
打开命令行控制台,进入您的项目目录并执行以下命令以下载此 Bundle 的最新稳定版本
$ composer require alloverden/symfony-validator-constraints-bundle
步骤 2:启用 Bundle
然后,通过将其添加到项目 config/bundles.php
文件中注册的 Bundle 列表中来启用该 Bundle
// config/bundles.php return [ // ... HalloVerden\ValidatorConstraintsBundle\HalloVerdenValidatorConstraintsBundle::class => ['all' => true], ];