PHPackages                             germania-kg/worlds - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. germania-kg/worlds

ActiveLibrary

germania-kg/worlds
==================

3.1.1(3y ago)0194[1 issues](https://github.com/GermaniaKG/Worlds/issues)1MITPHPPHP ^7.3|^8.0CI failing

Since Oct 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/Worlds)[ Packagist](https://packagist.org/packages/germania-kg/worlds)[ RSS](/packages/germania-kg-worlds/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (20)Used By (1)

Germania KG · Worlds
====================

[](#germania-kg--worlds)

**A *World* is a theoretical concept to put similar products into a common theoretical drawer, somehow.**

[![Packagist](https://camo.githubusercontent.com/c96a89e176b04099a56559999a5a701e572ac8cccea16345742efdfee313a056/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f776f726c64732e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/worlds)[![PHP version](https://camo.githubusercontent.com/d7dc22ec8ce134dcd529e23f0e08c7ff74b155d63deec79fbbf83754c24b9aaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f776f726c64732e737667)](https://packagist.org/packages/germania-kg/worlds)[![Build Status](https://camo.githubusercontent.com/edc0c64a56573669410aa9040a770b79742db42dda29c21a935624cce1452fc2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4765726d616e69614b472f576f726c64732e7376673f6c6162656c3d5472617669732532304349)](https://travis-ci.org/GermaniaKG/Worlds)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/949de092543907ecb5da853a60be8d8a9a69467fb87f49dc7328684b3018a4d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f576f726c64732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Worlds/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9a0d3f941fee54ff881da1d8e344b4e3590f3e198ee93b8fa9d98eec826c9773/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f576f726c64732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Worlds/?branch=master)[![Build Status](https://camo.githubusercontent.com/7b6bd7bb0d8be53233c6a9c39a690a55c4b4c51683a2ace42b27a364617c806f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f576f726c64732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Worlds/build-status/master)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require germania-kg/worlds
```

**MySQL:** This package requires a MySQL table *germania\_world* which you can install using `germania_world.sql` in `sql/` directory.

Usage
-----

[](#usage)

The *Worlds* class reads all worlds from the database. Its *WorldsInterface* extends the [container-interop](https://github.com/container-interop/container-interop) (upcoming [PSR 11](https://github.com/php-fig/fig-standards/blob/master/proposed/container.md) standard) as well as [*IteratorAggregate*](http://php.net/manual/de/class.iteratoraggregate.php), and [SPL Countable](http://php.net/manual/de/class.countable.php).

**To retrieve a single *World* instance:**

```
