PHP code example of exbil / mailcow-php-api
1. Go to this page and download the library: Download exbil/mailcow-php-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/ */
exbil / mailcow-php-api example snippets
// Require the autoloader
e Exbil\MailCowAPI;
// Then simply pass your API-Token when creating the API client object.
$client = new MailCowAPI('mailcow-with-https.example.com','MAILCOW_API_KEY');
// Then you are able to perform a request
var_dump($client->domains()->getDomains());
json
{
"il/mailcow-php-api": "^0.14.2"
}
}