Enum libraries used by Zimbra Api

1.0.2 2016-03-26 05:18 UTC

This package is auto-updated.

Last update: 2024-11-10 17:38:01 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.