Work with Word Documents using PHP

Create, edit, convert and split Word documents in the Cloud.

 Start for free
PHP SDK to Convert DOC files

Aspose.Words Cloud PHP SDK


Aspose.Words Cloud PHP SDK offers a higher level of abstraction for our document processing and manipulation PHP Cloud RESTful API. Without installing anything your PHP applications will just use our Cloud SDK to create, process, render, split, manipulate and convert Microsoft Word & OpenOffice documents from within your PHP Apps.

Using Aspose.Words Cloud PHP SDK you can integrate basic to advance level document manipulation functionality, such as working with mail merge, page numbering, document bookmarks, properties, headers& footers, hyperlinks, math operators, watermarks, track changes, classifications, fonts, footnotes, fields, and so on.


Advanced Word Processing features of Cloud SDK



Merge multiple Word documents


Split all or specific pages of a Word document


Convert Word documents to different formats


Find or replace text in Word documents


Manipulate document properties including Metadata and statistics


Execute simple to complex mail merge


Execute mail merge template


Insert a page number field into Word documents


Insert or edit watermark in Word documents


Read or Update existing Bookmarks


Get OLE data from Image object


PHP Cloud PHP SDK 5.6 or higher

Comprehensive Support for Various Word Document Formats

An extensive support for various popular Word Document formats including DOC, DOCX, RTF, DOT, DOTX, DOTM, FlatOPC (XML), OOXML, OpenDocument 1.1 format, OTT and Word 2003 XML. Specifically, the RTF specification is a set of predefined keywords which includes over 1400 keywords in the RTF 1.8 Specification and Aspose.Words Cloud PHP SDK is capable of fully supporting (reading) the majority of these keywords.

Quick & Reliable Conversion to Popular Document Formats

Get a quick and reliable conversion of Word documents to other leading file-formats including PDF where output conforms to PDF 1.5 or PDF/A-1b specifications. Get an ability to extract Word document contents or save file contents as a plain TXT file. Be amazed by great fidelity of output when performing Word to EPUB conversion because the Content, formatting, images, hyperlinks, and navigation will work in any EPUB compliant reader.

Mail Merge & Reporting Solution

Aspose.Words Cloud PHP SDK allows developers to use standard or more complex mail merge operations such as inserting images or repeatable regions in reports. You can design reports in Microsoft Word and then allow Aspose.Words Cloud PHP SDK to populate documents with data from XML data sources.

Populate MailMerge Template with Data - PHP

    $this->words = new WordsApi(null, $this->config);
    $file = realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . $localName;
    $data = file_get_contents(realpath(__DIR__ . '/../../../..') . '/TestData/MailMerge/' . "SampleMailMergeTemplateData.txt");
    $this->storage->PutCreate($Path=self::$baseTestPath . $subfolder . "/" . $remoteName, $versionId = null, $storage = null, $file);
    $request = new Requests\PostDocumentExecuteMailMergeRequest("TestPostDocumentExecuteMailMerge.docx", false, $data, $folder=self::$baseTestPath . $subfolder,
        null, null, null, null,
        null, null,self::$baseTestOut . $remoteName);
    $result = $this->words->postDocumentExecuteMailMerge($request);

Load PDF & Convert to Word Document Formats

Aspose.Words Cloud PHP SDK offers its own conversion engine and provides a unique feature to load PDF document from storage as an input and convert it to Word document. During the conversion process, you can choose either of the supported formats. The conversion is robust enough as it converts PDF tables and lists into native Word tables and lists.


Support and Learning Resources