PHP code example of zenddevops / client

1. Go to this page and download the library: Download zenddevops/client 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/ */

    

zenddevops / client example snippets


$data = array (
   'x' => array(
      'a' => 1,
      'b' => 2,
   ),
   y => 3
);
sh
php zs-client.phar  --help

php bin/zs-client.phar addTarget --target="<put-here-unique-name>" \
                                --zskey="<put-here-the-webapi-key-name>" \
                                --zssecret="<put-here-the-webapi-key-hash>" \
                                --zsurl="<(optional)put-here-valid-url>" \
                                --zsversion="<(optional)put-here-the-version>"

php bin/zs-client.phar initZpk --folder="<folder-where-the-PHP-code-is>"

php bin/zs-client.phar getSystemInfo --target="<name-of-the-target> \
                                    --http="timeout=40&sslverify=0"

php bin/zs-client.phar getSystemInfo --target=zserver --output-format=kv

php bin/zs-client.phar configurationExtensionsOn --target=zserver --extensions=bcmath,tidy

php bin/zs-client.phar configurationExtensionsOn --target=zserver --extensions=bcmath;tidy<;>