Enum libraries used by Zimbra Api

Installs: 400

Dependents: 1

Suggesters: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

1.0.2 2016-03-26 05:18 UTC

README

Zimbra Enum provides enumarable classes for Zimbra Soap Api

The example below demonstrates how you can set up an enum class:

namespace Zimbra\Enum;

class CustomEnum extends Base
{
    const ENUM_CONST = 'enum value';
}

// $enum is a CustomEnum instance
$enum = CustomEnum::ENUM_CONST();

// this statement print 'enum value'
print $enum->value();

Installation

This package can be installed easily using Composer <http://getcomposer.org>. Simply add the following to the composer.json file at the root of your project:

{
    "require": {
        "zimbra-api/enum": "*"
    }
}

Then install your dependencies using composer.phar install.