JSON Schema
validation
Our great sponsors
JSON Schema | validation | |
---|---|---|
2 | 4 | |
3,503 | 807 | |
- | 1.1% | |
3.6 | 0.0 | |
about 1 month ago | about 2 months ago | |
PHP | PHP | |
MIT License | MIT 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.
- URGENT: Import page for JSON files does not work. PHP
validation
- Guess who doesnt understand PHP turnery statements
-
Which native PHP features do you regret not knowing about/adapting earlier?
I have to admit, some filters are usable. But still a good validation library is mush easier to use. See for example: https://github.com/rakit/validation
-
Bouncer - An extensible validation library for your data with sane defaults.
You're welcome :) Well, I could think of many scenarios such zipcode, uuids, etc, that represent world information per-se, also in circunstances where you should validate fields that depend on others, or even when tangling with regex validation. You could check Respect/Validation out (https://github.com/Respect/Validation) that does something similar or Rakit/Validation (https://github.com/rakit/validation). They present a nice API to work with and a structure closer to yours.
-
How do you validate data?
I like https://github.com/rakit/validation which is basically a standalone clone of Laravel's validation.
What are some alternatives?
Respect Validation - The most awesome validation engine ever created for PHP
Assert - Thin assertion library for use in libraries and business-model
laravel-hyrule - Object-oriented, composable, fluent API for writing validations in Laravel
Packagist - Package Repository Website - try https://packagist.com if you need your own -
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
nutgram - The Telegram bot framework that doesn't drive you nuts.
PHPMailer - The classic email sending library for PHP
WordPress Packagist - WordPress Packagist — manage your plugins with Composer
hashids - A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
Firegento - Extends the customer functionality of Magento.
Brick\Money - A money and currency library for PHP