konekt/common

This package is abandoned and no longer maintained. The author suggests using the konekt/enum package instead.

Common components and utils to be used across various Konekt libraries

Maintainers

👁 konekt

Package info

bitbucket.org/konekt/common

pkg:composer/konekt/common

Statistics

Installs: 261

Dependents: 1

Suggesters: 0

0.1.2 2016-03-03 13:34 UTC

Requires

  • php: >=5.3.3

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 089edbc98d9766301dcca0a4d2eaa36b32885ff5

  • Attila Fulop

konektartkonekt

This package is auto-updated.

Last update: 2019-02-20 18:40:37 UTC


README

PHP Component Set

v0.1.1 - 2016-03-03

Common components to be used across various Konekt libraries

Enum

Abstract class that enables creation of PHP enums. All you have to do is extend this class and define some constants. Alternative implementation of the SplEnum class (as that is often not available on php installations)

Enum is an object with value from one of those constants (or from one of superclass if any). There is also a __default constant that enables you to create an object without passing enum value.

Credits to Marian Suflaj, http://www.php4every1.com/scripts/php-enum/