2017 © Pedro Peláez
 

library data-types

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

image

data-values/data-types

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  • Monday, December 11, 2017
  • by addshore
  • Repository
  • 16 Watchers
  • 0 Stars
  • 84,856 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

[READ-ONLY] This component has been integrated into Wikibase extension., (*1)

DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage"., (*2)

Build Status Code Coverage Scrutinizer Quality Score Dependency Status, (*3)

On Packagist: Latest Stable Version Download count, (*4)

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., (*5)

Composer

To add this package as a local, per-project dependency to your project, simply add a dependency on data-values/data-types to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on DataTypes 1.0:, (*6)

{
    "require": {
        "data-values/data-types": "~1.0"
    }
}

Manual

Get the DataTypes 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 DataTypes library by including its entry point: DataTypes.php., (*7)

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., (*8)

Authors

DataTypes has been written by the Wikidata team at Wikimedia Germany for the Wikidata project., (*9)

Release notes

2.0.0 (2017-11-14)

  • Removed DataTypesModules
  • Removed MediaWiki integration. The library is no longer a MediaWiki extension.
  • Removed JavaScript files and internationalizations (moved to a separate package).

1.0.0 (2016-12-29)

  • DataType and DataTypeFactory do not accept empty strings any more.
  • Removed DataType::getLabel along with the DataTypes\Message class.
  • Added DataType::getMessageKey.
  • Added a basic PHPCS rule set, can be run with composer phpcs.

0.5.2 (2016-02-17)

  • Fixed cache invalidation in DataTypesModule.
  • Fixed DataTypeFactory to report invalid arguments on construction.

0.5.1 (2015-10-20)

  • DataTypeFactory::getTypes() now returns array with typeId keys as documented

0.5.0 (2015-08-10)

Breaking changes

  • DataType no longer takes an array of ValueValidator in its constructor
  • DataType::getValidators has been removed
  • DataTypeFactory now takes a map from data type id to data value type.
  • DataTypeFactory::registerBuilder has been removed

0.4.3 (2015-06-18)

  • Fixed version number constant.

0.4.2 (2015-06-18)

  • Updated code documentation for being able to automatically generate a proper documentation using JSDuck.
  • Removed the ResourceLoader module "dependencies" which had been defined by accident.

0.4.1 (2014-11-18)

  • Improved path detection so it does not break when the library is included in vendor rather than extensions

0.4.0 (2014-05-21)

  • Removed the global variable wgDataTypes

0.3.0 (2014-05-21)

  • Rename monolingual-text to monolingualtext
  • Rename multilingual-text to multilingualtext

0.2.1 (2014-05-06)

  • Migrated the i18n support to the new MediaWiki JSON format
  • The tests are now run on PHP 5.6 and HHVM on travis

0.2.0 (2014-03-14)

Breaking changes

  • dataTypes.DataType JavaScript object may no longer be initialized from a dataValues.DataValue object.
  • Removed dataTypes.DataType.getLabel.
  • Removed global DataType registration in the dataTypes object; DataTypeStore is to be used instead.
  • Split up generic "dataTypes" ResourceLoader module into "dataTypes.DataType" and "dataTypes.DataTypeStore".

Enhancements

  • Removed MediaWiki and DataValues dependencies from JavaScript code.
  • Made code PSR-4 compliant
  • Removed ResourceLoader dependency of QUnit tests.
  • Implemented DataTypeStore.

0.1.1 (2013-12-23)

  • Remove assumption about where the extension is installed in the resource loading paths.

0.1.0 (2013-12-15)

Initial release., (*10)

The Versions

11/12 2017

dev-master

9999999-dev https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

11/12 2017

dev-wmf/1.31.0-wmf.12

dev-wmf/1.31.0-wmf.12 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

11/12 2017

dev-wmf/1.31.0-wmf.15

dev-wmf/1.31.0-wmf.15 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

14/11 2017

2.0.0

2.0.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

14/11 2017

dev-wmf/1.31.0-wmf.10

dev-wmf/1.31.0-wmf.10 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

14/11 2017

dev-wmf/1.31.0-wmf.11

dev-wmf/1.31.0-wmf.11 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

14/11 2017

dev-wmf/1.31.0-wmf.8

dev-wmf/1.31.0-wmf.8 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

02/10 2017

dev-wmf/1.31.0-wmf.3

dev-wmf/1.31.0-wmf.3 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

02/10 2017

dev-wmf/1.31.0-wmf.4

dev-wmf/1.31.0-wmf.4 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

02/10 2017

dev-wmf/1.31.0-wmf.5

dev-wmf/1.31.0-wmf.5 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

02/10 2017

dev-wmf/1.31.0-wmf.6

dev-wmf/1.31.0-wmf.6 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

02/10 2017

dev-wmf/1.31.0-wmf.7

dev-wmf/1.31.0-wmf.7 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

28/09 2017

dev-extensionRegistration

dev-extensionRegistration https://github.com/wmde/DataTypes

Collection of data type definitions

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

18/09 2017

dev-REL1_30

dev-REL1_30 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

18/09 2017

dev-wmf/1.31.0-wmf.1

dev-wmf/1.31.0-wmf.1 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

05/08 2017

dev-update-build

dev-update-build https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.9

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

04/08 2017

dev-eslintRunner

dev-eslintRunner https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.0

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

30/12 2016

1.0.0

1.0.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.5.0

 

The Development Requires

by Daniel Kinzler

datavalues datatypes

17/02 2016

0.5.2

0.5.2.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

by Daniel Kinzler

datavalues datatypes

20/10 2015

0.5.1

0.5.1.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

by Daniel Kinzler

datavalues datatypes

10/08 2015

0.5.0

0.5.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

by Daniel Kinzler

datavalues datatypes

18/06 2015

0.4.3

0.4.3.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

18/06 2015

0.4.2

0.4.2.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

18/11 2014

0.4.1

0.4.1.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

21/05 2014

0.4

0.4.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

21/05 2014

0.3

0.3.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

07/05 2014

0.2.1

0.2.1.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

14/03 2014

0.2

0.2.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

datavalues datatypes

18/02 2014

0.1.2

0.1.2.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

 

datavalues datatypes

23/12 2013

0.1.1

0.1.1.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

 

datavalues datatypes

15/12 2013

0.1

0.1.0.0 https://github.com/wmde/DataTypes

PHP library defining the DataTypes\DataType class of which instances represent a type of value, such as "positive integer" or "percentage".

  Sources   Download

GPL-2.0+

The Requires

 

datavalues datatypes