PHP Classes

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 (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 390 All time: 6,638 This week: 107Up
Version License PHP version Categories
xportxls 1.0.0Public Domain5HTML, PHP 5, Files and Folders


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: 3 packages by
Country: Guatemala Guatemala
Age: ???
All time rank: 28772 in Guatemala Guatemala
Week rank: 683 Up1 in Guatemala Guatemala Up
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  
This week:0
All time:6,638
This week:107Up
User Ratings User Comments (1)
 All time