Tutorials and Talks Build Virtual Machines Easily with PuPHPet - Part 2

Part one of this series considered the problem of how to create and manage development environments in a way which was simple, repeatable and (even) efficient. It's a problem which we've all run in to from time to time. The solution was a relatively new tool called PuPHPet. So in this second part of the series we're going to be looking at the two core files used: common.yaml, and Vagrantfile. We'll be making some changes to them, then provisioning the virtual machines to reflect the configuration changes.



Unique Index and its Rationale

This article is inspired by one recently posted on sitepoint.com, "How to Use Unique Indexes in MySQL and Other Databases". There are a few more tightly related and equally important aspects regarding Primary Key (PK) and Unique Index (UI) which were not covered in that article, so here we will take a further look at these areas.



Contributing to Open Source – Updating Phalconphp.com

In this tutorial, Bruno Skvorc will clone the Phalconphp.com website to the local PuPHPet VM, update it to include new information about a supported environment, and submit a pull request to the project owners.



PHP Multiple Checkbox Array Handling

John Morris tends to get asked a lot of questions around checkbox handling when submitting forms to PHP. Here he has posted a simple snippet to illustrate how it works.



Decoding TLS with PHP

Joshua Thijssen talks about how far he could decode TLS data on the client side which, even though it appears to be a simple procedure, was actually fairly complex.



Creating a Simple REST Application with Silex

So you have come to the conclusion that, rather than having the code to update customer details and that little fix to convert the date from GMT to UTC should happen in one place rather than being copied into several pieces of code, a REST service is the answer. Perhaps you just think you should know how to create a REST service. Either way this post is for you.



Test Spies and Mockery

While recording some screencasts, Chris Hartjes was struggling to figure out how to get PHPUnit’s built-in object mocking tools to allow him to create what is known as a “test spy”. He talks about them briefly in his PHPUnit Cookbook but this task required help beyond what PHPUnit could give. Part one of this series considered the problem of how to create and manage development environments in a way which was simple, repeatable and (even) efficient. It's a problem which we've all run in to from time to time. The solution was a relatively new tool called PuPHPet. So in this second part of the series we're going to be looking at the two core files used: common.yaml, and Vagrantfile. We'll be making some changes to them, then provisioning the virtual machines to reflect the configuration changes.This article is inspired by one recently posted on sitepoint.com, "How to Use Unique Indexes in MySQL and Other Databases". There are a few more tightly related and equally important aspects regarding Primary Key (PK) and Unique Index (UI) which were not covered in that article, so here we will take a further look at these areas.In this tutorial, Bruno Skvorc will clone the Phalconphp.com website to the local PuPHPet VM, update it to include new information about a supported environment, and submit a pull request to the project owners.John Morris tends to get asked a lot of questions around checkbox handling when submitting forms to PHP. Here he has posted a simple snippet to illustrate how it works.Joshua Thijssen talks about how far he could decode TLS data on the client side which, even though it appears to be a simple procedure, was actually fairly complex.So you have come to the conclusion that, rather than having the code to update customer details and that little fix to convert the date from GMT to UTC should happen in one place rather than being copied into several pieces of code, a REST service is the answer. Perhaps you just think you should know how to create a REST service. Either way this post is for you.While recording some screencasts, Chris Hartjes was struggling to figure out how to get PHPUnit’s built-in object mocking tools to allow him to create what is known as a “test spy”. He talks about them briefly in his PHPUnit Cookbook but this task required help beyond what PHPUnit could give.