Aspose.Words for Cloud Mail Merge allows you to generate documents from a template and XML in any language including .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any language or platform that supports REST. (Almost all platforms and languages support REST and provide native REST clients to work with REST API). This post covers mail merge in PHP, you can check Aspose.Words for Cloud documentation for other languages. http://www.aspose.com/docs/display/wordscloud/Working+with+Mail+Merge
To execute mail merge, you need to upload a template to Aspose for Cloud or any supported third party storage and then send a POST request (passing XML data in the request body) to generate documents based on template and data.
To view the complete steps to setup your cloud API for mail merge and to view the XML & PDF Code Samples and other details please visit the main blog post page.
http://www.aspose.com/blogs/aspose-products/aspose-words-product-family/archive/2014/02/03/execute-mail-merge-in-php.html