Blog Post RSS ?

Blogs » Open Source » PHP5 and MySQL E-Commerce
 

PHP5 and MySQL E-Commerce

by Blane Warrene

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:

PART 1 – Phase I of Development
Chapter 1 – Starting an E-Commerce Site
Chapter 2 – Laying Out the Foundations
Chapter 3 – Creating the Product Catalog: Part I
Chapter 4 – Creating the Product Catalog: Part II
Chapter 5 – Searching the Catalog
Chapter 6 – Receiving Payments Using PayPal
Chapter 7 – Catalog Administration

PART 2 – Phase II of Development
Chapter 8 – The Shopping Basket
Chapter 9 – Dealing with Customer Orders
Chapter 10 – Product Recommendations

PART 3 – Phase III of Development
Chapter 11 – Customer Details
Chapter 12 – Implementing the Order Pipeline: Part I
Chapter 13 – Implementing the Pipeline: Part II
Chapter 14 – Credit Card Transactions
Chapter 15 – Product Reviews
Chapter 16 – Connecting to Web Services

Part 4 – Appedixes
Appendix A – Installing Apache, PHP, MySQL, and phpMyAdmin
Appendix B – Hosting the Web Site
Appendix C – Project Management Considerations

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Ping.fm
  • TwitThis

This post has 9 responses so far

  1. I got this for Christmas and am anxious to read it.

     
  2. Would this book still be of good use for PHP 4 or is there a lot of difference between PHP4 and PHP5?

     
  3. The basis would be the same - however - the book introduces new features specific to PHP5 as well - so it would be very helpful to someone at least planning a migration to PHP5.

     
  4. A very good book, written by specialists.

     
  5. Would it be possible for me to use some of codes for my site?

     
  6. keng:

    try this code:

    up down up down up down circle triangle square x L1 R1 L2 R2

    That will give you unlimited e-commerce firepower and 10 extra guys.

     
  7. i’m in really need of a book like this… and i havent found anything so promising as this one yet….

    should i buy it?? does anyone has anything else to suggest???

    (:

    ps. i’m trying the “extra guys” cheat but its not working.. maybe its not supported by the latest php version…
    same thing happend in winxp with the “extend-weekend” cheat… :)

     
  8. found some pretty nice answers there http://www.amazon.com/gp/product/1590593928/103-2432943-7693466?v=glance&n=283155

    have a look ;)

     
  9. i read many php and mysql book, and i decided to buy this one

    while i thought this book is a promising one, its far from a book for a beginner programmer, which i am not.

    i really wouldn’t recommend this book to a beginner programmer,
    maybe to the advanced programmer who really doesn’t need to read it.

    i will try this book in few months i will see what happens.

    bottom line:
    this book is pretty advanced

     

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow us on Twitter