zelrone/soap-api
Composer 安装命令:
composer require zelrone/soap-api
包简介
PHP wrapper library around the Zimbra Soap API (web service) Upgraded to work on Guzzel 7.*
README 文档
README
This API A simple Object Oriented wrapper for the zimbra soap api (web service). It's written with PHP 5.x. It allows you to manage easily zimbra accounts, zimbra domains and zimbra servers.
Requirement
- PHP >= 5.5.x with cURL extension,
- Guzzle library,
- Evenement library,
- PhpCollection library,
- (optional) PHPUnit to run tests,
Autoload
The new version of zimbra-api using Composer.
The first step to use zimbra-api is to download composer:
$ curl -s http://getcomposer.org/installer | php
Then we have to install our dependencies using:
$ php composer.phar install
Now we can use autoloader from Composer by:
{ "require": { "zimbra-api/soap-api": "*" } }
zimbra-apifollows the PSR-4 convention names for its classes, which means you can easily integratezimbra-apiclasses loading in your own autoloader.
Basic usage of zimbra-api admin client
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $api = \Zimbra\Admin\AdminFactory::instance('https://localhost:7071/service/admin/soap'); $api->auth('username', 'password'); $account = new \Zimbra\Struct\AccountSelector(\Zimbra\Enum\AccountBy::NAME(), 'username'); $accountInfo = $api->getAccountInfo($account);
From $api object, you can access to all zimbra admin api.
##Licensing BSD 3-Clause
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2021-01-25