Giter Club home page Giter Club logo

virtualizorphp's Introduction

Virtualizor API Wrapper Build Status

This is a wrapper for the API for Virtualizor. Documentation for this Version of the API can be found here: http://virtualizor.com/admin-api/#virtual-servers . Own Documentation will follow.

Installation

Install this library via composer is pretty easy.

composer require bennetgallein/virtualizor-php

And then you can get started with your project.

Object Description:

Every call starts by Initializing the Virtualizor Object. Once initialized you can use it over and over again.

$virt = new \Virtualizor\Virtualizor("ip", "key", "pass", "port");

ServerInfo

Get some information about the master

$info = json_decode($virt->serverInfo());

VirtualServer:

Create a new VirtualServer Object by using the following:

$virtualobject = $virt->vps();

Add Attributes and set the Act Method, then execute the query.

$vps = $virtualobject->setAct(\Virtualizor\Objects\VirtualServer::REBUILD)->setHostname("hostname_1")->exec();

IPPool

Create a new IPPool Object by using the following:

$virtualobject = $virt->ippool();

List all pools:

$pools = $virtualobject->setAct(\Virtualizor\Objects\IPPool::LISTPOOLS)->exec();

OSTemplates

Create a new OSTemplates Object by using the following:

$virtualobject = $virt->ostemplates();

List all templates:

$ostemplates = $virtualobject->setAct(\Virtualizor\Objects\OSTemplates::LISTOS)->exec();

virtualizorphp's People

Contributors

bennetgallein avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

virtualizorphp's Issues

uninstallable with composer

Servus, ich schreib hier mal auf Deutsch da ich es recht eilig hab und zwar wollte ich wissen wie ich deine API zum nutzen installieren kann wenn ich composer require bennetgallein/virtualizor-php ausführe via phpstorm kommt folgende Fehlermeldung

Error_Composer

Mit Freundlichen Grüßen Noah W.

can i use this api

can i use this api for the nieuwest version of virtualizor
and can you make a fulli basic docs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.