Exbil / mailcow-php-api

A full-featured implementation of the MailCow API

Home Page:https://www.exbil.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailcow PHP API Client

Getting Started

Requirements

In the root of your project execute the following:

$ composer require exbil/mailcow-php-api

or add this to your composer.json file:

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

Then perform the installation:

$ composer install --no-dev

Usage

Search for the API Documentation here.
You need an API Key for that.

Example

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

// Use the library namespace
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());
?>

About

A full-featured implementation of the MailCow API

https://www.exbil.net

License:GNU Affero General Public License v3.0


Languages

Language:PHP 100.0%