PHP code example of tvdijen / simplesamlphp-module-cmdotcom

1. Go to this page and download the library: Download tvdijen/simplesamlphp-module-cmdotcom library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tvdijen / simplesamlphp-module-cmdotcom example snippets


    'module.enable' => [
         'cmdotcom' => true,
         …
    ],

    90 => [
        'class' => 'cmdotcom:OTP',
        'productToken' => 'secret',
        'mobilePhoneAttribute' => 'mobile',
        'originator' => 'CM Telecom',
        'validFor' => 600,
        'defaultRegion' => 'NL',
    ],