PHP code example of zimbra-api / enum
1. Go to this page and download the library: Download zimbra-api/enum library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zimbra-api / enum example snippets
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();