PHP5 and MySQL E-Commerce
December often provides a little extra time to catch up on my reading, and one of those books this year is the new Beginning PHP5 and MySQL e-Commerce (Apress) by Cristian Darie and Mihai Bucica.
Being in the process of moving some development systems to PHP 5, I have been soaking up texts on what’s new with PHP5 as it interacts with Apache, MySQL and the rest of the Linux and Mac OS X atmosphere. This work fit right in, and also serves as a fantastic primer for anyone joining the fray in designing and developing online commerce solutions.
Darie and Bucica are directly addressing the newer and intermediate PHP programmer with their effort – a fairly substantial audience. Probably the single best accomplishment in this book is prepping the developer with some foundation theory on e-commerce architecture as well as a brief but excellent primer on project management as an appendix.
The presentation of a three-tier architecture of presentation, business and data layers offers a concise platform roadmap, especially for new developers, to start on the right footing. While there may be many approaches to architecting a web application — this method works well for online store solutions small to large.
In between, the authors present a clear case and extended ‘how-to’ for assembling an online store which ultimately offers comprehensive services including real-time credit card authorization, alternate PayPal processing, web administration of orders, product reviews as content within store listings and more.
I consider the chapter on implementing dynamic product recommendations priceless. Assembling a “customers who bought this also bought..” function is very slick (and Amazon.com-like!). Being a consumer I have found those recommendations right on point at some of my favorite online shops.
Beginning with the framework of a web site, they present an excellent case for using Smarty templates and plug-ins – a potential huge timesaver and productivity tool for endeavors of this nature. Throughout the book are complete and relevant code examples, sometimes sorely missing from other publications. Apress also offers a source code download of everything presented in the text online.
Wrapping up with good overview of web services by way of the familiar SOAP (Simple Object Access Protocol) or perhaps the less familiar (to some) REST (Representational State Transfer) will have the developer connecting to Amazon.com’s web services features. One can take knowledge from these exercises and leverage them with other web services resources using either method.
What may be missing is perhaps a solid brief as an appendix on the changes to PHP5 and Apache 2. This primarily for those who have spent an extended period of time working with former versions of both. There are plenty of texts and resources dedicated to documenting these changes – however it would have really rounded out an otherwise excellent offering.
The book sells for $44.99 at the publisher’s site.
Table of Contents: