Need to change: $as = new SimpleSAML_Auth_Simple($samlparam->sp_source); to $as = new \SimpleSAML\Auth\Simple($samlparam->sp_source); in index.php.