PHP code example of zendserverapi / zendserverapi-phing

1. Go to this page and download the library: Download zendserverapi/zendserverapi-phing library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zendserverapi / zendserverapi-phing example snippets




return array(
  "servers" => array (
    # Contains a valid default config
    "general" => array(
      "version" => \ZendServerAPI\Version::ZS56,
      "apiName" => "api",
      "fullApiKey" => "bee698dde6a95de71932d65cb655c31fc4ea04c1fabaf6f0a1b852617eac32ab",
      "readApiKey" => "",
      "host" => "10.0.1.100",
      "port" => "10081"
    )
  ),
  "settings" => array (
    'loglevel' => \Zend\Log\Logger::DEBUG        
  )
);



return array(
  "servers" => array (
    # Contains a valid default config
    "general" => array(
      "version" => \ZendServerAPI\Version::ZS56,
      "apiName" => "api",
      "fullApiKey" => "bee698dde6a95de71932d65cb655c31fc4ea04c1fabaf6f0a1b852617eac32ab",
      "readApiKey" => "",
      "host" => "10.0.1.100",
      "port" => "10081"
    ),
    "production" => array(
      "version" => \ZendServerAPI\Version::ZSCM56,
      "apiName" => "admin",
      "fullApiKey" => "f49c7cd904b631ed1de43727a7c9ccca7324688482b19140a778d9b5020ca369",
      "readApiKey" => "",
      "host" => "10.20.30.1",
      "port" => "10081"
    ),
    "stage" => array(
      "version" => \ZendServerAPI\Version::ZSCM56,
      "apiName" => "stageenvironment",
      "fullApiKey" => "71ce992da55734b0ad408264e721ca8cabfef4dba158ebeca3653eb290a49c00",
      "readApiKey" => "",
      "host" => "10.30.10.100",
      "port" => "10081"
    )
  ),
  "settings" => array (
    'loglevel' => \Zend\Log\Logger::DEBUG        
  )
);