Defines interfaces for ValueParsers, ValueFormatters and ValueValidators

Clone this repo:
  1. b18ad08 Update bootstrap.php by Jeroen De Dauw · 9 years ago master
  2. b2917e3 1.1.2 release by jeroendedauw · 9 years ago 0.1.2
  3. 05d2b11 Update entry point name by jeroendedauw · 9 years ago
  4. f4ba9f9 Update readme by jeroendedauw · 9 years ago
  5. e48c6b1 Improve autoloading code and bump to 0.1.1 by jeroendedauw · 9 years ago 0.1.1

DataValues Interfaces

DataValues Interfaces is a small PHP library that defines a set of interfaces for parsers, formatters and validators.

It is part of the DataValues set of libraries.

Build Status Code Coverage Scrutinizer Quality Score

On Packagist: Latest Stable Version Download count


  • PHP 5.3 or later


You can use Composer to download and install this package as well as its dependencies. Alternatively you can simply clone the git repository and take care of loading yourself.


To add this package as a local, per-project dependency to your project, simply add a dependency on data-values/interfaces to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on DataValues Interfaces 1.0:

    "require": {
        "data-values/interfaces": "1.0.*"


Get the DataValues Interfaces code, either via git, or some other means. Also get all dependencies. You can find a list of the dependencies in the "require" section of the composer.json file. Load all dependencies and the load the DataValues Interfaces library by including its entry point: Interfaces.php.


This library comes with a set up PHPUnit tests that cover all non-trivial code. You can run these tests using the PHPUnit configuration file found in the root directory. The tests can also be run via TravisCI, as a TravisCI configuration file is also provided in the root directory.


DataValues Interfaces has been written by Jeroen De Dauw, as Wikimedia Germany employee for the Wikidata project.

Release notes

0.1.2 (2013-11-22)

  • Improved autoloading code
  • Fixed link in MediaWiki credits
  • Renamed entry point from DataValuesInterfaces.php to Interfaces.php

0.1 (2013-11-16)

Initial release with these features:

  • ValueFormatters\ValueFormatter interface
  • ValueParsers\ValueParser interface
  • ValueValidators\ValueValidator interface