JSON Schema
Valitron
Our great sponsors
JSON Schema | Valitron | |
---|---|---|
2 | 2 | |
3,492 | 1,553 | |
- | - | |
3.6 | 0.0 | |
14 days ago | 6 months ago | |
PHP | PHP | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
JSON Schema
-
How do you validate data?
We use this JSON schema library to validate incoming HTTP requests. We sometimes share schemas across the backend and frontend (this is very nice), and we also generate API documentation using the schemas.
Valitron
-
Introducing Mighty, the last validation library you will ever need!
So what exactly would make me use this instead of something like https://github.com/vlucas/valitron?
-
Weekly "ask anything" thread
I'd suggest checking out some validation libraries, of which there's many. Valitron looks like it might fit your needs: it supports 5.3, it's actively maintained, and it comes with pretty nice set of validators, both for scalar form inputs and complex objects.
What are some alternatives?
Respect Validation - The most awesome validation engine ever created for PHP
PHP validate - Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
Upload - File uploads with validation and storage strategies
ISO-codes - PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries
MetaYaml - A powerful schema validator!
Filterus - A simple filtering library for PHP
Validator - Simple yet powerful data validating library from Claritie.
Cake Validation - [READ-ONLY] Validation library from CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
yii2-array-structure-validator - Validate complex array structure
Assert - Thin assertion library for use in libraries and business-model
validation - PHP Standalone Validation Library