PHP Classes
elePHPant
Icontem

Melody Validation: Validate values according to many types of rules

Recommend this page to a friend!
  Info   View files View files (56)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2013-10-17 (3 years ago) RSS 2.0 feedStarStarStar 51%Total: 261 All time: 7,305 This week: 1,018Up
Version License PHP version Categories
melody-validation 1.0.0BSD License5.3.3Validation
Description Author

This package can validate values according to many types of rules.

It provides a set of classes that can check if given values pass certain rules and satisfy constraints determined by a chain of function calls verify the validation conditions.

It can also load the definition of validation groups from files in PHP or YAML format.

Innovation Award
PHP Programming Innovation award nominee
October 2013
Number 2


Prize: One downloadable e-book of choice by O'Reilly
Most applications need to validate data provided by the users or some other unreliable data source.

This package not only can validate data according to many rules, but it also can load the validation rules from external files in the PHP or YAML format.

This way it can provide separation between application logic and data validation logic.

Manuel Lemos
Picture of Marcelo Santos
Name: Marcelo Santos <contact>
Classes: 1 package by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (2 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENCE Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageMelody (1 directory)

  Files folder image Files  /  src  /  Melody  
File Role Description
Files folder imageValidation (2 files, 4 directories)

  Files folder image Files  /  src  /  Melody  /  Validation  
File Role Description
Files folder imageCommon (1 directory)
Files folder imageConstraints (17 files)
Files folder imageExceptions (2 files)
Files folder imageValidationGroups (7 files)
  Plain text file Validatable.php Class Class source
  Plain text file Validator.php Class Class source

  Files folder image Files  /  src  /  Melody  /  Validation  /  Common  
File Role Description
Files folder imageCollections (3 files)

  Files folder image Files  /  src  /  Melody  /  Validation  /  Common  /  Collections  
File Role Description
  Plain text file ArrayCollection.php Class Class source
  Plain text file Collection.php Class Class source
  Plain text file ConstraintsCollection.php Class Class source

  Files folder image Files  /  src  /  Melody  /  Validation  /  Constraints  
File Role Description
  Plain text file Alnum.php Class Class source
  Plain text file Constraint.php Class Class source
  Plain text file ContainsDigit.php Class Class source
  Plain text file ContainsLetter.php Class Class source
  Plain text file ContainsSpecial.php Class Class source
  Plain text file Email.php Class Class source
  Plain text file Int.php Class Class source
  Plain text file Length.php Class Class source
  Plain text file Max.php Class Class source
  Plain text file MaxLength.php Class Class source
  Plain text file Min.php Class Class source
  Plain text file MinLength.php Class Class source
  Plain text file NotEmpty.php Class Class source
  Plain text file NoWhitespace.php Class Class source
  Plain text file Number.php Class Class source
  Plain text file Range.php Class Class source
  Plain text file String.php Class Class source

  Files folder image Files  /  src  /  Melody  /  Validation  /  Exceptions  
File Role Description
  Plain text file InvalidFileException.php Class Class source
  Plain text file InvalidFileTypeException.php Class Class source

  Files folder image Files  /  src  /  Melody  /  Validation  /  ValidationGroups  
File Role Description
  Plain text file AbstractValidationGroupsFileParser.php Class Class source
  Plain text file AbstractValidationGroupsParser.php Class Class source
  Plain text file ArrayParserStrategy.php Class Class source
  Plain text file PHPParserStrategy.php Class Class source
  Plain text file ValidationGroups.php Class Class source
  Plain text file ValidationGroupsFactory.php Class Class source
  Plain text file YamlParserStrategy.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imagesrc (2 directories)
  Accessible without login Plain text file bootstrap.php Aux. Unit test script
  Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data

  Files folder image Files  /  tests  /  src  
File Role Description
Files folder imageMelody (1 directory)
Files folder imageResources (1 directory)

  Files folder image Files  /  tests  /  src  /  Melody  
File Role Description
Files folder imageValidation (2 files, 2 directories)

  Files folder image Files  /  tests  /  src  /  Melody  /  Validation  
File Role Description
Files folder imageCommon (1 file)
Files folder imageConstraints (16 files)
  Accessible without login Plain text file ValidationGroupsTest.php Test Class source
  Accessible without login Plain text file ValidatorTest.php Test Class source

  Files folder image Files  /  tests  /  src  /  Melody  /  Validation  /  Common  
File Role Description
  Accessible without login Plain text file CollectionsTest.php Test Unit test script

  Files folder image Files  /  tests  /  src  /  Melody  /  Validation  /  Constraints  
File Role Description
  Accessible without login Plain text file AlnumTest.php Test Unit test script
  Accessible without login Plain text file ContainsDigitTest.php Test Unit test script
  Accessible without login Plain text file ContainsLetterTest.php Test Unit test script
  Accessible without login Plain text file ContainsSpecialTest.php Test Unit test script
  Accessible without login Plain text file EmailTest.php Test Unit test script
  Accessible without login Plain text file IntTest.php Test Unit test script
  Accessible without login Plain text file LengthTest.php Test Unit test script
  Accessible without login Plain text file MaxLengthTest.php Test Unit test script
  Accessible without login Plain text file MaxTest.php Test Unit test script
  Accessible without login Plain text file MinLengthTest.php Test Unit test script
  Accessible without login Plain text file MinTest.php Test Unit test script
  Accessible without login Plain text file NotEmptyTest.php Test Unit test script
  Accessible without login Plain text file NoWhitespaceTest.php Test Unit test script
  Accessible without login Plain text file NumberTest.php Test Unit test script
  Accessible without login Plain text file RangeTest.php Test Unit test script
  Accessible without login Plain text file StringTest.php Test Unit test script

  Files folder image Files  /  tests  /  src  /  Resources  
File Role Description
Files folder imageconfig (2 files)

  Files folder image Files  /  tests  /  src  /  Resources  /  config  
File Role Description
  Plain text file validation.php Class Class source
  Accessible without login Plain text file validation.yml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:261
This week:0
All time:7,305
This week:1,018Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:58%StarStarStar
Videos:-
Overall:51%StarStarStar
Rank:1938