Cloud REST API เพื่อแก้ไขรูปแบบเอกสารยอดนิยมทั้งหมดอย่างรวดเร็วในแอปพลิเคชันประเภท PHP ใด ๆ โดยไม่ต้องติดตั้งซอฟต์แวร์ภายนอก
เริ่มทดลองใช้งานฟรีGroupDocs.Editor Cloud SDK for PHP รองรับการแก้ไขและจัดการรูปแบบไฟล์เอกสารยอดนิยมหลายประเภทภายในแอปพลิเคชัน PHP เพียงแค่ผสานรวม GroupDocs.Editor Cloud SDK for PHP กับ GroupDocs.Editor Cloud REST API อัปโหลดเอกสารที่รองรับในเครื่องมือแก้ไข WYSIWYG HTML ของบุคคลที่สามใดก็ได้ จัดการเอกสารและบันทึกกลับไปยังรูปแบบเอกสารต้นฉบับโดยไม่ทำให้ลักษณะการแสดงผลเสียหายหลังการแก้ไข ไลบรารีตัวแก้ไข PHP รองรับรูปแบบเอกสารหลากหลายรวมถึง Microsoft Word (DOC, DOCX, WordML), Excel (XLS, XLSX, SpreadsheetML), การนำเสนอ (PPT, PPTX), HTML, XML, TXT และ OpenDocument.
GroupDocs.Editor Cloud SDK for PHP ถูกสร้างเป็นชั้นบนของ GroupDocs.Editor Cloud REST API ซึ่งช่วยประหยัดเวลาการพัฒนาที่มีค่าโดยการจัดการคำขอระดับต่ำและจัดการการตอบกลับ นักพัฒนาจึงสามารถมุ่งเน้นการเขียนโค้ดเฉพาะที่จำเป็นในโครงการได้เท่านั้น.
ตรวจสอบ GroupDocs.Editor Cloud SDK for PHP at GitHub หากคุณกำลังมองหาโค้ดต้นฉบับเพื่อทำหมายเหตุไฟล์ในคลาวด์
คุณสามารถ ลอง GroupDocs.Editor Low-Code PHP APIs ได้โดยไม่มีข้อจำกัดใดๆ
GroupDocs.Editor Cloud ยังมีให้ใช้ในรูปแบบภาพ Docker ซึ่งสามารถใช้เพื่อ self-host บริการได้ หรือคุณอาจสร้างบริการของคุณเองโดยใช้ GroupDocs.Editor High-code APIs ซึ่งในขณะนี้โดยขับเคลื่อน REST APIs ของเรา
//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
$AppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$AppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$configuration = new GroupDocs\Editor\Configuration();
$configuration->setAppSid($AppSid);
$configuration->setAppKey($AppKey);
$editApi = new GroupDocs\Editor\EditApi($configuration);
$fileApi = new GroupDocs\Editor\FileApi($configuration);
// The document already uploaded into the storage
// Load it into editable state
$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("Spreadsheet/four-sheets.xlsx");
$loadOptions = new Model\SpreadsheetLoadOptions();
$loadOptions->setFileInfo($fileInfo);
$loadOptions->setOutputPath("output");
$loadOptions->setWorksheetIndex(0);
$loadResult = $editApi->load(new Requests\loadRequest($loadOptions));
// Download html document
$htmlFile = $fileApi->downloadFile(new Requests\downloadFileRequest($loadResult->getHtmlPath()));
$html = file_get_contents($htmlFile->getRealPath());
// Edit something...
$html = str_replace("This is sample sheet", "This is sample sheep", $html);
// Upload html back to storage
file_put_contents($htmlFile->getRealPath(), $html);
$uploadRequest = new Requests\uploadFileRequest($loadResult->getHtmlPath(), $htmlFile->getRealPath());
$fileApi->uploadFile($uploadRequest);
// Save html back to xlsx
$saveOptions = new Model\SpreadsheetSaveOptions();
$saveOptions->setFileInfo($fileInfo);
$saveOptions->setOutputPath("output/edited.xlsx");
$saveOptions->setHtmlPath($loadResult->getHtmlPath());
$saveOptions->setResourcesPath($loadResult->getResourcesPath());
$saveResult = $editApi->save(new Requests\saveRequest($saveOptions));
// Done.
echo "Document edited: " . $saveResult->getPath();