Update README.md
This commit is contained in:
parent
2594b13b10
commit
aef6611307
10
README.md
10
README.md
|
@ -31,17 +31,17 @@ use Nilet\Components\FileSystem\Directory;
|
||||||
|
|
||||||
require_once "vendor/autoload.php";
|
require_once "vendor/autoload.php";
|
||||||
|
|
||||||
$config = new Nilet\Components\Configuration\Config();
|
$config = new Config();
|
||||||
$config->setConfigFolder(new Directory(__DIR__ . "/config"));
|
$config->setConfigDir(new Directory(__DIR__ . "/config"));
|
||||||
$api = new VirtualminApi("domain.com", 1221, "root", "password", $config);
|
$api = new Virtualmin("domain.com", 1221, "root", "password", $config);
|
||||||
|
|
||||||
$domain = "domain.com";
|
$domain = "domain.com";
|
||||||
```
|
```
|
||||||
|
|
||||||
Email and Ftp accounts
|
Email and Ftp accounts
|
||||||
```
|
```
|
||||||
$emailManager = $api->createEmailAccountManager();
|
$emailManager = $api->createEmailManager();
|
||||||
$ftpManager = $api->createFtpAccountManager();
|
$ftpManager = $api->createFtpManager();
|
||||||
$emailManager->createEmailAccount($domain, "emailaccount1", "123", "Real name", 5);
|
$emailManager->createEmailAccount($domain, "emailaccount1", "123", "Real name", 5);
|
||||||
$ftpManager->createFtpAccount($domain, "onlyftp4", "123");
|
$ftpManager->createFtpAccount($domain, "onlyftp4", "123");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue