Download the PHP package queryr/entity-store without Composer

On this page you can find all versions of the php package queryr/entity-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package entity-store

QueryR EntityStore

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Download count

Provides persistence and basic lookup capabilities for collections of Wikibase entities.

System dependencies

Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on queryr/entity-store to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on EntityStore 1.x:

Usage

If you are curious what the database schema is, look at src/EntityStoreInstaller.php.

All services are constructed via the EntityStoreFactory class:

$dbalConnection is a Connection object from Doctrine DBAL.

Writing values

For writing values, you will need either ItemStore or PropertyStore.

The main write methods are "store document" and "remove document by id".

Note that $itemRow is of type ItemRow, which is defined by this component. ItemRow represents all values in a row of the items table. It does not require having a fully instantiated Wikibase DataModel EntityDocument object, you just need the JSON.

Next to ItemRow there also is ItemInfo, which is identical, apart for not having the JSON. (Internally these share code via the package private trait ItemRowInfo.)

Querying values

This list is incomplete and serves mainly to give you an idea of what this library contains. To get a full list, look at the services you can construct via the store, and their interfaces.

Fetching an Item by id

Property data type lookup

List item info

Get cheaply retrievable info on the first 100 items.

Restrict the result to items of type "book", assuming 424242 is the numeric id of "book".

List item types

This will get you numeric item ids that represent the types of the items ("instance of") in the system.

Running the tests

For tests only

composer test

For style checks only

composer cs

For a full CI run

composer ci

Release notes

Version 1.1.0 (2017-02-28)

Version 1.0.0 (2015-11-04)

Version 0.6.2 (2014-12-24)

Version 0.6.1 (2014-10-21)

Version 0.6.0 (2014-10-03)

Version 0.5.4 (2014-09-08)

Version 0.5.3 (2014-09-06)

Version 0.5.2 (2014-09-06)

Version 0.5.1 (2014-09-06)

Version 0.5 (2014-09-06)

Version 0.4 (2014-08-27)

Version 0.3.1 (2014-08-20)

Version 0.3 (2014-08-20)

Version 0.2 (2014-06-29)

Version 0.1 (2014-05-15)


All versions of entity-store with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
ext-pdo Version *
doctrine/dbal Version ~2.5
wikibase/data-model Version ~6.0|~5.0|~4.0|~3.0|~2.5
serialization/serialization Version ~3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package queryr/entity-store contains the following files

Loading the files please wait ....