Php – Getting started with a project using Zend Framework

payment-gatewayPHPzend-framework

Ok, I've got Zend all set up and my hello world pages working.

Personally, I'd rather code this from scratch, but I'm trying to find out how to use Zend to save time when making similar projects over and over again.

I want to:

Admin:

  1. Create multiple admin accounts
  2. Have database-stored admin options that will be available on all php pages for both admin and public pages (like global on/off switch for the entire public site, homepage title, guest permissions, etc)

Public:

  1. Have the user be able to create and sign in
  2. User can fill out personal information
  3. Recurring payment processing

My quesiton is, what Zend modules do I want to use? I want to use the zend framework to the best it can and not write any code that I don't have to.

Best Answer

With the exception of the payment processing your app is doing CRUD, so you will likely use the MVC and Db classes of ZF then. For authentication you'd use a Zend_Auth adapter. And thats it already. Of course ZF provides much more classes than that, but given from your description YAGNI.

Also, keep in mind, that ZF promotes a use-at-will architecture. You can take whatever you like from it. It is not a full stack framework though and there is very little automagic in it. ZF can do a lot with some additional work, but if you are looking for something like this out of the box, you are probably better off with Symfony or another full stack framework.

Well, as for the other ZF classes, why not RT*M ;)

Related Topic