GithubHelp home page GithubHelp logo

bhanditz / interfaces Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datavalues/interfaces

0.0 2.0 0.0 87 KB

Defines interfaces for ValueParsers, ValueFormatters and ValueValidators

License: Other

PHP 100.00%

interfaces's Introduction

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

Requirements

  • PHP 5.5 or later

Installation

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.

Composer

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 0.2:

{
    "require": {
        "data-values/interfaces": "0.2.*"
    }
}

Manual

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.

Tests

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.

Authors

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

Release notes

1.0.0 (alpha)

  • Removed ValueValidator::setOptions
  • Removed DATAVALUES_INTERFACES_VERSION constant
  • Removed $optionMap parameter from ValueValidatorObject::runSubValidator

0.2.5 (2017-08-09)

  • Removed MediaWiki extension credits registration

0.2.4 (2017-08-02)

  • Fixed ValueFormatterTestBase not being installable via Composer.

0.2.3 (2017-08-02)

  • Updated minimal required PHP version from 5.3 to 5.5.9.
  • Minor fixes to code documentation.
  • Added PHPCS support.

0.2.2 (2016-07-15)

  • Fixed ValueFormatterTestBase not doing strict string comparisons.

0.2.1 (2016-01-13)

  • Fixed an issue when using this component with HHVM 1.11.0 (see #21).

0.2.0 (2015-08-11)

  • Dropped deprecated ErrorObject, use Error instead
  • Dropped deprecated ResultObject, use Result instead
  • Dropped deprecated constant DataValuesInterfaces_VERSION, use DATAVALUES_INTERFACES_VERSION instead
  • Dropped ValueFormatterTestBase::getFormatterClass
  • Made ValueFormatterTestBase::getInstance abstract
  • The options in ValueFormatterTestBase::getInstance are now optional

0.1.5 (2015-02-14)

  • The options in the ValueFormatterBase constructor are now optional
  • The MediaWiki extension registration now includes the license

0.1.4 (2014-04-14)

  • Added rawValue and expectedFormat arguments to ValueParsers\ParseException

0.1.3 (2014-03-31)

  • Added ValueFormatters\FormattingException

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.0 (2013-11-16)

Initial release with these features:

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

Links

interfaces's People

Contributors

jeroendedauw avatar thiemowmde avatar manicki avatar mariushoch avatar addshore avatar adrianheine avatar ladsgroup avatar filbertkm avatar legoktm avatar jaakristioja avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.