<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 15 Oct 2008 22:22:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Maarten Balliauw's Blog: Reuse Excel business logic with PHPExcel]]></title>
      <guid>http://www.phpdeveloper.org/news/10115</guid>
      <link>http://www.phpdeveloper.org/news/10115</link>
      <description><![CDATA[<p>
<i>Maarten Balliauw</i> has <a href="http://blog.maartenballiauw.be/post/2008/03/Reuse-Excel-business-logic-with-PHPExcel.aspx">made a new blog post</a> 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 <a href="http://www.codeplex.com/PHPExcel">PHPExcel</a>.
</p>
<blockquote>
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?
</blockquote>
<p>
He creates a <a href="http://examples.maartenballiauw.be/phpexcel4business/phpexcel4business.zip">quick example</a> 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.
</p>]]></description>
      <pubDate>Tue, 06 May 2008 07:51:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Reading and Writing Spreadsheets with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9902</guid>
      <link>http://www.phpdeveloper.org/news/9902</link>
      <description><![CDATA[<p>
On the Zend Developer Zone, <i>Vikram Vaswani</i> has <a href="http://devzone.zend.com/article/3336-Reading-and-Writing-Spreadsheets-with-PHP">posted a tutorial</a> 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.
</p>
<blockquote>
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.
</blockquote>
<p>
After grabbing the different parts needed (the <a href="http://sourceforge.net/projects/phpexcelreader/">PHP-ExcelReader package</a> and the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer">Spreadsheet_Excel_Writer PEAR package</a>, 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.
</p>
<p>
Other examples included <a href="http://devzone.zend.com/article/3336-Reading-and-Writing-Spreadsheets-with-PHP">as well</a> are things like: pushing spreadsheet data into a database, working with formulas and styling it to your liking.
</p>]]></description>
      <pubDate>Thu, 03 Apr 2008 08:49:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: 5 PEAR gems: free php scripts that will help you code quicker]]></title>
      <guid>http://www.phpdeveloper.org/news/9821</guid>
      <link>http://www.phpdeveloper.org/news/9821</link>
      <description><![CDATA[<p>
<i>Akash Mehta</i> has <a href="http://www.developertutorials.com/blog/php/free-open-source-pear-package-gems-90/">pointed out</a> 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.
</p>
<blockquote>
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.
</blockquote>
<p>The five that made his list are:</p>
<ul>
<li><a href="http://pear.php.net/package/Services_Akismet">Service_Akismet</a>
<li><a href="http://pear.php.net/package/HTTP_Request/">HTTP_Request</a>
<li><a href="http://pear.php.net/package/Archive_Tar/">Archive_Tar</a>
<li><a href="http://pear.php.net/package/Spreadsheet_Excel_Writer">Spreadsheet_Excel_Writer</a>
<li><a href="http://pear.php.net/package/XML_Parser/">XML_Parser</a>
</ul>]]></description>
      <pubDate>Wed, 19 Mar 2008 09:37:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[RegDeveloper.co.uk: Build your PDF and Excel reports with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9280</guid>
      <link>http://www.phpdeveloper.org/news/9280</link>
      <description><![CDATA[<p>
On the RegDeveloper website, there's <a href="http://www.regdeveloper.co.uk/2007/12/10/pdf_excel_reports_with_php/">a new tutorial</a> posted that covers the creation of both PDF files and Excel reports from inside of PHP (with the help of the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer/download">Spreadsheet_Excel_Writer</a> PEAR component</a> and the ClibPDF PHP Library (bundled with <a href="http://www.php.net/downloads.php">PHP 5.3</a>).
</p>
<blockquote>
Given the prevelance of PHP, Excel and PDF it's fortunate there exists class libraries for the generation of PDF documents and Excel spreadsheets using PHP.
</blockquote>
<p>
They start with the PDF generation and show the installation process for ClibPDF and an example of creating a document on the fly. Their example sets up a title, some content text and a table of information. Creating the Excel spreadsheet is even simpler with the Spreadsheet_Excel_Writer - installation via a PEAR channel and defining the worksheet, fonts and content are quick and easy function calls.
</p>]]></description>
      <pubDate>Wed, 19 Dec 2007 14:33:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Martynas Jusevicius' Blog: Reading Excel files with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9257</guid>
      <link>http://www.phpdeveloper.org/news/9257</link>
      <description><![CDATA[<p>
<i>Martynas Jusevicius</i> has <a href="http://www.xml.lt/Blog/2007/12/14/Reading+Excel+files+with+PHP">pointed out</a> a handy tool to work with Microsoft Excel files in PHP - <a href="http://sourceforge.net/projects/phpexcelreader">PHPExcelReader</a>.
</p>
<blockquote>
There is a nice tool for reading Microsoft Excel files called <a href="http://sourceforge.net/projects/phpexcelreader">PHPExcelReader</a>. It works with .xls files up to Excel version 2003, which are based on the <a href="http://sc.openoffice.org/excelfileformat.pdf">BIFF format</a> (later versions use <a href="http://en.wikipedia.org/wiki/Office_Open_XML">OOXML</a>). It is written in native PHP and does not require any third-party libraries or the MS Office package.
</blockquote>
<p>
He includes an example of it in use - a loop that runs through the cells of a spreadsheet and outputs each of them (going across the row via an inner for loop as well).
</p>]]></description>
      <pubDate>Mon, 17 Dec 2007 13:46:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dotvoid.com: Generating Excel files with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8209</guid>
      <link>http://www.phpdeveloper.org/news/8209</link>
      <description><![CDATA[<p>
<i>Danne Lundqvist</i> has <a href="http://www.dotvoid.com/view.php?id=76">posted about the process</a> he went through when developing a solution to create Excel files in PHP:
</p>
<blockquote>
I'm on this project at work where we need to create an excel file and send it via email or ftp to a recipient. The normal answer to this is to create a comma separated file and name it .xls and excel will work it out. However, that only works if you open it directly through an http request and are able to set the http headers correctly.
</blockquote>
<p>
To get around these limitations, he found two solutions (thanks Google!) in <a href="http://www.phphacks.com/content/view/26/33/">PEAR's Spreadsheet_Excel_Writer</a> and an <a href="http://www.phpclasses.org/browse/package/1919.html">MS-Excel Stream Handler class</a>. He includes code that gives an example of another solution, one that packs data into a binary string and returns it as a part of the Excel document.
</p>]]></description>
      <pubDate>Tue, 10 Jul 2007 07:46:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[JSLabs Blog:  How to create Microsoft Office Documents with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8163</guid>
      <link>http://www.phpdeveloper.org/news/8163</link>
      <description><![CDATA[<p>
From the JSLabs blog today, there's a <a href="http://www.whenpenguinsattack.com/2007/07/02/how-to-create-microsoft-office-documents-with-php/">quick illustration</a> of how to dynamically create three different types of Microsoft Office files - a Word document, Powerpoint and an Excel file.
</p>
<blockquote>
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.
</blockquote>
<p>
All <a href="http://www.whenpenguinsattack.com/2007/07/02/how-to-create-microsoft-office-documents-with-php/">three examples</a> 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.
</p>]]></description>
      <pubDate>Mon, 02 Jul 2007 12:02:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Silverton's Blog:  Excel and php without COM]]></title>
      <guid>http://www.phpdeveloper.org/news/5057</guid>
      <link>http://www.phpdeveloper.org/news/5057</link>
      <description><![CDATA[At times, working within the confines of a Microsoft world can be frustrating, especially when it comes to making more advanced versions of files (i.e. a "real" Excel file versus a CSV). In <a href="http://blinduser.blogspot.com/2006/03/excel-and-php-without-com.html">this example</a>, <i>Justin Silverton</i> gives us an example of how to do just that - use PEAR to create an Excel 5 file.
<p>
He uses the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer">Spreadsheet_Excel_Writer</a> package to create the file without the need for getting COM in the mix. The package makes it simple to take in a dataset and write it out to a workbook - complete with column headers.
<p>
He <a href="http://blinduser.blogspot.com/2006/03/excel-and-php-without-com.html">shows</a> two ways to save the file as well - creating a local file (on the web server) and pushing it out to the browser.
<p>
It's a simple introduction, but it's a starting place - especially for those with a project plan that requires it.]]></description>
      <pubDate>Tue, 28 Mar 2006 07:01:46 -0600</pubDate>
    </item>
  </channel>
</rss>
