tags:

views:

1395

answers:

5

I am looking for role based access and work flow engine that allows for simple configuration.

A: 

Do you mean a php framework that'll make roles easy ? I'd suggest Symfony. A sample security.yml file looks like

all:
  is_secure:  on
  credentials: Admin

The security files also cascade, so you can put this on the highest level (App level) and override it on a module or page level.

Or am I totally off ?

sjobe
I am looking for something that can be used across the application as a way to allow or deny access to a set of functions on the PHP pages.
CodeToGlory
You want to do this on a per function level instead of a per php-script/page level ?
sjobe
I'd say you've some design flaw when you want to do this on function level. I mean, the user can't choose which functions your script is gonna call. ;-)
Philippe Gerber
+2  A: 

I would recommend ezComponents workflow. We built an intranet application using it and it was quite easy to use. The documentation is awesome and it has very active community.

Shoan
A: 

PHP acl worked really well for me. several open source projects are using it like joomla, in the other hand cakephp take the code model to make it own acl system

Gabriel Sosa
+1  A: 

i use the Zend Framework, so i guess to create auth/roles/resources/acl, i will use the respective classes

to determine if a user (role) is allowed access to a resource, do something like

// setup variables
$acl = new Zend_Acl();
$adminRole = new Zend_Acl_Role("admin");
$adminResource = new Zend_Acl_Resource("adminResource");

// add roles, resources to acl
$acl->addRole($adminRole);
$acl->addResource($adminResource);

// add rules
$acl->allow($adminRole, $adminResource);

// query acl
echo $acl->isAllowed($adminRole, $adminResource) ? "allowed" : "denied"; // allowed

something like above

iceangel89
This deals with auth and roles, what about enforcing a workflow?
tpk
A: 

I just opened a new open source project for process management in PHP. The project supports PHP based application server and business process management.

http://code.google.com/p/ezerphp/

Tan-Tan