News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Maarten Balliauw's Blog:
Reuse Excel business logic with PHPExcel
0 comments :: posted Tuesday May 06, 2008 @ 07:51:38
voice your opinion now!

Maarten Balliauw has made a new blog post today about a method he's using to help reuse some of the business logic that Excel spreadsheets can have in a PHP script with help from PHPExcel.

In many companies, business logic resides in Excel. This business logic is sometimes created by business analysts and sometimes by business users who want to automate parts of their everyday job using Excel. [...] Did you know you can use PHPExcel to take advantage of the Excel-based business logic without having to worry about duplicate business logic?

He creates a quick example of a script that can take in an Excal file and pull it into a PHPExcel object, ready for manipulation. He fills in values for the already defined fields (like "carColor" or "leatherSeats") and uses the getCalculatedValue method to perform the action on the cell. The output is dropped into a variable that can be echoed out or used later on in the PHP script.

tagged with: phpexcel excel business logic reuse tutorial example


Zend Developer Zone:
Reading and Writing Spreadsheets with PHP
0 comments :: posted Thursday April 03, 2008 @ 08:49:19
voice your opinion now!

On the Zend Developer Zone, Vikram Vaswani has posted a tutorial that shows hos to "break the language barrier" between PHP and Microsoft's Excel to allow for the reading and writing of spreadsheet data directly from one to the other.

When it comes to playing nice with data in different formats, PHP's pedigree is hard to beat. Not only does the language make it a breeze to deal with SQL result sets and XML files, but it comes with extensions to deal with formats as diverse as Ogg/Vorbis audio files, ZIP archives and EXIF headers. So it should come as no surprise that PHP can also read and write Microsoft Excel spreadsheets, albeit with a little help from PEAR.

After grabbing the different parts needed (the PHP-ExcelReader package and the Spreadsheet_Excel_Writer PEAR package, he shows how to create a simple spreadsheet with just numeric information in it. For something a bit more interesting, he goes the other way and shows spreadsheet data as an HTML table.

Other examples included as well are things like: pushing spreadsheet data into a database, working with formulas and styling it to your liking.

tagged with: spreadsheet excel pear package phpexcelreader writer tutorial

Developer Tutorials Blog:
5 PEAR gems free php scripts that will help you code quicker
1 comment :: posted Wednesday March 19, 2008 @ 09:37:29
voice your opinion now!

Akash Mehta has pointed out five "PEAR gems" that can help you get your code up and running faster - some helpful bits of code to help you deal with some common issues.

Sifting through the repository is also a challenge; a basic category system is in place, but it’s hard to tell what you want when you don't know what's available. Here are some gems from the PEAR repository that you could really find useful.

The five that made his list are:

tagged with: pear repository package akisment http archive spreadsheet excel xml

JSLabs Blog:
How to create Microsoft Office Documents with PHP
1 comment :: posted Monday July 02, 2007 @ 12:02:00
voice your opinion now!

From the JSLabs blog today, there's a quick illustration of how to dynamically create three different types of Microsoft Office files - a Word document, Powerpoint and an Excel file.

There are two main ways to build Excel, Word, and PowerPoint documents using PHP. The first is by using the COM library (only if you are using a Windows server) and the other is by using a more standardized approach such as HTML or CSV.

All three examples use the COM method and make basic structures to save out. They also include a screenshot (and description) showing where you can find the list of functions you can call to the COM object for each application.

tagged with: microsoftoffice document excel powerpoint word com object microsoftoffice document excel powerpoint word com object


PHP5 conference developer zend package ajax mysql releases cakephp application framework PEAR zendframework code security pecl book database job release

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework