Coder Social home page Coder Social logo

php-excel's Introduction

Summary
=======
php-excel is a really simple library class written in PHP to
dump an array of data into an Microsoft Excel and OpenOffice
Calc readable format. This is version 2 of the older library
still hosted on Google Code at:

http://code.google.com/p/php-excel

The class is inspired by the MySQL Query tool which offers a
simple extraction of database tables into Microsoft's Open XML
format. However, I was always looking for a way to do this in
an app or a website with some data which belongs in a table.

What is it?
-----------
The function is simple: You generate an array - even a larger
array, dump it into the class and select whether you want to
write it into an excel-readable file or send this file directly
to your browser.

What isn't?
-----------
It can not deal with complex operations or layouts. If you
like to design your tabular data using colors or font-styles
or if you want the excel file to contain formulas, you better
use a much more sophisticated export library. I recommend using
the beautiful:

http://www.codeplex.com/PHPExcel/

... which is far more capable of such things.

How to use it?
--------------
The usage is very, very simple. Here's the script for adding
a simple array to the php-excel library and sending the file
to the browser (for downloading):

<?php

require 'php-excel.class.php';
$mydata = array(1 => 'Oliver Schwarz', 'Friedhelm Hasematzel');
$xls = new Excel_XML;
$xls->addWorksheet('My data', $mydata);
$xls->sendWorkbook('mydata.xls');

?>

See test.php for more details.

php-excel's People

Contributors

oliverschwarz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.