承接 azly/kphp_validator 相关项目开发

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

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

azly/kphp_validator

最新稳定版本:v0.0.1

Composer 安装命令:

composer require azly/kphp_validator

包简介

KPHP Validator

README 文档

README

KPHP Validator

Implemented functions

You can use following constraints for validate data if you want compile your project with KPHP:

Length($min ::: int = -1, $max ::: int = -1, $exact ::: int = -1);
Type($type ::: string);
NotBlank();
Email();

Installation

To install this library, follow these steps:

  1. Download KPHP source code
git clone https://github.com/VKCOM/kphp
  1. Download KPHP Validator library
composer require azly/kphp_validator:dev-master
  1. Compile KPHP from source files

Quick start

  1. Create vendor/autoload.php with composer

  2. Create index.php and write here:

<?php
require_once __DIR__ . '/vendor/autoload.php';

// Create a list with constraints
$ConstraintListFactory = new ConstraintListFactory();

// Create a validator
$validatorFactory = new ValidatorFactory();

// Example of create a constarints
$constraintList->addConstraint("name", new Type("string"));
$constraintList->addConstraint("email", new Email());

// Validation
$validator->validate($form, $constraintList);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固