2013年1月2日星期三

Community News: Latest Releases from PHPClasses.org

Community News: Packagist Latest Releases for 01.02.2013

Recent releases from the Packagist:

MaltBlue.com: Zend Framework 2 Modules - The Application's Heart


Matthew Setter has a new post to his site today introducing you to modules in Zend Framework v2 - the "application's heart".



So it really is rewarding and exciting to begin covering all that it has to offer us. In part one of this series, I looked at a central concept of the revised framework - Dependency Injection. In this, the second part, I'm moving on to give a good introduction to the next most important aspect - Modules. In today's post, we'll be looking at what they are, some thoughts and quotes from the key developers involved and working code to get you started.


He talks about some of the key parts of modules in ZF2 (autoloader, manager and listeners) and includes links to a few examples. He then walks you through the creation of a simple module, scaffolding out the basics of the config and autoload handling. He leaves the rest up to you though including adding in the controller/model/views for the module and unit test or language support.

Freek Lijten: SOLID - The D is for Dependency Inversion Principle


Freek Lijten has posted the last article in his series looking at the SOLID development principles, this time looking at "D", the Dependency Inversion Principle.



The DIP deals with avoiding mixing different levels of abstraction in your code. In this article we will explore the last of these principles in depth. [...] I want to show you how depending on abstractions makes our lives easier in a larger example. Since we're going to be loading, updating and storing bikes a lot in our application I would like an Api for that. It would not be such a good idea to write the same queries or perform the same validation over and over.


He includes two examples - one a bit simplistic involving bike storage and another more complex that uses interfaces to define structure and object injection rather than passing data around. He also tries to help clear up some of the confusion that might happen around dependency inversion and dependency injection.

2013年1月1日星期二

Community News: Latest PECL Releases for 01.01.2013

Latest PECL Releases:

Community News: Packagist Latest Releases for 01.01.2013

Recent releases from the Packagist:

Lorna Mitchell: Become a ZCE in 2013


If you've ever looked at getting your ZCE (Zend Certified Engineer) certification but didn't know where to start, Lorna Mitchell suggests that 2013 is the year to do it and offers some tips (and her own guide to help you along the way).



A few people have told me it's their New Year's resolution to become a ZCE this year, and I'm sure they're not the only ones. I regularly help developers and teams prepare for ZCE, so I thought I'd make up a mini package of tips, tricks and a full set sample questions with solutions and explanations, for anyone who won't be taking a whole preparation course.


She recommends a few things in general too like studying up with the free Zend PHP 5.3 ZCE guide, research into areas that might be a bit foreign to you and, of you have the time and means, try taking a course to walk you through what you'll need to know