PHPackages                             nkey/phpgenerics - 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. [Framework](/categories/framework)
4. /
5. nkey/phpgenerics

ActiveLibrary[Framework](/categories/framework)

nkey/phpgenerics
================

A generic component framework

1.1(8y ago)26664BSD-3-ClausePHPPHP &gt;=7.0

Since Feb 22Pushed 7y ago3 watchersCompare

[ Source](https://github.com/maikgreubel/phpgenerics)[ Packagist](https://packagist.org/packages/nkey/phpgenerics)[ Docs](https://github.com/maikgreubel/phpgenerics)[ RSS](/packages/nkey-phpgenerics/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (12)Versions (4)Used By (4)

[![Build Status](https://camo.githubusercontent.com/6276377b0df0dd566f473bafa280178bbaac2ef180c3f3b1134746159b75f699/68747470733a2f2f7472617669732d63692e6f72672f6d61696b6772657562656c2f70687067656e65726963732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/maikgreubel/phpgenerics)[![Code Coverage](https://camo.githubusercontent.com/bf293223fe486f5513b4ae08cb1a77493f289a75f0042f9d794e3321f4dcab15/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61696b6772657562656c2f70687067656e65726963732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/maikgreubel/phpgenerics/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8a9ef8529465654559dae7460567dca8d86ff650e26524fe33b2591731e87d07/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61696b6772657562656c2f70687067656e65726963732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/maikgreubel/phpgenerics/?branch=master)[![Requirements Status](https://camo.githubusercontent.com/eb979be32f4b17cc6f9ae006b46c88c003a36eaa1a2999bbaf8a90c065c8cc6d/68747470733a2f2f72657175697265732e696f2f6769746875622f6d61696b6772657562656c2f70687067656e65726963732f726571756972656d656e74732e7376673f6272616e63683d6d6173746572)](https://requires.io/github/maikgreubel/phpgenerics/requirements/?branch=master)

PHP Generics
============

[](#php-generics)

The purpose of this package is to provide some classes for more sophisticated access to ressources. It can be used in any framework or application which intends to use abstract interfaces.

Currently it provides a basic stream API, a socket provider and a logging infrastructure based on the PSR-3. The intention is to extend it with more infrastructure code.

Usage
-----

[](#usage)

Please take a look into API documentation. To create the API documentation by yourself, please install Apache Ant and execute

```
ant

```

Any further execution can be performed without updating the dependencies using command

```
ant no-update

```

Stability
---------

[](#stability)

The API is a test-driven framework and uses PHPUnit to test the stability. Please use ant (if not yet done, see Usage) and execute

```
ant

```

This will run all available test suites in tests/\*. The command performs also some basic checks for copy&amp;paste code parts and calculate the code quality.

Feel free to write and publish further tests.

In case of an error please report bugs using a PHPUnit test class. Take a look into the tests/ sub folders to see examples how to do create a new one.

License
-------

[](#license)

The whole package is published under the terms of second BSD License (BSD2). Take a look into LICENSE.md

Pointers
--------

[](#pointers)

This framework makes use of composer available at  to generate API documentation and perform tests.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~455 days

Total

3

Last Release

3238d ago

PHP version history (2 changes)1.0.x-devPHP &gt;=5.4

1.1PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d390422a6ff7b8c9131780d182a38e21188e6df8f5cb03d0a0dae34bb856915?d=identicon)[maikgreubel](/maintainers/maikgreubel)

---

Top Contributors

[![maikgreubel](https://avatars.githubusercontent.com/u/745973?v=4)](https://github.com/maikgreubel "maikgreubel (127 commits)")[![greubel-mms](https://avatars.githubusercontent.com/u/83648989?v=4)](https://github.com/greubel-mms "greubel-mms (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

frameworkcomponent

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nkey-phpgenerics/health.svg)

```
[![Health](https://phpackages.com/badges/nkey-phpgenerics/health.svg)](https://phpackages.com/packages/nkey-phpgenerics)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

737290.3k8](/packages/nutgram-nutgram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
