PHP-Reports is a cloud based, interactive report engine which helps in generating well formatted PDF reports from Word / DOCX templates in PHP, ASP.NET, ASP.NET MVC, WPF, Silverlight, WinRT, HTML5, Windows Forms, Java, Python, Objective-C, Swift, Delphi and other languages as well.
Create free account at https://www.php-reports.com and get your free API Key.
To accelerate the process of creating your reports and applications, PHP Reports takes advantage of Microsoft Word's design capabilites. Simply create a Microsoft Word file and design your report.
You can use template variables in your Word template. Tamplate variables take their name from the contents of their double curly braces and they can later be replaced with a concrete value.
All template variable names within a template string must be unique. Template variable names are case-insensitive.
Save and upload your teamplte at "Template Manager" section in https://www.php-reports.com
Download https://github.com/murat-cileli/php-reports or install via Composer.
Create a PHPReports object with your API Key.
Set uploaded template ID
Set output file type. Default output type is PDF. You can pass PHPReports::OUTPUT_DOCX instead.
Get download URL of report in JSON. You can pass PHPReports::ACTION_FORCE_DOWNLOAD to direct download generated report.
Set output file name.
Set template variables. You can assign a single value or an array to template variables
Finally, generate your report using single line of code.
Your report will looks like: