PHPackages                             germania-kg/downloads - 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/downloads

ActiveLibrary

germania-kg/downloads
=====================

1.1.0(3y ago)035[3 issues](https://github.com/GermaniaKG/Downloads/issues)proprietaryPHPPHP ^7.4|^8.0

Since Oct 24Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (7)Versions (10)Used By (0)

Germania KG · Downloads
=======================

[](#germania-kg--downloads)

**This package was destilled from legacy code!**
You better do not want it to use this in production.

[![Packagist](https://camo.githubusercontent.com/37f3db9e9a43a29f3f84619554a59711f093e5abe10b76fa64a94849924c1f16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f646f776e6c6f6164732e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/downloads)[![Tests](https://github.com/GermaniaKG/Downloads/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Downloads/actions/workflows/tests.yml)

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

[](#installation-with-composer)

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

**MySQL:** This package requires some MySQL tables *downloads, downloads\_categories\_mm* and *downloads\_worlds\_mm* which you can install using `germania_downloads.sql` in `sql/` directory.

Usage
-----

[](#usage)

While the *Downloads* class is a simple storage, *PdoDownloads* reads all downloads from the database. They both implement 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), [IteratorAggregate](http://php.net/manual/de/class.iteratoraggregate.php) and SPL's [Countable](http://php.net/manual/de/class.countable.php).

You can iterate over it all worlds due to its interface, and you can retrieve single *Download* instances:

```
