承接 impulsephp/validator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

impulsephp/validator

最新稳定版本:v1.0.0-beta

Composer 安装命令:

composer require impulsephp/validator

包简介

A lightweight and extensible validation engine for ImpulsePHP components. Provides form validation rules and unified syntax for server-side validation.

README 文档

README

A lightweight and extensible validation engine for ImpulsePHP. The validator provides common validation rules and a unified API for server-side form validation.

Installation

Use Composer to add the package to your project:

composer require impulsephp/validator

If you are working from the source repository, run composer install to generate the autoloader.

Quick start

use Impulse\Validator\Validator;

$validator = new Validator();

$errors = $validator->validate('username', 'Bob', 'required|min_length:3');

if ($errors) {
    // Handle validation errors
}

Documentation

More extensive documentation is available in the docs directory:

Testing

Unit tests are written with PHPUnit. From the project root run:

composer install
vendor/bin/phpunit

A simple test configuration is included in phpunit.xml.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-03