PHP code example of nucleus-be / zimbra-api

1. Go to this page and download the library: Download nucleus-be/zimbra-api 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/ */

    

nucleus-be / zimbra-api example snippets




// This file is generated by Composer
('https://localhost:7071/service/admin/soap');
$authToken = $api->auth('username', 'password');
$api->auth('username', 'password');
$account = new \Zimbra\Struct\AccountSelector(\Zimbra\Enum\AccountBy::NAME(), 'username');
$accountInfo = $api->getAccountInfo($account);
bash
$ php composer.phar install