PHPackages                             hrombach/json-validation-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. hrombach/json-validation-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

hrombach/json-validation-bundle
===============================

Very limited Bundle based on JustinRainbow's Json Validation lib

0.1.0(7y ago)03.2kMITPHPPHP ~7.2

Since Jul 3Pushed 7y agoCompare

[ Source](https://github.com/hrombach/HeroJsonValidationBundle)[ Packagist](https://packagist.org/packages/hrombach/json-validation-bundle)[ RSS](/packages/hrombach-json-validation-bundle/feed)WikiDiscussions 0.1 Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

HeroJsonValidationBunde
=======================

[](#herojsonvalidationbunde)

This was made in one evening to make it easier for me to share this code between projects I work on.

Pretty much all the actual work is done by justinrainbow's [json-schema](https://github.com/justinrainbow/json-schema) library.

I put it up publicly because I couldn't be bothered to pay for packagist or set up a custom repository every time. If you want to use it go ahead, just don't rely on it to work perfectly in every situation.

Installation
------------

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require hrombach/json-validation-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require hrombach/json-validation-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
