<?php
use Aspose\Words\WordsApi;
use Aspose\Words\Model\Requests\{UpdateTableCellFormatOnlineRequest};
use Aspose\Words\Model\{TableCellFormat};

$clientId = '####-####-####-####-####';
$secret = '##################';
$wordsApi = new WordsApi($clientId, $secret);
$requestDocument = "Sample.docx";
$requestFormat = new TableCellFormat(array(
    "bottom_padding" => 5,
    "fit_text" => true,
    "horizontal_merge" => "First",
    "wrap_text" => true,));
$updateRequest = new UpdateTableCellFormatOnlineRequest(
    $requestDocument, "sections/0/tables/2/rows/0", $requestFormat, 0, NULL, NULL, NULL, NULL, NULL, NULL);
$wordsApi->updateTableCellFormatOnline($updateRequest);