envoyr / php-froxlor-client
2.0.10-alpha+2
2023-02-14 19:28 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0.1
This package is auto-updated.
Last update: 2024-09-08 13:57:40 UTC
README
Froxlor 的 API 包装器。
安装
您可以通过 composer 安装它
$ composer require envoyr/php-froxlor-client
如何使用
$froxlor = new \Envoyr\Froxlor\Server([ 'host' => 'https://froxlor.example.com', 'key' => '', 'secret' => '' ]);
客户
$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, ]);
电子邮件
$response = $froxlor ->customer('example') ->email('hello@example.com') ->attributes;
信息
域名、FTP、电子邮件和电子邮件账户也均可使用。