承接 stubbles/input 相关项目开发

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

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

stubbles/input

最新稳定版本:v10.0.0

Composer 安装命令:

composer require stubbles/input

包简介

Stubbles Input enables to handle input data via validation and filtering.

README 文档

README

One of the most common task in applications is to read, validate and filter input data. stubbles/input provides means to do exactly that, by providing a Request API in order to validate and filter input values.

Build status

Tests

Latest Stable Version Latest Unstable Version

Installation

stubbles/input is distributed as Composer package. To install it as a dependency of your package use the following command:

composer require "stubbles/input": "^9.0"

Requirements

stubbles/input requires at least PHP 8.2.

Request parameters

The Request API provides access to request parameters in different ways:

getParamNames(): array

Returns a list of all parameter names.

paramErrors(): ParamErrors

Returns a list of all parameter errors that occurred during reading single request parameters.

hasParam(string $paramName): bool

Checks if a parameter with the given name is present in the current request.

validateParam(string $paramName): ValueValidator

Returns a value validator with methods that can be used to check if the parameter with the given name is valid.

See validate parameters details.

readParam(string $paramName): ValueReader

Returns a value reader that can be used to read the parameter with the given name. In case the parameter does not exist the reader will return null.

See read parameters details.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2012-03-18