Pragmatism in the real world

Gittyup – Easily keep master in sync with upstream

If, like me, you use git and have an upstream remote which is not your origin, then I highly recommend that you use Evan Coury's gittyup script. This is a very simple script that does the following: 1. Verify that you are in a valid Git repo. 2. Remember which branch you are on. 3. Stash any uncommitted changes you have. 4. Checkout master. 5. Fetch all remotes. (nice to track other remotes) 6. Merge… continue reading.

Kyle Spraggs: How does configuration work in ZF2?

Kyle Spraggs has posted How does configuration work in ZF2? As ZF2 increases the beta count and draws nearer to RC I’ve noticed more questions popping up in IRC regarding configuration. Questions like: “How do I setup XXX?” “Where do I add module options?” So, I decided to write up a quick blog explaining how configuration works in ZF2. By default, there are three types of configurations. He then goes on to explain what config/application.config.php,… continue reading.

Padraic Brady: Automatic Output Escaping In PHP And The Real Future Of Preventing Cross-Site Scripting (XSS)

Pádraic Brady has posted Automatic Output Escaping In PHP And The Real Future Of Preventing Cross-Site Scripting (XSS) In the game of mitigating against the risks of XSS, how you escape is not as important as knowing why you are escaping. That second point, understanding why you escape data on output, is unfortunately commonly misunderstood. Yet, without that basic understanding – your choice of how to escape is quite possibly incorrect and, worse, it allows… continue reading.

Kyle Spraggs: ZF Commons – A Zend Framework 2 organization

Kyle Spraggs has posted ZF Commons – A Zend Framework 2 organization Many web applications share features – user management, templating, ACL, blogs, etc. ZF-Commons’ goal is to to produce high-quality, reusable modules for many common tasks that web developers face. In a short post today, Kyle Spraggs encourages all ZF2 developers to help contribute to a set of modules that many applications have need off. If you're writing or planning to write ZF2 applications,… continue reading.

Enrico Zimuel: Cryptography made easy with Zend Framework

Enrico Zimuel has posted Cryptography made easy with Zend Framework In this post I would like to present some of the new capabilities of the ZendCrypt component. Let’s start with the main course: how to encrypt and decrypt data using strong cryptography standards. He then goes on to explain all the cool new features of ZendCrypt and ZendMath, including the use of block ciphers, bcrypt hashes and key derivation functions. Well worth a read.

Gary Hockin: Zend Framework 2 and a Restful Application

Gary Hockin has posted Zend Framework 2 and a Restful Application After speaking to a prospective employer in a job interview, I was interested to try out the ZendMvcControllerRestfulController. With Zend_Json_Server in ZF1 having, shall we say, a less than sterling reputation, it was very interesting for me to see how the strategy has been implemented in ZF2. Gary then explains how to change the Zend Skeleton Application to work with HTTP verbs by changing… continue reading.

Zend Framework 2 beta 4 released

Earlier this week, we got beta 4 of Zend Framework 2 out of the door. This version has some very significant improvements in it which mean that if you're following along at home with the betas, then you're going to be doing a bit of updating! Most of the B/C breaks are noted in this thread. I have updated my Zend Framework 2 tutorial to match this release too. The key new features for me… continue reading.

Evan Coury: Module-specific layouts in Zend Framework 2

Evan Coury has posted Module-specific layouts in Zend Framework 2 First, I should point out that the title of this post is a bit of an intentional misnomer. There’s really no such thing as “module-specific” anything in ZF2, so what we’re really talking about is the topmost namespace of the controller being dispatched. So in the case of MyModuleControllerSomeController, the topmost namespace would be MyModle. In most cases, this will be the name of a… continue reading.

Vagrant in Zend Framework 1

I recently added support for vagrant to the Zend Framework codebase to enable easier testing. I was motivated by some work the joind.in folks have done to get a working development environment for joind.in development using Vagrant. Vagrant is a fantastic tool that enables you to manage and run virtual machines from the command line, including automatic provisioning of them using puppet or chef. The really cool thing about it however from my point of… continue reading.

Unit testing Zend Framework 1

As part of our release process for Zend Framework 1.12, I've been working through the unit tests and running them on PHP 5.2.4 as it seems that recent changes weren't being tested with that version. This isn't totally surprising as Open Source contributors are, almost by definition, interested in new things and so are much more likely to be running PHP 5.4 rather than 5.2! This is, of course, a compelling reason for using continuous… continue reading.