I have installed Aspose.Words Cloud SDK for PHP 22.3 from Packagist via composer and tested the following code to extract from fields date from Word document. It returns form fields data in response successfully.
Please double check you are using the latest SDK version. However, if the issue persists then please share your script file with us without your credentials. We will look into it and will guide you.
Read MS Word Document Form Fields in PHP
<?php
require_once('D:\xampp\htdocs\aspose-words-cloud-php-master\vendor\autoload.php');
try {
//TODO: Get your ClientID and ClientSecret at https://dashboard.aspose.cloud (free registration is required).
$ClientSecret="xxxxxxxxxxxxxxxxxxxxxxxxxxx";
$ClientId="xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx";
$wordsApi = new Aspose\Words\WordsApi($ClientId,$ClientSecret);
$fieldFolder = "data";
$requestDocument = $fieldFolder . "/FormFilled.docx";
$request = new Aspose\Words\Model\Requests\GetFieldsOnlineRequest(
$requestDocument,
"sections/0",
NULL,
NULL,
NULL
);
$result = $wordsApi->getFieldsOnline($request);
print_r($result);
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}
?>