I've developed Model-View-Controller Membership System (MVCMS framework). It's very simple for learning and can be useful for building more advanced frameworks. Currently it supports a role-based access-control. Demo and documentation are available on my site. You can take a look here: