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

Incredible Demos

  • By
    Save Web Form Content Using Control + S

    We've all used word processing applications like Microsoft Word and if there's one thing they've taught you it's that you need to save every few seconds in anticipation of the inevitable crash. WordPress has mimicked this functionality within their WYSIWYG editor and I use it...

  • By
    Web Audio API

    The Web Audio API allows developers to load and decode audio on demand using JavaScript.  The more I evaluate awesome games for Firefox OS TVs, the more I get to learn about these APIs that I normally wouldn't touch.  The following is a very basic introduction to the WebAudio API...

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!