SimpleSAMLphp is an award-winning application written in native PHP that deals with authentication.
Template for BBMRI AAI Proxy IdP component
Template for ELIXIR AAI Proxy IdP component