Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xtlsoft/lxdclient

Lxd Client For PHP.
https://github.com/xtlsoft/lxdclient

Last synced: 2 days ago
JSON representation

Lxd Client For PHP.

Awesome Lists containing this project

README

        

# LxdClient
Lxd Client For PHP.

## License
MIT

## Author
Tianle Xu
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
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");


```