envoyr/php-froxlor-client

2.0.10-alpha+2 2023-02-14 19:28 UTC

This package is auto-updated.

Last update: 2024-05-08 13:15:18 UTC


README

API Wrapper for Froxlor.

Installation

You can install it via composer:

$ composer require envoyr/php-froxlor-client

How to use

$froxlor = new \Envoyr\Froxlor\Server([
    'host' => 'https://froxlor.example.com',
    'key' => '',
    'secret' => ''
]);

Customer

$response = $froxlor
    ->customers
    ->create([
        'email' => 'hello@example.com',
        'firstname' => 'Test',
        'name' => 'Testman',
        'custom_notes' => 'Created By API',
        'customernumber' => 1337,
        'new_loginname' => 'username',
        'new_customer_password' => 'someRandomString',
        'hosting_plan_id' => 1,
        'api_allowed' => false,
        'createstdsubdomain' => true,
    ]);

Email

$response = $froxlor
    ->customer('example')
    ->email('hello@example.com')
    ->attributes;

Info

Domains, Ftps, Email & EmailAccounts are also available.