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

ActiveLibrary

germania-kg/categories
======================

1.2.0(3y ago)0186[1 issues](https://github.com/GermaniaKG/Categories/issues)1MITPHPPHP ^7.4|^8.0

Since Oct 24Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (12)Used By (1)

Germania KG · Categories
========================

[](#germania-kg--categories)

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

[![Packagist](https://camo.githubusercontent.com/6d1c6a6612f96570a60a8ccf37740125c27887877d9e4a74fa188257454239db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f63617465676f726965732e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/categories)[![PHP version](https://camo.githubusercontent.com/c65c8953576ab93182cf375fb3b1c5ccfffc21314056d572c1b801724b200eaa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f63617465676f726965732e737667)](https://packagist.org/packages/germania-kg/categories)[![Tests](https://github.com/GermaniaKG/Categories/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Categories/actions/workflows/tests.yml)

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

[](#installation-with-composer)

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

**MySQL:** This package requires a MySQL tables *categories* which you can install using `germania_categories.sql` in `sql/` directory.

Usage
-----

[](#usage)

While the *Categories* class is a simple storage, *PdoCategories* reads all downloads from the database. They both implement the [PSR-11 ContainerInterface](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md) as well as its [container-interop](https://github.com/container-interop/container-interop) antecessor, [IteratorAggregate](http://php.net/manual/de/class.iteratoraggregate.php) and SPL's [Countable](http://php.net/manual/de/class.countable.php).

```
