Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

May 23, 2013

This issue brought to you thanks to the folks at
A busy week for PHP with a huge amount of interesting information to get through.  Welcome to our new subscribers who came to us from Hacker News and Reddit. Great to see you here.

As ever, if you have any news, announcements or information relating to PHP then feel free to send them over, and please let your friends and colleagues know about us.

Thanks for all of your suggestions for the site. We've added a screenshot to show new visitors what they would receive. We're also adding an archive hopefully later today and also an RSS feed. Keep the suggestions coming :)

All the best and have a great weekend!  See you next week



Dealing with Duplicated Code
"We’ve all seen it: we’re working along, and we come across code that just has a feel to it. It’s like déjà vu. You’ve seen this code before. You open another file – sure enough, there it is. The same code. Almost line for line..." Read Brandon Savages's recent article on what you can do about duplicated code.

10 Tips for Learning a New technology
We live in a very exciting time. Never before has education been so cheaply available to the masses (if not free). The medium, itself, has made tectonic shifts from a classroom setting to blogs, screencasts and complete university classes, as a set of videos and interactive forums. Given these resources, there’s absolutely no excuse not to dive in and learn. However, with such a wealth of resources, filtering through the options can often become overwhelming. In this article, Pavan Podila will outline a simple process to kick-start your education.

Know Thy PHP User Group - Know The Leeds PHP User Group (LeedsPHP)
“Choose A Sponsor That Is Actually Interested In Promoting PHP In The Community”. Web Developer Khayrattee Wasseem, from 7php, introduces Know Thy PHP User Group and has his first interview with LeedsPHP.

A Chat About Adminer
Formerly known as phpMinAdmin, Adminer is a full-featured database management tool to be used as a more simple, effective and fast alternative to the famous PHPmyAdmin. 7php's Khayrattee Wasseem talks to the creator of Adminer, Jakub Vrana.

5 Reasons Why the Web Platform War is Over:
A Google manager for AppEngine explained that PHP is running in 75% of the Web sites. That explains why PHP support is the top most requested feature for AppEngine. Read the 5 reasons why.

Survived php tek 2013
PHP Consultant and president of PHPBenelux Michelangelo van Dam shares his experience of this year's php(tek), in Chicago last week.

Tutorials and Talks

MongoDB Indexing, Part 2
In part 1 of this series we had an introduction to indexing in MongoDB. We saw how to create, use, and analyse queries with indexes giving us a good foundation to build on. In this part, we’ll take a look at a few more small but important concepts, like indexing on sub-documents and embedded fields, covered queries, and index direction.

Offline Processing in PHP with Advanced Queuing
Offloading slow batch tasks to an external process is a common method of improving website responsiveness. One great way to initiate such background tasks in PHP is to use Oracle Streams Advanced Queuing in a producer-consumer message passing fashion.

Zend Framework 2 – Hydrators, Models and the TableGateway Pattern
Zend Framework 2 comes packed with an assortment of new features and functionality and greatly streamlines how common scenarios, such as interacting with datasources and application configuration and caching, are implemented.

Speedy Sites: Building the Stack
Barney Hanlon explains - How do we define "the stack"? For the purposes of this article, the stack represents everything between the user and the PHP generating the content they see. As with all performance tuning work, you will need to have a sandbox to try out these techniques, and see what works for you.

How to Write Testable and Maintainable Code in PHP
Frameworks provide a tool for rapid application development, but often accrue technical debt as rapidly as they allow you to create functionality. Technical debt is created when maintainability isn't a purposeful focus of the developer. Future changes and debugging become costly, due to a lack of unit testing and structure. Here's how to begin structuring your code to achieve testability and maintainability – and save you time.

Openbiz Cubi: A Robust PHP Application Framework, Part 1
Openbiz Cubi is a robust PHP application framework giving developers the ability to create business applications with minimal effort. In this two-part series learn the concepts and steps necessary to create your own business web applications with Cubi.

Speed up PHP on NFS with turbo_realpath on CentOS
If you run a website based on PHP, and have your source files on a network file system like NFS, OCFS2, or GlusterFS, and combine it with PHP's open_basedir protection, you'll quickly notice that the performance will degrade substantially.

