zimbra-api / soap-api
PHP wrapper library around the Zimbra Soap API
Installs: 79 019
Dependents: 2
Suggesters: 0
Security: 0
Stars: 63
Watchers: 14
Forks: 50
Open Issues: 32
Requires
- php: ^8.1
- jms/serializer: ^3.30
- psr-discovery/http-client-implementations: ^1.0
- psr-discovery/http-factory-implementations: ^1.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/log: ^3.0
Requires (Dev)
- fakerphp/faker: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^7.0 | ^8.0 | ^9.0
Suggests
- guzzlehttp/guzzle: Required if you like to use Guzzle PSR-18 HTTP Client & PSR-7 HTTP message factories
- symfony/cache: Required if you like to use Serializer Annotations & Metadata caching
This package is auto-updated.
Last update: 2024-10-30 06:42:39 UTC
README
This library is a simple Object Oriented wrapper for the Zimbra SOAP API.
Requirement
- PHP 8.1.x or later,
- PSR Discovery library for searching installed http clients and http message factories,
- Serializer library for (de-)serializing XML,
- (optional) PHPUnit to run tests,
Installation
Via Composer
$ composer require zimbra-api/soap-api
or just add it to your composer.json
file directly.
{ "require": { "zimbra-api/soap-api": "*" } }
Basic usage of admin api
<?php declare(strict_types=1); require_once 'vendor/autoload.php'; use Zimbra\Admin\AdminApi; use Zimbra\Common\Enum\AccountBy; use Zimbra\Common\Struct\AccountSelector; $api = new AdminApi('https://zimbra.server:7071/service/admin/soap'); $api->auth($username, $password); $account = $api->getAccountInfo(new AccountSelector(AccountBy::NAME, $accountName));
From $api
object, you can access to all Zimbra Admin API.
Licensing
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.