The 12 Factor PHP App – Part 1

This is Part 1 of a 3 part series: Part 1: Codebase, Dependencies, Configuration and Backing Services. Part 2: Build Release Run, Processes, Port Binding and Concurrency. Part 3: Disposability, Dev/prod parity, Logs, Admin Processes. In this series we’re going to look at ways of building scalable, secure and maintainable web applications using the 12 Factor […]

Building a Framework using Symfony Components – II

This is the continuation of a previous post based on Fabien Potencier’s tutorial on creating your own framework on-top of the Symfony 2 components. In the last lesson, we covered the first 6 parts of Fabien’s excellent tutorial. This time around, we’ll cover off the last 6 parts. So without any further ado… ## Part […]

Read More Comments Off on Building a Framework using Symfony Components – II

Building a Framework using Symfony 2 Components

If you have the time, I highly recommend you work through all of the lessons in their original form. With that said, this post aims to provide a summary of what you’ll learn in each section, as well as a link to the completed code after each exercise. This will make it a breeze for […]

Read More Comments Off on Building a Framework using Symfony 2 Components

PDO for Elegant PHP Database Access

Speaking very broadly, every computer application is basically a data manipulation tool. The application accepts data from the outside world, performs some transformation on it and then pushes some different data right back out. The data inserted into an application can come from a peripheral device (for example, a keyboard or mouse), another system (via […]

Dependency Management with Composer

What you’ll learn How to manage dependencies on third-party vendor libraries using Composer Loading, namespacing and autoloading dependency managed code using Composer’s built-in PSR-0 autoloader Publishing your own libraries via Packagist What is Dependency Management? Web applications rarely contain code exclusively developed by a single person or a single team. It’s more likely that an […]

Read More Comments Off on Dependency Management with Composer

Managing PHP Environments with Vagrant Baseboxes

One of the most important aspects of setting up your development environment is the notion of DEV-PROD parity. This refers to the practice of making sure that the system that you develop an application on is as close as possible to the system that the application is eventually going to run on when shipped. This […]

Read More Comments Off on Managing PHP Environments with Vagrant Baseboxes

Securing your web application with Symfony

Introduction As a web developer, securing your web applications is one of the most important and complex tasks you’ll regularly undertake. You may need to use some security mechanism to make sure the visitor has valid credentials (authentication) within the domain of your application. You may additionally need to check to make sure that the […]

Read More Comments Off on Securing your web application with Symfony