<?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>Fri, 24 May 2013 22:01:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: How to Generate a Complete Excel Spreadsheet From MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/17166</guid>
      <link>http://www.phpdeveloper.org/news/17166</link>
      <description><![CDATA[<p>
On NetTuts there's a new tutorial showing how to take data from a MySQL database and translate it into a usable Excel file <a href="http://net.tutsplus.com/tutorials/php/how-to-generate-a-complete-excel-spreadsheet-from-mysql/">with the help of some simple PHP</a>.
</p>
<blockquote>
A CSV (Comma Separated Value) file is usually sufficient for exporting MySQL data as an Excel Spreadsheet. These CSV files are data only though. A real Excel spreadsheet has formatting, formulas and perhaps even graphics - the difference between a simple method of data transfer and a professional report. This tutorial shows how to use open source PHP components to create "real" Excel spreadsheets from MySQL SELECT statements.
</blockquote>
<p>
With the help of the <a href="http://www.phpexcel.net/">PHPExcel tool</a>, making Excel-formatted files is a simple process. They show how to label columns, pull data out with a "quick and dirty" SQL statement, formatting the results to something a bit more clean and iterate through the pages of data to push them into the spreadsheet (including formulas). You can <a href="http://nettuts.s3.amazonaws.com/1090_mysqlexcel/source.zip">download the full source</a> to get everything in one shot.
</p>]]></description>
      <pubDate>Wed, 23 Nov 2011 17:52:54 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Henry Hayes' Blog: Firebug Console.Log for PHP using Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16474</guid>
      <link>http://www.phpdeveloper.org/news/16474</link>
      <description><![CDATA[<p>
<i>Henry Hayes</i> has written up a handy post to his blog looking at <a href="http://www.websitefactors.co.uk/zend-framework/2011/05/firebug-console-log-for-php-using-zend-framework/">using FirePHP and Zend_Log_Writer_Firebug to log messages</a> directly to your Firefox's Firebug console.
</p>
<blockquote>
Due to sloppy programming in the past many PHP error logs can become very clogged up and, unless you use some fancy grep technique, unusable. [...] A project has been around for some time now called <a href="http://www.firephp.org/">FirePHP</a>. This enables us to log messages of various levels of severity to the Firebug console! - Awesome. Just imagine if you are developing an ajax app, you could have all your debug messaging in one place.
</blockquote>
<p>
He walks you through the steps needed to get the logging up and running - setting up FireBug (if you don't have it already) and FirePHP, editing your Zend Framework bootstrap file to add an _initLogging() method and using it for logging, both in the backend script and on the frontend <a href="http://www.websitefactors.co.uk/wp-content/uploads/2011/05/SimpleFirePHPConsole.png">in the console</a>. He also includes a quick update to the logging method that only logs to the Firebug console if the environment is not production. 
</p>]]></description>
      <pubDate>Wed, 15 Jun 2011 12:49:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Rendering SQL Server Reports as Excel Documents with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15190</guid>
      <link>http://www.phpdeveloper.org/news/15190</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/09/23/rendering-sql-server-reports-as-excel-documents-with-php.aspx">a new post</a> to his blog that looks at a method for pulling back the reports from a SQL Server instance in something a bit more readable/useful - an Excel document.
</p>
<blockquote>
One of the most common questions [from his <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/05/04/getting-started-with-sql-server-reporting-services-ssrs-and-php.aspx">previous post</a>] has been "How do I render a report as an Excel document?" I've been telling folks that this is easy with the <a href="http://ssrsphp.codeplex.com/">SSRS SDK for PHP</a> (and it is  easy), but when I sat down to do it, I ran into a problem. So, in this post, I'll show you how to render a SSRS report as an Excel document and how to avoid the one problem that caused me headaches.
</blockquote>
<p>
This post's a short one with a code snippet (<a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Components-PostAttachments/00-10-06-27-28/ssrsDemo.zip">and download</a>) showing how to connect to the server and create a "RenderAsEXCEL" object and request the report information with that in the rendering function. Then it's just as simple as pushing that information out to a file as a ".xls". The included download will also let you pull down the report as HTML or as a PDF.
</p>]]></description>
      <pubDate>Mon, 27 Sep 2010 10:15:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: PHP Excel Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/14889</guid>
      <link>http://www.phpdeveloper.org/news/14889</link>
      <description><![CDATA[<p>
In a new post to his blog today <i>Ilia Alshanetsky</i> talks about <a href="http://ilia.ws/archives/222-PHP-Excel-Extension.html">a PHP Excel extension</a> to help with some output generation problems he was seeing (based on the <a href="http://www.libxl.com/">LibXL</a> libraries).
</p>
<blockquote>
As we are doing more & more Excel output generation, this became a bigger and bigger problem. At first we've tried solving the problem via a newer PHP based Excel library, PHPExcel. Unfortunately, it is massive beast, that is not only slower than the old Spreadsheet Excel Writer/Reader, but memory hog too. [...] So, I turned to Google and found <a href="http://www.libxl.com/">LibXL</a>, which is a small, C++ (with C, C++ interfaces) library that promised really fast Excel reading & writing. 
</blockquote>
<p>
<a href="http://github.com/iliaal/php_excel">His extension</a> gives you an object-oriented interface to the library that can generate Excel files with a lot less resources than some of the other PHP Excel extensions out there. He includes a sample benchmarking script he used to generate these stats.
</p>]]></description>
      <pubDate>Mon, 02 Aug 2010 13:12:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP.de: Import and export data using PHPExcel]]></title>
      <guid>http://www.phpdeveloper.org/news/14797</guid>
      <link>http://www.phpdeveloper.org/news/14797</link>
      <description><![CDATA[<p>
On the ThinkPHP blog today there's a new post looking at their <a href="http://blog.mayflower.de/archives/561-Import-and-export-data-using-PHPExcel.html">experience with PHPExcel</a> to open, modify, save, etc Microsoft Excel files directly from PHP.
</p>
<blockquote>
EAR's Spreadsheet_Excel_Writer combined with the project Spreadsheet_Excel_Reader on SourceForge was a good helper in the past - but only for BIFF5. BIFF8 support in spreadsheet excel writer has been a problem for a long time, and according to the authors, is still somewhat kludgy in the current version. So I needed an alternative. After a short research I stumbled upon PHPExcel which supports reading and writing of many formats in one API. 
</blockquote>
<p>
He lists some of these input and output formats and includes a simple example of how to use the tool. He creates a basic Excel file with a few different attributes (title, body, keywords) and show how to read in a document to extract the document's content.
</p>]]></description>
      <pubDate>Thu, 15 Jul 2010 10:21:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pablo Viquez's Blog: Export Excel Spreadsheets using Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/13101</guid>
      <link>http://www.phpdeveloper.org/news/13101</link>
      <description><![CDATA[<p>
New on his blog today <i>Pablo Viquez</i> has <a href="http://www.pabloviquez.com/2009/08/export-excel-spreadsheets-using-zend-framework/">this post</a> looking at code that will let your Zend Framework applications export to Microsoft Excel spreadsheets (via the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer/">Spreadsheet Excel Writer</a> PEAR component).
</p>
<blockquote>
Last week, I had to allow the user to export a given report into an MS Excel file format. The application uses <a href="http://www.zendframework.com/">Zend Framework 1.9.1</a> and so far ZF does not support for "Office" formats, so after searching for a nice implementation, I found a PEAR module called <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer/">Spreadsheet Excel Writter</a>, which looked pretty good, it had very good documentation and the code was clean and well structured so I wanted I give it a shot.
</blockquote>
<p>
He lays out the structure of the sample application and, using a context switch on the request, he creates a controller that responds to the "/report" by calling a special model/view combination that uses the PEAR package to push out the custom "report.xls" file.
</p>]]></description>
      <pubDate>Tue, 25 Aug 2009 07:57:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: Saving Data into Excel the Easy Way using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12799</guid>
      <link>http://www.phpdeveloper.org/news/12799</link>
      <description><![CDATA[<p>
<i>Vinu Thomas</i> has <a href="http://blogs.vinuthomas.com/2009/07/01/saving-data-into-excel-the-easy-way-using-php/">a new post</a> to his blog looking at using the <a href="http://www.phpclasses.org/browse/package/1919.html">MS-Excel Stream Handler</a> class to push your data out to Excel (in more than just a CSV file).
</p>
<blockquote>
If you're looking for an easy way to output your data from a PHP script into a Excel file, you've got to check out this script <a href="http://www.phpclasses.org/browse/package/1919.html"MS-Excel Stream Handler</a> which I came across at the <a href="http://www.phpclasses.org/">PHP Classes</a> site. What this script essentially does is to implement a stream handler interface to write Microsoft Excel spreadsheet files.
</blockquote>
<p>
Code snippets are included showing how to structure the data for the import and how to push that generated Excel file out to the user's waiting client.
</p>]]></description>
      <pubDate>Thu, 02 Jul 2009 10:18:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpRiot: Zend Framework 101: Zend_Log]]></title>
      <guid>http://www.phpdeveloper.org/news/12326</guid>
      <link>http://www.phpdeveloper.org/news/12326</link>
      <description><![CDATA[<p>
Next up in the phpRiot "Zend Framework 101" series is <a href="http://www.phpriot.com/articles/zend-log">this new look</a> at the logging component of the Zend Framework - Zend_Log.
</p>
<blockquote>
This article shows you how to use Zend_Log, the logging component of the Zend Framework. It allows you to record messages from your application however you please. In this article I will show you how to record messages to a log file. Additionally, if you use the Firebug and FirePHP plug-ins for Firefox, Zend_Log can be extremely useful for application development and debugging. I will also show you how to achieve this.
</blockquote>
<p>
They walk you through the creation of a <a href="http://www.phpriot.com/articles/zend-log/2">simple logger</a> and putting it to use by recording just the events you want (via error levels). There's also an extra section on integrating it with the Firebug/FirePHP extensions for Firefox and push your messages directly to the browser.
</p>]]></description>
      <pubDate>Mon, 13 Apr 2009 08:46:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: Creating Excel documents on the fly]]></title>
      <guid>http://www.phpdeveloper.org/news/11964</guid>
      <link>http://www.phpdeveloper.org/news/11964</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> has a new blog post that looks at <a href="http://dev.juokaz.com/php/creating-excel-documents-on-the-fly">creating Excel documents</a> on the fly with the <a href="http://pear.php.net/package/Spreadsheet_Excel_Write">Spreadsheet_Excel_Writer</a> PEAR package.
