mirror of
https://github.com/envoyr/php-froxlor-client.git
synced 2026-04-28 04:06:19 +00:00
Initial commit
This commit is contained in:
45
README.md
Normal file
45
README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# PHP Froxlor API Client
|
||||
|
||||
API Wrapper for Froxlor.
|
||||
|
||||
## How to use
|
||||
|
||||
````
|
||||
$froxlor = new \Envoyr\Froxlor\Server([
|
||||
'host' => 'de-nue-dev.bitinflow.space',
|
||||
'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.
|
||||
Reference in New Issue
Block a user