zimbra-api/admin

由 Zimbra Api 使用的管理库

1.0.3 2016-03-26 06:15 UTC

This package is auto-updated.

Last update: 2024-09-10 17:19:29 UTC


README

Zimbra Admin 提供了对 zimbra 管理客户端的包装。

zimbra 管理客户端的基本使用

<?php

// This file is generated by Composer
require_once 'vendor/autoload.php';

$api = \Zimbra\Admin\AdminFactory::instance('https://:7071/service/admin/soap');
$api->auth('username', 'password');
$account = new \Zimbra\Struct\AccountSelector(\Zimbra\Enum\AccountBy::NAME(), 'username');
$accountInfo = $api->getAccountInfo($account);

$api 对象,你可以访问所有 zimbra 管理API。

安装

可以使用 Composer <https://getcomposer.org.cn> 轻松安装此包。只需将以下内容添加到项目根目录的 composer.json 文件中

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

然后使用 composer.phar install 命令安装你的依赖项。