<?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 10:38:03 -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[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[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: 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>
  </channel>
</rss>
