PHP code example of envoyr / php-froxlor-client

1. Go to this page and download the library: Download envoyr/php-froxlor-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

envoyr / php-froxlor-client example snippets


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

$response = $froxlor
    ->customers
    ->create([
        'email' => '[email protected]',
        '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,
    ]);

$response = $froxlor
    ->customer(1)
    ->email(1)
    ->attributes;