Skip to content
PHP client for CommunigateAPI
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/CommunigateApi
tests/CommunigateApi/Tests
.gitignore
README.md
composer.json
phpunit.xml.dist

README.md

CommunigateAPI

Basic API object for Communigate Mail Server.


$api = new Api(array(
    'host' => '127.0.0.1',
    'login' => 'admin@example.com',
    'password' => 'password'
));

// Get all available domains
$api->get_domains();

// Get all available accounts
$api->get_accounts('example.com');

// Create and remove accounts
$api->create_account('example.com', 'test', 'password');
$api->delete_account('example.com', 'test');

// Set and remove email redirect
$api->set_email_redirect('example.com', 'test', 'dev@null.com');
$api->clear_email_redirect('example.com', 'test');
Something went wrong with that request. Please try again.