<?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>Thu, 23 May 2013 12:44:44 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ZetaCode.com: PHP GTK tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/17149</guid>
      <link>http://www.phpdeveloper.org/news/17149</link>
      <description><![CDATA[<p>
<i>Jan Bodnar</i> has pointed out a <a href="http://zetcode.com/gui/phpgtktutorial/">great PHP-GTK tutorial</a> on ZetaCode.com that walks you through some of the major points of this graphical frontend for PHP:
</p>
<blockquote>
This tutorial will teach you the basics of GUI programming with the PHP GTK. The tutorial has 8 chapters which cover the first steps with the library, menus, toolbars, dialogs and various widgets. It has some examples for drawing with Cairo library. The final chapter presents a small computer game; <a href="http://zetcode.com/gui/phpgtktutorial/nibbles/">The Nibbles</a>.
</blockquote>
<p>
Each of the topics has sample code and screenshots of the resulting output for each. Also included is information on layouts and "painting" with Cairo - drawing shapes, rectangles, text, etc.
</p>]]></description>
      <pubDate>Fri, 18 Nov 2011 12:41:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 3]]></title>
      <guid>http://www.phpdeveloper.org/news/15702</guid>
      <link>http://www.phpdeveloper.org/news/15702</link>
      <description><![CDATA[<p>
The SitePoint PHP blog has <a href="http://blogs.sitepoint.com/2011/01/07/create-your-own-twitter-widget-3/">part three</a> of their "create your own Twitter widget" series posted today. This is the last post of the series and involves a little cleanup on the data pulled from the Twitter API.
</p>
<blockquote>
In <a href="http://blogs.sitepoint.com/create-your-own-twitter-widget-1">part 1 of this series</a>, we examined the Twitter API, created a PHP TwitterStatus class, and imported the latest tweets in JSON format. In <a href="http://blogs.sitepoint.com/create-your-own-twitter-widget-2">Part 2</a>, we parsed the Twitter data, replaced links, and generated the complete HTML for our widget. In this last post, we'll cache our widget and translate tweet dates into a friendlier format - <a href="http://blogs.sitepointstatic.com/examples/tech/twitter/twitterwidget.zip">download the full source code here</a>.
</blockquote>
<p>
They talk about caching the data pulled back from the API (making it faster and less resource-intensive) and how to parse the dates that you get back from the request using the <a href="http://php.net/datetime">DateTime</a> functionality included with PHP.
</p>]]></description>
      <pubDate>Fri, 07 Jan 2011 10:23:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/15694</guid>
      <link>http://www.phpdeveloper.org/news/15694</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Craig Buckler</i> is back with <a href="http://blogs.sitepoint.com/2011/01/06/create-your-own-twitter-widget-2/">the second part</a> of their series on creating a <a href="http://twitter.com">Twitter</a> widget for your site. You can find more about the first part of the series <a href="http://phpdeveloper.org/news/15688">here</a>.