</p>
<blockquote>
In one of my projects, we need to send emails to our suppliers with new orders as Excel spreadsheets. We used to do it by hand, but when you have 10 suppliers and you make 200 products orders per week, after some time you are just tired of creating Excel spreadsheets, mailing them and so on. So, my task was to implement automatic spreadsheets creation with PHP.
</blockquote>
<p>
His example creates a basic file with a set of "Items", some formatting and a set of code/title items to fill out each row. The end result can then be packaged up and sent out as a complete Excel XLS file. 
</p>]]></description>
      <pubDate>Tue, 17 Feb 2009 12:55:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Maarten Balliauw's Blog: Saving a PHPExcel spreadsheet to Google Documents]]></title>
      <guid>http://www.phpdeveloper.org/news/11871</guid>
      <link>http://www.phpdeveloper.org/news/11871</link>
      <description><![CDATA[<p>
<i>Maarten Balliauw</i> has <a href="http://blog.maartenballiauw.be/post/2009/02/03/Saving-a-PHPExcel-spreadsheet-to-Google-Documents.aspx">written up a guide</a> to saving the output of your <a href="http://www.phpexcel.net/">PHPExcel</a> applications out to the Documents service that Google offers.
</p>
<blockquote>
As you may know, <a href="http://www.phpexcel.net/">PHPExcel</a> is built using an extensible model, supporting different input and output formats. The PHPExcel core class library features a spreadsheet engine, which is supported by IReader and IWriter instances used for reading and writing a spreadsheet to/from a file. Currently, PHPExcel supports writers for Excel2007, Excel5 (Excel 97+), CSV, HTML and PDF. Wouldnt it be nice if we could use PHPExcel to store a spreadsheet on <a href="http://docs.google.com/">Google Documents</a>? Let's combine some technologies.
</blockquote>
<p>
The two technologies in question are a standard install of the <a href="http://www.phpexcel.net/">PHPExcel</a> library and the <a href="http://framework.zend.com/">Zend Framework</a> (with its Zend_Gdata component). Using the component, a save() method is created and hooked into the IWriter interface of PHPExcel. When this save method is called, the Zend_Gdata component connects to the Documents service and uploads the resulting information for the account you supply.
</p>]]></description>
      <pubDate>Tue, 03 Feb 2009 12:58:56 -0600</pubDate>
    </item>
  </channel>
</rss>
