PHP code example of helhum / ter-client

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

    

helhum / ter-client example snippets


$uploadPacker = new ExtensionUploadPacker();
$connection = Connection::create($wsdUrl);
$result = $connection->upload(
    new UsernamePasswordCredentials($username, $password),
    $uploadPacker->pack($extensionKey, $directory, $comment)
);

$deleter = new Deleter(Connection::create($wsdUrl));
$result = $deleter->deleteExtensionVersion($extensionKey, $version, $username, $password);