Download the PHP package ppp/wikibase-entity-store without Composer

On this page you can find all versions of the php package ppp/wikibase-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 wikibase-entity-store

WikibaseEntityStore

Build Status Code Coverage Scrutinizer Code Quality Dependency Status

On Packagist: Latest Stable Version Download count

WikibaseEntityStore is a small library that provides an unified interface to interact with Wikibase entities.

It currently has two backends:

Installation

Use one of the below methods:

1 - Use composer to install the library and all its dependencies using the master branch:

composer require "ppp/wikibase-entity-store":dev-master"

2 - Create a composer.json file that just defines a dependency on version 1.0 of this package, and run 'composer install' in the directory:

Usage

Features

The entity storage system is based on the abstract class EntityStore that provides different services to manipulate entities.

These services are:

Backends

API Backend

The API backend is the most easy to use one. It uses the API of a Wikibase instance and WikidataQuery if you use this EntityStore as a backend for Wikidata data and you want query support.

The configuration file looks like:

Replace http://www.wikidata.org/w/api.php with the URL of your WediaWiki API if you want to use your store with an other Wikibase instance than Wikidata.

The parameter wikidataquery-url is optional and may be unset if you don't want query support using Wikidata content.

Without configuration file:

MongoDB Backend

The MongoDB backend uses a MongoDB database. Requires doctrine/mongodb.

The configuration file looks like:

server should be a MongoDB server connection string and database the name of the database to use.

Without configuration file:

You can fill the MongoDB database from Wikidata JSON dumps using this script:

 php entitystore import-json-dump MY_JSON_DUMP MY_CONFIGURATION_FILE

Or from incremental XML dumps using this script:

php entitystore import-incremental-xml-dump MY_XML_DUMP MY_CONFIGURATION_FILE

InMemory backend

Backend based on an array of EntityDocuments. Useful for tests.

Options

The different backends support a shared set of options. These options are:

They can be injected in the configuration:

They can be also passed as last parameter of EntityStore constructors:

Cache support

It is possible, in order to get far better performances, to add a cache layer on top of EntityStore:

Adds to the configuration file a cache section.

Example with a two layers cache. The first one is a PHP array and the second one a Memcached instance on localhost:11211.

Without configuration file:

Release notes

0.3.1 (2016-01-11)

0.3.0 (2016-01-11)

0.1.0 (2015-04-21)

Initial release with these features:


All versions of wikibase-entity-store with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
wikibase/data-model Version ~4.3|~5.0|~6.0
wikibase/data-model-services Version ~3.2
wikibase/data-model-serialization Version ~2.0
data-values/data-values Version ~1.0
data-values/common Version ~0.3.0
data-values/geo Version ~1.0
data-values/number Version ~0.6.0|~0.7.0
data-values/time Version ~0.8.0
data-values/validators Version ~0.1.0
data-values/serialization Version ~1.0
addwiki/mediawiki-api-base Version ~2.0
doctrine/cache Version ~1.4
psr/log Version ~1.0
symfony/config Version ~3.0
ask/ask Version ~1.0
ask/serialization Version ~1.0
ppp/wikidataquery-api Version ~1.3
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 ppp/wikibase-entity-store contains the following files

Loading the files please wait ....