Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mathias Noback:
Some questions about the command bus
Jan 12, 2015 @ 09:46:46

Mathias Noback has continued his series looking at the use of command busses in PHP applications. In this third part of his series, he answers some questions that have been asked by his own readers.

So far we've had three posts in this series about commands, events and their corresponding buses and handlers: a wave of command buses, responsibilities of the command bus, from commands to events. Now I'd like to take the time to answer some of the very interesting questions that by readers.

He answers questions about:

  • The difference between commands and events
  • Disadvantages of using a command bus
  • The command as constructor argument
  • How to return a value from the command bus
  • Could commands handle themselves?

Each question comes with a portion of the question from the original author, an explanation and some code where needed to illustrate his point.

tagged: commandbus question answer reader events disadvantages return handling

Link: http://php-and-symfony.matthiasnoback.nl/2015/01/some-questions-about-the-command-bus/

PHPMaster.com:
Consuming Feeds with SimplePie
Apr 22, 2013 @ 11:47:50

In a recent post to PHPMaster.com Kevin Mowry shows you how to use SimplePie, a simple to use programatic feed reader you can use to parse things like RSS feeds.

If you’re an avid feed consumer like I am, you might be a bit sad to see Google’s recent announcement of Reader reaching end of life. Reader was simple and easy to use, but there’s no reason you can’t have the same functionality with your own homegrown project. The PHP library SimplePie allows for quick and easy feed consumption and display. Here’s how you can get started on your own feed reader.

He helps you get it installed (via Composer) and shows you how to use some of its most basic functionality to parse the New York Times' feed. He also includes examples of getting the information back out of the SimplePie object. There's also some snippets that show how to only get the latest items and how to cache the results.

tagged: simplepie rss feed reader tutorial nytimes

Link: http://phpmaster.com/consuming-feeds-with-simplepie

Cal Evans' Blog:
5 PHP twitter accounts that have replaced my feed reader
Aug 12, 2010 @ 12:07:29

In a new post to his blog Cal Evans has posted five twitter accounts that he's used to replace his feed reader for everyday reading:

I have given up on feed readers. I never did like them much to begin with and have found over the past couple of years that twitter does a better job of showing me interesting blog posts than Google Reader ever did. In addition to recommendations from friends however, there are a hand full of accounts that I follow to keep up with what is going on.

Here's his list of the five accounts to follow:

tagged: blog twitter feed reader opinion

Link:

Marco Tabini's Blog:
It turns out, I was wrong
Dec 01, 2008 @ 07:54:29

Correcting himself from some previous comments concerning PHP 5 versus PHP 4 usage among developers, Marco Tabini has posted something new to his blog with some updated stats.

In the past, I have not been shy about sharing my opinion that the impending death of PHP 4 would have wreaked all sorts of havoc over the PHP world. I am glad to say that I've been wrong - dead wrong, in fact - and that I have never been as happy to be so far off the mark before.

According to a readers survey that the php|architect magazine ran (about a year ago even) PHP 5 is stronger than ever, taking up well over sixty percent of the usage with only a small part still hanging with PHP 4. Check out his graph for the full rankings.

tagged: statistics php4 php5 usage correction phparchitect survey reader

Link:

CSS Tricks:
Create a Slick iPhone/Mobile Interface from any RSS Feed
Jul 17, 2008 @ 10:22:55

On the CSS Tricks blog there's a recent article showing how to combine the jQuery Javascript library and the SimplePie PHP feed aggregator to create a iPhone/mobile interface to any RSS feed.

We are going to create a web page that is formatted specifically for the iPhone (but would presumably be good for other mobile devices as well). This web page will dynamically fill itself with content from any RSS feed that you give it. The interface is going to be built to be easy to use on a mobile device, with large "touchable" areas and nice (jQuery) animations that whisk you between articles.

They work through the process - five simple steps:

  • Create the iPhone Environment
  • Pull in the RSS Feed
  • Creating the Front Page: Headlines Only
  • Creating the Article Pages: jQuery Slider Style
  • Adding Some Flair

All code and images needed are included (as well as a demo if you'd like to try it out).

tagged: iphone tutorial mobile rss feed reader simplepie jquery

Link:

Doug Hill's Blog:
PHP Weekly Reader - May 16th 2008
Mar 17, 2008 @ 09:35:52

Doug Hill has decided to start a series on his blog that details some of the happenings in the PHP community for the past week, of which this is the first:

I spend way too much time reading blogs, surfing PHP and web development articles online. I resolve to cut back but things just sneak back into my reader somehow, and believe me dzone doesn't help. But I've came up with a way to justify all that time, I call it research.

He mentions things like the infamous CIO article, Zend's Jolt Award, comparing the Zend Framework versus PEAR and PHP releases, books and various other language-related tidbits.

Check out the post for more and keep an eye on Doug's blog for future weekly summaries.

tagged: weekly reader summary article news trends

Link:

ProDevTips.com:
Ajax, ZF and Smarty feed reader: part 3
Nov 19, 2007 @ 11:19:00

ProDevTips.com has posted the thier part of their series looking at building a feed reader with Ajax, the Zend Framework and Smarty (see parts one and two here).

This time we will take a look at the feed list window and the manage window. This will also be the concluding part of the series.

All of the code is provided (a full download is here for all three parts) and they gloss over a lot of the code assuming you know something about reading it - including a lot of the HTML for the presentation.

tagged: prodevtips ajax zendframework smarty feed reader prodevtips ajax zendframework smarty feed reader

Link:

ProDevTips.com:
Ajax, ZF and Smarty feed reader: part 3
Nov 19, 2007 @ 11:19:00

ProDevTips.com has posted the thier part of their series looking at building a feed reader with Ajax, the Zend Framework and Smarty (see parts one and two here).

This time we will take a look at the feed list window and the manage window. This will also be the concluding part of the series.

All of the code is provided (a full download is here for all three parts) and they gloss over a lot of the code assuming you know something about reading it - including a lot of the HTML for the presentation.

tagged: prodevtips ajax zendframework smarty feed reader prodevtips ajax zendframework smarty feed reader

Link:

ProDevTips.com:
Ajax, ZF and Smarty feed reader (Part 2)
Nov 12, 2007 @ 10:29:00

ProDevTips.com has posted part two of their look at creating a feed reader with Ajax, the Zend Framework and Smarty today.

In this latest part, they pick up where they left off before and march on towards the goal. They point out another tutorial over on the IBM developerWorks website that can help you understand a bit more about the Ajax side of things before getting into part 2, but it's not a requirement.

They create the page with the Javascript include files and a form with a button to make the action happen.

tagged: ajax zendframework smarty tutorial feed reader ajax zendframework smarty tutorial feed reader

Link:

ProDevTips.com:
Ajax, ZF and Smarty feed reader (Part 2)
Nov 12, 2007 @ 10:29:00

ProDevTips.com has posted part two of their look at creating a feed reader with Ajax, the Zend Framework and Smarty today.

In this latest part, they pick up where they left off before and march on towards the goal. They point out another tutorial over on the IBM developerWorks website that can help you understand a bit more about the Ajax side of things before getting into part 2, but it's not a requirement.

They create the page with the Javascript include files and a form with a button to make the action happen.

tagged: ajax zendframework smarty tutorial feed reader ajax zendframework smarty tutorial feed reader

Link: