zimbra-api / enum
Enum libraries used by Zimbra Api
Installs: 2 552
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-12-10 17:51:14 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
.