2017 © Pedro PelĂĄez
 

library saml2

SAML2 PHP library from SimpleSAMLphp

image

simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

  • Thursday, July 12, 2018
  • by jaime
  • Repository
  • 28 Watchers
  • 158 Stars
  • 1,056,114 Installations
  • PHP
  • 14 Dependents
  • 0 Suggesters
  • 95 Forks
  • 10 Open issues
  • 77 Versions
  • 14 % Grown

The README.md

SimpleSAMLphp SAML2 library

CI Scrutinizer Code Quality Coverage Status Type coverage Psalm Level, (*1)

A PHP library for SAML2 related functionality., (*2)

It is used by several products, most notably SimpleSAMLphp and OpenConext., (*3)

Before you use it

DO NOT USE THIS LIBRARY UNLESS YOU ARE INTIMATELY FAMILIAR WITH THE SAML2 SPECIFICATION., (*4)

If you are not familiar with the SAML2 specification and are simply looking to connect your application using SAML2, you should probably use SimpleSAMLphp., (*5)

Note that the HTTP Artifact Binding and SOAP client do not work outside of SimpleSAMLphp., (*6)

Which version to pick?

The latest released version (4.x range) is the preferred version. The 3.x branch is our LTS branch and will be supported as long as supported releases of SimpleSAMLphp are using this branch., (*7)

All other branches (3.x and earlier) are no longer supported and will not receive any maintenance or (security) fixes. Do not use these versions., (*8)

We conform to Semantic Versioning. Be sure to check the UPGRADING.md file if you are upgrading from an older version. Here you will find instructions on how to deal with BC breaking changes between versions., (*9)

Usage

  • Install with Composer, run the following command in your project:
composer require simplesamlphp/saml2:^4.0
  • Provide the required external dependencies by extending and implementing the \SimpleSAML\SAML2\Compat\AbstractContainer then injecting it in the ContainerSingleton (see example below)., (*10)

  • Make sure you've read the security section below., (*11)

  • Use at will., (*12)

Example:, (*13)

    // Use Composers autoloading
    require 'vendor/autoload.php';

    // Implement the Container interface (out of scope for example)
    require 'container.php';
    \SimpleSAML\SAML2\Compat\ContainerSingleton::setContainer($container);

    // Create Issuer
    $issuer = new \SimpleSAML\SAML2\XML\saml\Issuer('https://sp.example.edu');

    // Instantiate XML Random utils
    $randomUtils = new \SimpleSAML\XML\Utils\Random();

    // Set up an AuthnRequest
    $request = new \SimpleSAML\SAML2\XML\samlp\AuthnRequest(
        $issuer,
        $randomUtils->generateId(),
        null,
        'https://idp.example.edu'
    );

    // Send it off using the HTTP-Redirect binding
    $binding = new \SimpleSAML\SAML2\HTTPRedirect();
    $binding->send($request);

License

This library is licensed under the LGPL license version 2.1. For more details see LICENSE., (*14)

The Versions

12/07 2018

dev-master

9999999-dev

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1 LGPL-2.1-or-later

The Requires

 

The Development Requires

12/07 2018

v3.2

3.2.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

04/05 2018

v3.1.6

3.1.6.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

18/04 2018

v3.1.5

3.1.5.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

02/03 2018
02/03 2018
02/03 2018

v3.1.4

3.1.4.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

26/02 2018

v3.1.3

3.1.3.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

26/01 2018

v3.1.2

3.1.2.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

25/01 2018
23/12 2017

dev-tests/fix-coveralls

dev-tests/fix-coveralls

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

06/12 2017
01/12 2016
07/10 2014

v0.5.0

0.5.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

07/10 2014

v1.4.0

1.4.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

07/08 2014

v0.4.2

0.4.2.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

07/08 2014

v1.3.2

1.3.2.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

26/02 2014

v0.4.1

0.4.1.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

26/02 2014

v1.3.1

1.3.1.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

21/02 2014

v0.4.0

0.4.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

21/02 2014

v1.3.0

1.3.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

27/01 2014

v0.3.0

0.3.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

27/01 2014

v1.2.0

1.2.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

12/11 2013
12/11 2013