Call: 01635 889222

change++ Blog

We’ve posted some thoughts below on new product releases, the benefits of product upgrades and added some development tips we find useful……. Let us know if there’s a topic you’d like us to cover on

Email Page Bookmark Page
Like Page Tweet Page
LinkIn Page Digg Page

Need to report and analyse website data but don’t have a reporting tool? Use PHPExcel

Matt Taylor

Matt Taylor

Tuesday, 07 July 2015

We’re all familiar with Microsoft Excel for viewing and editing data and it’s an ideal mechanism for providing reports on which you want to perform analysis when you don’t have the option of layering a reporting solution over the data (e.g. SSRS or IBM Cognos).

When we need to implement Excel reporting in a web site we’ve developed using PHP we use an extension called PHPExcel. This extension gives us the flexibility to create the spreadsheet as the user wants it. Formatting, structure, conditional colours, formulae, everything can be controlled programmatically.

Where the real power lies though is when a user has downloaded a dataset, updated it and wants to push the changes back in to the system. PHPExcel can read the Excel files, pulling out the data to process through PHP. You could do this using an SSIS package if you have access to MS SQL Server but using PHPExcel means that you can process it directly through PHP.

Reg No. 3221982 | ©2014 change++ | Website Design by The Ad Plain