Skip to content

Commit ed30c3a

Browse files
authored
Update README.md
1 parent c8977b3 commit ed30c3a

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

README.md

-1.04 KB

In the root of your project execute the following:

$ composer require mscode-pl/mailcow-php-api
$ composer require exbil/mailcow-php-api

or add this to your composer.json file:

{
    "require": {
        "mscode-pl/mailcow-php-api": "^0.14.1"
        "exbil/mailcow-php-api": "^0.14.1"
    }
}

Then perform the installation:

Example

<?php
// Require the autoloader
require_once 'vendor/autoload.php';

// Use the library namespace
use MsCode\MailCow\MailCowAPI;
use Exbil\MailCow\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());
?>

0 commit comments

Comments
 (0)