PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ahmed Khan  >  PHP Cloudways API SDK  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Cloudways API SDK
Manage sites hosted in Cloudways using its API
Author: By
Last change:
Date: 3 months ago
Size: 270 bytes
 

Contents

Class file image Download
<?php
require "vendor/autoload.php";

use
Cloudways\Varnish\Varnish;

$varnish = new Varnish();
$server_id = "59727";
$action = "enable";
$varnish->setEmail("Your Cloudways Email");
$varnish->setKey("Your API Key");
var_dump($varnish->serverVarnish($server_id,$action));

For more information send a message to info at phpclasses dot org.