Google App Engine, PHP and Silex. Setting up a Login Provider
Last week Google announced the PHP support for Google App Engine (GAE). PHPStorm, the great IDE for PHP development, also announced support for Google App Engine PHP. For this reason it's now time for Gonzalo Ayuso to hack a little bit with this new toy.

Offline Processing in PHP with Advanced Queuing
Offloading slow batch tasks to an external process is a common method of improving website responsiveness. One great way to initiate such background tasks in PHP is to use Oracle Streams Advanced Queuing in a producer-consumer message passing fashion. 

Best Tools for Testing PHP Code Online
PHP is such an awesome scripting language for building dynamic web application because it has a huge user base as well as developer base. As it is an open source language it's freely available in the internet without any hassle. The developer community is contributing towards PHP to increase the user base, and constantly adding new features to PHP regularly. New and fresh tools are coming out in the internet.

Code Complexity and Clean Code
Many people wonder how they can improve the overall readability and cleanliness of their code. It seems impossible to understand exactly how to rewrite code in such a way that makes it clean, easy to understand and simple to work with. But clean code is about a few simple principles, one of which is reducing overall code complexity through a series of simple steps.
News and Announcements

Introducing the New HTML5 Template Tag
A new template tag which provides a mechanism to define HTML markup fragments as prototypes.

Get Started with App Engine for PHP: scalable, secure and reliable
Google I/O announced PHP as the latest supported runtime for Google App Engine in Limited Preview. Now PHP developers can take advantage of the scale, reliability and security features of App Engine. In addition, PHP runs well with other parts of Google Cloud Platform. Take a look at how this works. 

PHP Google Translate String
This class can send a HTTP request to the Google Translate site to translate a given string between an origin language and target language

Lone Star PHP 2013 Conference June 28-29th, Dallas Texas
The third year of Lone Star PHP, with two days of great PHP speakers and content.

Reading and Viewing

Development By The Numbers
Anthony Ferrara presents a talk on Static Analysis and Code Metrics.

PHP OOP: Quick & Dirty for Advanced Learners (by Subhash Chandran, published April 2013)
This is a quick introduction to PHP Object Oriented Programming for readers familiar with OOP concepts and having basic knowledge of PHP. The book covers syntax, namespace, dependency management, packaging, unit testing and documentation aspects.

How to Make More Money in Web Design
Listen to John Morris' podcast on the best way to find success.

Tools for Better PHP
Presentation covering a few tools that web developers may find useful during development, deployment, and after the application is live. These include gearman and supervisord, static analysis tools, deployment and automation with phing, recommendation for monitoring tools, and some tips about how continuous integration can help you fit it all together. Presented at PHP tek 2013 by Lorna Mitchell.

Web Sockets are Fast
Hear the latest podcast from Phil Sturgeon & Ben Edmunds, talking Ratchet.

Interesting Projects, Tools and Libraries

How We Organise Our Websites
Developer Paul Reinheimer's most recent site checking tool is Where's it Up? which checks your sites availability globally, returning HTTP, DNS, and Traceroute details. "We recently migrated Where’s it Up to our fancy new hardware. It took a bit more effort than planned (some pains surrounding our use of MongoDB) but I’m incredibly happy with how things have ended up..."

Fastly PHP client library

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

php-opencloud is a library for developers using PHP to work with OpenStack clouds. Since the library was developed at Rackspace, it works with the Rackspace public and private cloud, and should also work with other OpenStack-based clouds with minimal effort. 

Monolog - Logging for PHP 5.3+. This library implements the PSR-3 interface that you can type-hint against in your own libraries to keep a maximum of interoperability. You can also use it in your applications to make sure you can always use another compatible logger at a later time.

Client URL Library Manual
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols.

PHP Markdown
A library package for developers, Markdown is two things: a plain text markup syntax, and a software tool that converts the plain text markup to HTML for publishing on the web.


Thanks to the folks at SourceGuardian for helping us to put this out.

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright ©