vexura / mailcow-api
A full-featured implementation of the MailCow API
dev-main
2022-11-09 16:46 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2024-12-09 21:50:49 UTC
README
This PHP 7.2+ library allows you to communicate with the VPNResellers-API.
Getting Started
Recommended installation is using Composer!
In the root of your project execute the following:
$ composer require vexura/mailcow-api
Or add this to your composer.json
file:
{ "require": { "vexura/mailcow-api": "^1.0" } }
Then perform the installation:
$ composer install --no-dev
Examples
Creating the MailCowAPI main object and get all Domains:
<?php // Require the autoloader require_once 'vendor/autoload.php'; // Use the library namespace use Vexura\MailCowAPI; // Then simply pass your API-Token when creating the API client object. $client = new MailCowAPI('API-Token'); // Then you are able to perform a request var_dump($client->domains()->getDomains()); ?>