Recent releases from the Packagist:dflydev/placeholder-resolver (v1.0.1)
epochblue/philip-plugins (v1.0.1, v1.0.0)
Latest PEAR Releases:
A common problem in software development, is that you need data to work with. This is especially true with data-oriented websites. Working with an empty database leads to all sorts of unexpected problems cropping up once the site goes live and receives real world data. Performance issues, visual bugs due to missing fields, too long or too small texts, etc.
The best way to address this is to have fixtures, fake data you use while developing or for automated testing of the website. However writing these...
Managing Pull Requests for the MongoDB PHP driver
Monday, October 29th 2012, 09:22 GMT
The MongoDB PHP Driver is hosted as an Open Source project through GitHub. Everybody can check-out the repository and provide patches to this. In order to make things easier to manage, even Hannes, Jeremy and me, the maintainers of the extension will only merge code into it through patches.
To streamline the managing of those patches we are using GitHub's Pull Request (PR) system. Any time we fix a bug,...
I was initially a little unclear about how to connect my Lithium application to my MongoDB replica set while specifying multiple serves, I've settled with:
Connections::add('default', array('type' = 'MongoDb',
'host' = 'localhost:12345,washington.mongo:12345',
'replicaSet' = true,
'database' = 'wiu'));I'm listing multiple servers that form my replica set in the host field as a comma separated list. While you technically only need to list one (and the driver should discover the rest), it's a good idea...
Recent releases from the Packagist:sallycms/sallycms (0.7.2)
alexshelkov/simpleacl (1.0.1, 1.0.0)
bca/curl (2.1.1, 2.1.0, 2.0.1)
As we've been extending the API for our site monitoring and diagnostic tool, Where's it Up, one of my key concerns was the single point of failure our Washington server represented. Luckily, MongoDB was explicitly designed to make this sort of thing easy.
For Where's it Up, we're planning on launching with two main servers in different data centres, one in Washington, the other in San Antonio. We've considered a few different approaches on the web side, and have decided initially to mark our Washington...
Recent releases from the Packagist:mjohnson/decoda-cakephp (5.0.0-beta)
On PHPMaster.com today they've posted an introduction to the Law of Demeter, an idea that promotes loose coupling between objects that each do their own work. This makes it simpler to make pieces interchangeable and more able to focus on their job.With so many heuristics stating how and why software systems should cling to a specific approach, it's pretty disappointing not seeing a broader implementation of them in the world of PHP. For example, the Law of Demeter is probably one of the most underrated...
On the Smashing Magazine site there's a new article talking about coding style matters with developing projects with multiple people (or even possible contributors in the future) involved.Coding style is how your code looks, plain and simple. And by "your," I actually mean you, the person who is reading this article. Coding style is extremely personal and everyone has their own preferred style. You can discover your own personal style by looking back over code that you've written when you didn't have a...
On Monday of this week, Amazon's EC2 service suffered a major outage, which they call aoperformance issuesa, which we all know is simply not true.
This is not a post about how Amazon has failed us. Everyone goes down. We use AWS because it's flexible, and we need the flexibility. This is a post about how Gimme Bar went down due to this outage, despite our intentions of making everything resilient to these types of failures. It is a post about how I accidentally misconfigured our MongoDB Replica Set...
Recent releases from the Packagist:rdlowrey/artax (v1.0.0-rc.7)
mjohnson/decoda (4.0.1, 4.0.0)
treshugart/testes (1.0.2, 1.0.3)
Popular posts from PHPDeveloper.org for the past week:Mario Peshev: Over-Abstractionism
Sherif Ramadan: Test Drive PHP 5.5: A Sneak Peek
Chris Hartjes: PHPSpec and the New Wave of Testing
Pablo Viquez: PHP debugging with JMeter and Zend Debugger
Scott Mattocks: U is for Unit Tests
Community News: Make PHP-Based Android Applications with Zend Studio 10
Community News: Packagist Latest Releases for 10.19.2012
Reddit.com: Year Old Bug Request for $_PUT Interested in /r/php's Opinion
Voices of the ElePHPant...
My slides from Zendcon talking about full-stack Bottleneck Analysis are now available online and can be downloaded at:
The PHP community has a new conference that's been announced - Sunshine PHP, a conference being held in South Florida during the first part of February (the 8th-9th) in 2012.With such a large PHP community in Florida it's about time someone organized a PHP developer conference here, so this is it! We will be hosting some of the best speakers, latest technology, and up to date news in the industry. So register now while space is still available, and if you are a speaker please submit your talks before the...
PHPMaster.com has posted the third part in their "Practical Code Refactoring" series - this time with a focus on Extensibility. (Part 1, Part 2).Extensible code is a piece of code which follows re-usable, logical, well-known patterns, be it standard design patterns, or normal logical flow. Modular code tends to be highly extensible and monolithic code tends to be non-extensible, but monolithic code might be more efficient, so to solve this conundrum some practices allow developing in a modular way and...
On the MaltBlue blog Matt Setter has a new post introducing you to using FilterIterators for data traversal:There's load of ways to traverse data, especially in PHP where there are a variety of loops available; including while, do while, for and foreach. These are fine for normal structures, such as scalar and associative arrays. But what if you want to get a bit more fancy?He includes a bit of code showing the typical looping approach that a lot of developers take and how, using a FilterIterator, you...
Recent releases from the Packagist:ehann/notification-bundle (1.0.2, 1.0.1, 1.0.0)
kevinsperrine/paris (v2.0.2, v2.0.1)
Here's what was popular in the PHP community one year ago today:PHPMaster.com: Introduction to MongoDB
ZendCasts.com: Building a JSON Endpoint with SLIM (Part 1)
Joshua Thijssen's Blog: LAMP-stack? Forget it! It's a LAMPGMVNMCSTRAH-stack now...
DZone.com: PHP 5.4 Will Have a Built-in Web Server
Justin Carmony's Blog: Setting Up Nginx & PHP-FPM on Ubuntu 10.04
Ken Guest's Blog: A new Openstreetmap API framework for PHP
Script-Tutorials.com: Creating a Smooth Curve Graphs with PHP and GD
My slides introducing the PHP Excel extension from the talk at ZendUncon are now available online and can be downloaded at: http://ilia.ws/files/zenduncon_phpexcel.pdf