2023-01-25 12:42:58 +01:00
2023-01-25 12:42:58 +01:00
2022-01-18 17:14:29 +01:00
2022-01-18 17:14:29 +01:00
2022-01-18 17:53:06 +01:00
2022-01-18 17:14:29 +01:00
2022-01-18 17:49:44 +01:00

PHP Froxlor API Client

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.

Description
No description provided
Readme MIT 58 KiB
Languages
PHP 100%