PHP code example of zimbra-api / account
1. Go to this page and download the library: Download zimbra-api/account 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 / account example snippets
// This file is generated by Composer
or(\Zimbra\Enum\AccountBy::NAME(), 'username');
$api = \Zimbra\Account\AccountFactory::instance('https://localhost/service/soap');
$api->auth($account, 'password');
$accountInfo = $api->getAccountInfo($account);