2017 © Pedro Peláez
 

library saxulum-validator-provider

Saxulum Validator Provider (yaml)

image

saxulum/saxulum-validator-provider

Saxulum Validator Provider (yaml)

  • Friday, April 20, 2018
  • by dominikzogg
  • Repository
  • 1 Watchers
  • 3 Stars
  • 76,671 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 9 Versions
  • 12 % Grown

The README.md

saxulum-validator-provider

works with plain silex-php, (*1)

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality, (*2)

Features

  • Register validators

Requirements

  • php >=5.3
  • symfony/validator >=2.3

Annotation

  • doctrine/annotations ~1.0

Xml

  • symfony/config >=2.3

Yaml

  • symfony/config >=2.3
  • symfony/yaml >=2.3

Installation

Through Composer as [saxulum/saxulum-validator-provider][1]., (*3)

``` {.php} use Silex\Provider\ValidatorServiceProvider; use Saxulum\Validator\Provider\SaxulumValidatorProvider;, (*4)

$container->register(new ValidatorServiceProvider()); $container->register(new SaxulumValidatorProvider());, (*5)


#### Annotation ``` {.php} \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

XML

Register xml files., (*6)

``` {.php} $container['validator.loader.xml.files'] = $container->extend('validator.loader.xml.files', function ($files) { $files[] = DIR . '/../../Fixtures/test.xml'; return $files; });, (*7)


#### YAML Register yml files. ``` {.php} $container['validator.loader.yaml.files'] = $container->extend('validator.loader.yaml.files', function ($files) { $files[] = __DIR__ . '/../../Fixtures/test.yaml'; return $files; });

Usage

{.php} $container['validator']->validate($object);, (*8)

The Versions

20/04 2018

dev-master

9999999-dev

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

19/12 2015

2.1.1

2.1.1.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

19/12 2015

1.x-dev

1.9999999.9999999.9999999-dev

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

19/12 2015

1.1.1

1.1.1.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

19/12 2015

2.1.0

2.1.0.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

19/12 2015

1.1.0

1.1.0.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

25/10 2014

2.0.0

2.0.0.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

22/10 2014

1.0.1

1.0.1.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum

21/10 2014

1.0.0

1.0.0.0

Saxulum Validator Provider (yaml)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

validator silex pimple cilex saxulum