mscode-pl/mailcow-php-api

A full-featured implementation of the MailCow API

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 2

pkg:composer/mscode-pl/mailcow-php-api

0.14.3 2024-10-07 18:47 UTC

This package is auto-updated.

Last update: 2025-10-07 20:54:39 UTC


README

Getting Started

Requirements

In the root of your project execute the following:

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

or add this to your composer.json file:

{
    "require": {
        "mscode-pl/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 MsCode\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());
?>