Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xtlsoft/lxdclient
- Owner: xtlsoft
- License: mit
- Created: 2018-04-05T07:30:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T07:39:25.000Z (over 6 years ago)
- Last Synced: 2024-04-18T14:40:59.849Z (7 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
```