PHP Classes
elePHPant
Icontem

PHP Export XLS: Export arrays as HTML tables or Excel XLS files

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-17 (6 months ago) RSS 2.0 feedNot enough user ratingsTotal: 237 This week: 3All time: 7,505 This week: 377Up
Version License PHP version Categories
xportxls 1.0.0Public Domain5HTML, PHP 5, Files and Folders
Description Author

This class can export arrays as HTML tables or Excel XLS files.

It can take an array of multiple rows of data and generates an HTML table with the array data.

The result may be outputted to the current page or served for download with an Excel XLS content type so it can be opened by Excel.

Innovation Award
PHP Programming Innovation award nominee
May 2016
Number 3


Prize: One downloadable copy of Komodo IDE
Excel is the most popular spreadsheet program in the world. Many people use it, so it is common that Web applications generate data that can be imported in Excel.

Excel has its own native file formats to load and save data but it can also import HTML tables.

This class takes advantage of that fact to provide a simple solution to generate HTML tables from arrays and serve them for download using a content type header, so it makes the browser open the served spreadsheet data in Excel.

Manuel Lemos
Picture of Juan Pablo Irungaray Segura
  Performance   Level  
Name: Juan Pablo Irungaray ... <contact>
Classes: 2 packages by
Country: Guatemala Guatemala
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file Xportxls.php Class Xportxls.php

 Version Control Unique User Downloads Download Rankings  
 0%
Total:237
This week:3
All time:7,505
This week:377Up