PHP code example of smtech / lti-configuration-xml

1. Go to this page and download the library: Download smtech/lti-configuration-xml 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/ */

    

smtech / lti-configuration-xml example snippets


/* display a simple configuration */
$config = new \smtech\LTI\Configuration\Generator(
    'My Spiffy Tool',
    'my-spiffy-tool',
    'https://example.com/my-spiffy-tool/launch.php'
);
header('Content-type: application/xml');
echo $config->saveXML();
exit;