PHP Package: 24slides/laravel-saml2

A Laravel package for SAML2 authentication integration with easy configuration and robust security features.

Current Version:
Last Updated:
PHP Requirement: >=7.1
Dependencies: simplesamlphp/simplesamlphp, onelogin/php-saml, laravel/framework
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The Laravel SAML2 package provides seamless integration of SAML2 authentication in Laravel applications, ensuring secure and efficient user authentication. With comprehensive configuration options and robust security features, it simplifies the implementation of SAML2 authentication. This package offers a reliable solution for single sign-on (SSO) integration in Laravel projects, enhancing user experience and system security.

🔗 View on GitHub

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/24slides/laravel-saml2/lib_version/autoload.php';

use OneLogin\Saml2\Auth;
use OneLogin\Saml2\Response;
use OneLogin\Saml2\Settings;
use OneLogin\Saml2\Error;
use OneLogin\Saml2\Utils;
use OneLogin\Saml2\ValidationError;
use OneLogin\Saml2\Constants;
use OneLogin\Saml2\IdPMetadataParser;
use OneLogin\Saml2\Metadata;
use OneLogin\Saml2\NameIdFormat;
use OneLogin\Saml2\Utils\Redirect;
use OneLogin\Saml2\Utils\SettingsManager;
use OneLogin\Saml2\Utils\Redirect;
use OneLogin\Saml2\Utils\SettingsManager;
use OneLogin\Saml2\Utils\SettingsBuilder;
use OneLogin\Saml2\Utils\Settings;
use OneLogin\Saml2\Utils\Error;
use OneLogin\Saml2\Utils\Constants;
use OneLogin\Saml2\Utils\Crypto;
use OneLogin\Saml2\Utils\Tools;
use OneLogin\Saml2\Utils\URL;


$obj = new OneLogin\Saml2\Auth();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.