03/01
2017
dev-master
9999999-devA LibVirt wrapper for Laravel.
MIT
The Requires
by Ryan Owens
A LibVirt wrapper for Laravel.
A Libvirt PHP wrapper library for the Laravel Framework. version 0.0.1, (*1)
First grab the package via composer., (*2)
composer require ryanvade/virtman
Then add the service provider to the list of providers in config/app.php., (*3)
... /* * Package Service Providers... */ VirtMan\VirtManServiceProvider::class, ...
Finally publish the package to your laravel project and run the migrations., (*4)
php artisan vendor:publish php artisan migrate
use VirtMan\VirtMan; $virtMan = new VirtMan(); $testInstallImage = $virtMan->createStorage("installimage.iso", "ISO", -1); $testStorage = $virtMan->createStorage("TestStorage", "qcow2", 20480);
$network = $virtMan->createNetwork("00:11:22:33:44:55", "machine_network", "e1000");
$machine = $virtMan->createMachine("TestMachine", "Linux", 2048, 1, "x86_64", [ $testInstallImage, $testStorage], $network);
A LibVirt wrapper for Laravel.
MIT