Download the PHP package addwiki/wikibase-api without Composer
On this page you can find all versions of the php package addwiki/wikibase-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wikibase-api
wikibase-api
Issue tracker: https://github.com/addwiki/addwiki/issues
Installation
Use composer to install the library and all its dependencies:
composer require "addwiki/wikibase-api:~3.0"
Example Usage
The library provides users with a large collection of Services. These services should be retrieved from the WikibaseFactory class.
Below you will find some more examples using various services. Each example follows on from the previous example (so as not to repeat the first steps). Note: this library uses namespaces so please remember to add the relevant use clauses.
Load & General Setup
Create an empty entity
Create a new empty item.
Set a label
Set an English label on the item Q87 assuming it exists, using a custom summary.
Create a new statement
Create a new string statement on item Q777 if a statement for the property doesn't already exist.
Remove a statement using a GUID
Remove the statement with the given claim (if it exists)
Add a reference to a statement
Attempt to merge 2 items
Try to merge Q999 and Q888 if possible, catch any errors.
Simple Lookups
Easily lookup an item object, an individual label and redirect sources.
All versions of wikibase-api with dependencies
addwiki/mediawiki-api-base Version ^3.1
addwiki/mediawiki-datamodel Version ^3.1
addwiki/wikibase-datamodel Version ^3.1
serialization/serialization Version ~3.2||~4.0
wikibase/data-model Version ~9.2||~8.0
wikibase/data-model-serialization Version ~2.0
wikibase/data-model-services Version ~4.0