1<?php
2
3// Create an __autoload function
4// (can conflicts other autoloaders)
5// http://php.net/manual/en/language.oop5.autoload.php
6
7$libDir = __DIR__ . '/lib/Saml2/';
8$extlibDir = __DIR__ . '/extlib/';
9
10// Load composer
11if (file_exists(__DIR__ .'/vendor/autoload.php')) {
12    require __DIR__ . '/vendor/autoload.php';
13}
14
15// Load now external libs
16require_once $extlibDir . 'xmlseclibs/xmlseclibs.php';
17
18$folderInfo = scandir($libDir);
19
20foreach ($folderInfo as $element) {
21    if (is_file($libDir.$element) && (substr($element, -4) === '.php')) {
22        include_once $libDir.$element;
23        //break;
24    }
25}
26