An open API service indexing awesome lists of open source software.

https://github.com/exbil/mailcow-php-api

A full-featured implementation of the MailCow API
https://github.com/exbil/mailcow-php-api

api api-client exbil mailcow mailcow-api mailcow-api-client php rest rest-api

Last synced: 3 months ago
JSON representation

A full-featured implementation of the MailCow API

Awesome Lists containing this project

README

          

# Mailcow PHP API Client

## Getting Started

### Requirements

* [**PHP 8.3+**](https://www.php.net/downloads.php)
* Extensions: [Composer](https://getcomposer.org/), [PHP-JSON](https://www.php.net/manual/en/book.json.php)

In the root of your project execute the following:

```sh
$ composer require exbil/mailcow-php-api
```

or add this to your `composer.json` file:

```json
{
"require": {
"exbil/mailcow-php-api": "^0.14.2"
}
}
```

Then perform the installation:

```sh
$ composer install --no-dev
```

## Usage

Search for the API Documentation [here](https://demo.mailcow.email/api/) or your own mailcow instance via `https://domain.com/api`.
You need an API Key for that which can be found in an self-hosted instance within the admin dashboard.

### Example

```php
domains()->getDomains());
?>
```