Download the PHP package lucamauri/wikibase-boolean without Composer

On this page you can find all versions of the php package lucamauri/wikibase-boolean. 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-boolean

WikibaseBoolean

lucamauri.github.io/WikibaseBoolean

A native, true 2-state Boolean datatype for Wikibase, the structured-data MediaWiki extension that powers Wikidata and many independent knowledge-base installs, for standalone deployments that want a lightweight true/false flag without maintaining a pair of "true value" / "false value" items for every such property.

Status

All four datatype components are implemented and tested, plus a checkbox edit widget and a CI pipeline that exercises the extension inside a real, disposable MediaWiki + Wikibase install:

BooleanParser, BooleanFormatter, BooleanValidator, and Hooks run under plain composer test. BooleanRdfMapper depends on Wikibase-internal interfaces and can only be meaningfully tested inside a real MediaWiki + Wikibase installation (see phpunit.xml.dist's own header comment) -- CI covers this via a disposable install against both MediaWiki REL1_43 (this extension's minimum supported version) and master (an allowed-to-fail canary for upstream breakage).

Live-tested end to end on a real Wikibase deployment (DataTrek): a Boolean property with a saved statement, verified correct through to RDF export (xsd:boolean, via Special:EntityData).

See docs/adr/ for the architecture decisions behind these components and why they're shaped the way they are.

Scope

Requirements

Installation

First, install MediaWiki and the Wikibase Repository extension.

Using Composer (recommended)

From your wiki's root directory:

Manual download

Clone or download this repository, and place the WikibaseBoolean directory into your wiki's extensions/ folder. You will also need to merge WikibaseBoolean's own Composer requirements (data-values/data-values, data-values/interfaces) into MediaWiki's vendor/ -- add an "include" entry for extensions/WikibaseBoolean/composer.json to your wiki's composer.local.json merge-plugin configuration, then run composer update from your wiki's root.

Enabling the extension

Add the following to the bottom of LocalSettings.php, after Wikibase Repository is loaded:

Verify the extension is active via Special:Version. A "Boolean" data type will then be available when creating a new property.

Localization

i18n/en.json (source) and i18n/it.json (Italian) are included. Contributions of further translations are welcome via MediaWiki's standard i18n/ message-file convention.

License

GPL-2.0-or-later, matching Wikibase core and the rest of the Wikibase extension ecosystem. See LICENSE.


Forged with logic 🖖🏻 at Wikitrek, shared freely with the Galaxy


All versions of wikibase-boolean with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer/installers Version ^2 || ^1.0.1
data-values/data-values Version ^3.1
data-values/interfaces Version ^1.0
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 lucamauri/wikibase-boolean contains the following files

Loading the files please wait ...