</p>
<blockquote>
In <a href="http://blogs.sitepoint.com/create-your-own-twitter-widget-1">Part 1 of this series</a>, we examined the Twitter API, creating a PHP TwitterStatus class, and imported the latest tweets in JSON format. Today, we'll populate the data into HTML templates - <a href="http://blogs.sitepointstatic.com/examples/tech/twitter/twitterwidget.zip">download the full source code here</a>.
</blockquote>
<p>
The templates are strings of HTML with tags for where the content belongs - in this case things like "{TWEETS}" and "{profile_image_url}". Regular expressions are used to parse the templates and a <a href="http://php.net/str_replace">str_replace</a> used to make the substitution. The final product is included showing a few example tweets with some parsed links inside each.
</p>]]></description>
      <pubDate>Thu, 06 Jan 2011 12:05:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/15688</guid>
      <link>http://www.phpdeveloper.org/news/15688</link>
      <description><![CDATA[<p>
From the SitePoint PHP blog today there's <a href="http://blogs.sitepoint.com/2011/01/05/create-your-own-twitter-widget-1/">a new tutorial</a> from <i>Craig Buckler</i> (part one of a series) on how to create your own <a href="http://twitter.com">Twitter</a> widget you can drop in anywhere on your site (main content or sidebar). It uses cURL to make the requests to the Twitter servers, so you'll need that installed on your PHP instance.
</p>
<blockquote>
Because you can! Your own widget will always be more customizable than any off-the-shelf solution, and you'll be the envy of your peers. We've also been asked by several readers for articles about the topic, and it's a great introduction to PHP, REST APIs, JSON, regular expressions and Object Orientated Programming.
</blockquote>
<p>
In this <a href="http://blogs.sitepoint.com/2011/01/05/create-your-own-twitter-widget-1/">first part</a> of the series, he helps you set up the class to connect to the Twitter services and fetch the latest statuses for the SitePoint account (obviously, you can substitute yours in its place) and some of the basics like templating and caching. The script uses the REST API since it only needs to fetch, so there's no messing around with the OpenID authentication the Twitter API now requires. You can also <a href="http://blogs.sitepointstatic.com/examples/tech/twitter/twitterwidget.zip">download the source</a> for the code that'll be generated during the series.
</p>]]></description>
      <pubDate>Wed, 05 Jan 2011 13:13:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Using Action Helpers To Implement Re-Usable Widgets]]></title>
      <guid>http://www.phpdeveloper.org/news/15229</guid>
      <link>http://www.phpdeveloper.org/news/15229</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> has a new post to his blog today showing you how to use <a href="http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html">action helpers to make widgets</a> that you can reuse all over your Zend Framework application. His method doesn't use the "action()" helper, either.
</p>
<blockquote>
The situation all started when <a href="http://twitter.com/andriesss">Andries</a> tweeted asking about what he considered some mis-behavior on the part of the action() view helper -- a situation that turned out not to be an issue, per se, but more a case of bad architecture within Zend Framework. [...] The helper was done this way because Zend Framework does not render views a single time -- it instead renders after each action, and accumulates views to render in the layout.
</blockquote>
<p>
Instead, he offers <a href="http://weierophinney.net/matthew/archives/233-Responding-to-Different-Content-Types-in-RESTful-ZF-Apps.html">action</a> <a href="http://weierophinney.net/matthew/archives/235-A-Simple-Resource-Injector-for-ZF-Action-Controllers.html">helpers</a> as a solution. He gives an example of a user module that has views, helpers and forms but no controllers, including a Bootstrap file. This bootstrap defines the helpers, configuration file and adds the helpers into the process flow of the application. Once things are all set up and the action helper is created, adding the module to a page is as easy as calling "createProfileWidget()" into a partial view.
</p>]]></description>
      <pubDate>Tue, 05 Oct 2010 09:12:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How To Build a Widget to Display your Buzzing ]]></title>
      <guid>http://www.phpdeveloper.org/news/14328</guid>
      <link>http://www.phpdeveloper.org/news/14328</link>
      <description><![CDATA[<p>
On NETTUTS.com a tutorial has been posted recently showing you how to <a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-a-widget-to-display-your-buzzing">build a widget for Buzz</a>, the Google's service similar to <a href="http://twitter.com">Twitter</a>. If you've ever worked with the Twitter timeline concept, using <a href="http://www.google.com/buzz">Buzz</a> will feel very familiar. Unfortunately, for the moment at least, it's a read-only kind of thing.
</p>
<blockquote>
At the moment, there's no API to work with the Buzz service; Google is expected to provide one within the next several months, however, for now, the public updates are available as Atom feeds.
</blockquote>
<p>
They grab these Atom feeds via a proxy PHP script (can't cross-domain with Ajax, after all) and then some Ajax to real the latest from this proxy. The results are displayed in a (very familiar looking) timeline with the help of the included HTML and CSS/images. The last part of the process is to push it into a jQuery plugin for easier use down the line. You can get the <a href="http://s3.amazonaws.com/nettuts/627_buzz/demo.zip">source download here</a> and check out a <a href="http://demo.jeffrey-way.com/tuts-demo-buzzing/demo/demo.html">demo online</a>.
</p>]]></description>
      <pubDate>Fri, 09 Apr 2010 12:16:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Customize Your WordPress Blog with PHP Plugins and Widgets]]></title>
      <guid>http://www.phpdeveloper.org/news/14186</guid>
      <link>http://www.phpdeveloper.org/news/14186</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial walking you through the <a href="http://www.phpbuilder.com/columns/keith_vance031110.php3">creation of a simple WordPress plugin</a> that shows the latest YouTube video from your blog's channel.
