An implementation of PAM in PHP