Logo

Maarten Balliauw {blog}

ASP.NET, ASP.NET MVC, Azure, PHP, OpenXML, VSTS, ...

About the author

Maarten Balliauw is currently employed as .NET Technical Consultant at RealDolmen. His interests are mainly web applications developed in ASP.NET (C#) or PHP and the Windows Azure cloud platform.
More about me More about me
Send mail E-mail me


ASP.NET MVC Quickly Subscribe to my RSS feed Follow me on Twitter! View Maarten Balliauw's profile on LinkedIn
View Maarten Balliauw's MVP profile

Search

Latest Twitter

    Follow me on Twitter...

    My projects

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

    © Copyright Maarten Balliauw 2010

    Office 2007 SpreadsheetML classes in PHP

    In my evening hours, I've been working on a set of PHP classes to create Offixe 2007 SpreasheetML documents (.xlsx files). I finished my first goals (some basic XLSX writing), and I want to share this set of classes to the community.

    Features

    Currently, the following features are supported:

    • Create a Spreadsheet object
    • Add one or more Worksheet objects
    • Add cells to Worksheet objects
    • Export Spreadsheet object to Excel 2007 OpenXML format

    Each cell supports the following data formats: string, number, formula, boolean.

    Visual formatting is not implemented, but I'll get to that later.

    An example of what can be achieved, can be found in this example XLSX file.

    Download

    A download of my class set can be found here. Class documentation is included.
    Please note that I am releasing this under GPL license.

    Design

    One of my main design goals was to create a set of classes that can provide multiple output formats, and eventually later some input formats too. If you want to create ODF or XLS writers, create classes that implement IWriter.

    Next to this, I've been using the PEAR and Zend class hierarchy style, which makes it easier to use from within PEAR and Zend classes.

    Usefull links


    Categories: General | Projects | PHP | XML

    Add comment




      Country flag

    biuquote
    • Comment
    • Preview
    Loading