</p>
<blockquote>
Think of plugins as components where you put your functionality and widgets as components of your user interface. Building your own WordPress plugins and widgets will make your blog truly original, and all you need is basic PHP and HTML knowledge - and your imagination.
</blockquote>
<p>
They help you get started with defining a few constants, registering the actions with WordPress, building the widget (with complete cut-and-paste-able code) and including it in your WordPress blog. You can <a href="http://www.phpbuilder.com/columns/boobtube.zip">download the complete source</a> if you want to get started quickly.
</p>]]></description>
      <pubDate>Mon, 15 Mar 2010 14:51:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to have multiple paginated widgets on the same page with CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10902</guid>
      <link>http://www.phpdeveloper.org/news/10902</link>
      <description><![CDATA[<p>
On the Debuggable blog <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3">shows a way</a> to have more than one paginated item on your page at a time (in a CakePHP application).
</p>
<blockquote>
Many of you might have run into the problem of having multiple boxes on the same page that need to be paginated. For example you might have a left column with a list of members of your site and a right column that shows for a example a list of forums. Yeah, that's not the best example, but you get the idea.
</blockquote>
<p>
The typical CakePHP pagination functional assumes that there's only one block of information that needs to be paginated per page. With <i>Tim</i>'s modification, the model name for where the data is being pulled from is appended to the end of the URL and parsed by the script to know which is which.
</p>]]></description>
      <pubDate>Tue, 26 Aug 2008 12:04:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Create your own widget with PHP-GTK]]></title>
      <guid>http://www.phpdeveloper.org/news/10854</guid>
      <link>http://www.phpdeveloper.org/news/10854</link>
      <description><![CDATA[<p>
A <a href="http://devzone.zend.com/article/3779-Create-your-own-widget-with-PHP-GTK">new tutorial</a> on the Zend Developer Zone shows you how to use PHP's "younger cousin" PHP-GTK to make a simple widget.
</p>
<blockquote>
With PHP's younger cousin PHP-GTK's recent step to maturity with the 2.0 stable release it is a good time to give this project some more attention. In this article I will show you how to create a re-usable IPv4 Entry widget using PHP-GTK's excellent OO structure.
</blockquote>
<p>
The end result is an interface that lets the user input an IP in a familiar way (blocks of three, automatically advancing to the next block). They talk about the code first, describing how all of the parts fit together before giving you an easily cut-and-pastable block of code (the class) that creates the widget.
</p>]]></description>
      <pubDate>Tue, 19 Aug 2008 09:35:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[International Stock Exchange Forum: Getting RSS Feeds into Lively]]></title>
      <guid>http://www.phpdeveloper.org/news/10581</guid>
      <link>http://www.phpdeveloper.org/news/10581</link>
      <description><![CDATA[<p>
Just for you Lively early adopters out there, there's <a href="http://www.intlstockexchange.com/punbb/viewtopic.php?id=361">a script</a> that's been posted to the International Stock Exchange forum showing how to get a feed into the virtual world.
</p>
<blockquote>
Here is a free PHP script to convert the titles of a news feed to a PNG graphic for display in Google Lively.  To display a news feed in Google Lively, go to the "Add object" button, search for "Picture Frame".  Click on add to room and then edit properties.  In Gadget Options place the url of the PHP script in the option box.
</blockquote>
<p>
The script can then be hosted on a web server where it can pull down the latest stories and update the PNG image accordingly.
</p>]]></description>
      <pubDate>Thu, 10 Jul 2008 15:28:09 -0500</pubDate>
    </item>
  </channel>
</rss>
