xtlsoft / lxd-client
The LXD Client for PHP.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/xtlsoft/lxd-client
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-09-25 19:34:51 UTC
README
Lxd Client For PHP.
License
MIT
Author
Tianle Xu xtl@xtlsoft.top
Yes, it's me, not @idawnlight. The first commit is just a mistake (because we use the same server and I ran git commit
without editing config).
Usage
Example:
<?php require_once "vendor/autoload.php"; $server = LxdClient\Factory::server("local"); $container = $server->create("testFromPHP") ->limitMemory("1GB") ->limitCpu(2, "90%") ->limitDisk("5GB") ->limitSwap(false) ->restart(); $storage = LxdClient\Factory::blockStorage("/data/blockstorage/"); $storage->create("testFromPHP", "20GB") ->mount() ->attach($container, "/data");