Book Review: PHP5 CMS Framework Development

By  on  

In the interest in full disclosure, I was sent this book by a fellow DZone Zone Leader in hopes that I would review it. I’m reviewing this book, however, in the interest of my audience.

PHP5 CMS Framework Development

Written By
Martin Brampton

Published By
Packt Publishing

Publisher Summary:
This book takes you through the creation of a working architecture for a PHP 5-based content management system, stepping you through the design and major implementation issues. This book is for professional PHP developers who either already use an in-house developed CMS, or are developing one, and want a thorough explanation of solutions to the common issues faced in CMS development, or simply want a working framework on which to build. The reader needs to be confident working with PHP 5 object-oriented programming.

The Review

When I was first contacted about reviewing PHP5 CMS Framework Development, I was very excited. I'm at the point right now where simple to moderate content management system authoring isn't very challenging. Keep in mind that I'm responsible for knowing every piece of the development puzzle for every site I oversee so developing an enterprise-level PHP framework has not been a required skill. In order to grow as a PHP developer, however, this is a skill I would need to learn.

The book begins by outlining some of the important aspects of creating a good system, including PHP best practices, critical features, classes and objects, as well as patterns. The explanation of these ideas is essential to the lessons learned in subsequent chapters.

Chapter's 2 - 14 include:

  • Administrators, Users, and Guests - Discusses SQL injection prevention and ensuring that users will be given proper capabilities within the CMS.
  • Organizing Code - Outlines a suggested filesystem and theoretical structure to the code.
  • Sessions and Users - Solves issues with regard to user login and session storage.
  • Database and Data Objects - Demonstrates code to be used to interact with the database safely and efficiently.
  • Access Control - This chapter outlines methods of allowing permissions to specified areas of the system for each user.
  • Handling Extensions - Covers methods of adding functionality to the CMS while retaining its structure.
  • Caches and Handlers - To keep the system fast and efficient, strong caching methods must be available.
  • Menus - Discusses ideas for making site navigation easy.
  • Languages - One great addition to any site is multi-language capabilities. This chapter discusses solutions to accommodate for this task.
  • Presentation Services - A strong back-end is nothing without a good presentation layer. This chapter provides insight into creating and managing the presentation layer.
  • Other Services - Discusses the addition of widgets to the system.
  • Error Handling - The best way to maintain any system is to build in strong error handling. Learn how to incorporate strong error handling into your system.
  • Real Content - Oh, there's that too. Delve into the front-end side again.

Favorite Chapter

My favorite chapter in PHP5 CMS Framework Development was chapter chapter 3: Organizing Code. Organizing the code is a critical component of a good CMS and unfortunately structuring the CMS is always a challenge for me. Seeing as the rest of the system relies on the organization of code, if you don't take the time to build a good structure you could be up a creek a year later. I learned quite a bit from Brampton's explanation.

The Verdict

Martin Brampton has written an outstanding book about a difficult topic. PHP5 CMS Framework Development provides detailed, logical insight into creating your own advanced Content Management System. I would recommend this book to any moderate to advanced PHP5 developer looking to learn how to create an advanced CMS or a developer open to an alternate method of building an enterprise-level system.

Recent Features

  • By
    Chris Coyier’s Favorite CodePen Demos

    David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...

  • By
    Write Better JavaScript with Promises

    You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...

Incredible Demos

Discussion

  1. Interesting I might buy this book, was already looking for something similiar.

  2. I agree with Erhan. This might be the book I need. I have tried to create a CMS and it worked but it isn’t very strong. This will help to improve.

  3. Hector Perez

    Un libro excelente para los que desarrollan en PHP

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!