Skip to content

ucfopen/lti-template-php

Repository files navigation

Join UCF Open Slack Discussions

PHP

  • You can run this locally with php -S localhost:8080

Setup

  • Install Composer if you don't already have it - https://getcomposer.org/
  • run php composer.phar install to install dependencies.
  • Create settings.php based off of the settings.php.template file.

Install LTI

  • Have the XML, consumer key, and secret ready.
    • You can use the XML Config Builder to build XML.
    • We generate an XML file that can be used at localhost:8080/lti.xml.php
  • Navigate to the course that you would like the LTI to be added to. Click Settings in the course navigation bar. Then, select the Apps tab. Near the tabs on the right side, click 'View App Configurations'. It should lead to a page that lists what LTIs are inside the course. Click the button near the tabs that reads '+ App'.
  • A modal should come up that allows you to customize how the app gets added. Change the configuration in the Configuration Type dropdown menu to 'By URL' or 'Paste XML' depending on how you have your LTI configured. If your LTI is publicly accessible, 'By URL' is recommended. From there, fill out the Name and Consumer Keys, and the Config URL or XML Configuration. Click Submit.
  • Your LTI will appear depending on specifications in the XML. Currently, they get specified in the options tag within the extensions tag. Extensions can include these options:
    • Editor Button (visible from within any wiki page editor in Canvas)
    • Homework Submission (when a student is submitting content for an assignment)
    • Course Navigation (link on the lefthand nav)
    • Account Navigation (account-level navigation)
    • User Navigation (user profile)

Note: If you're using Canvas, your version might be finicky about SSL certificates. Keep HTTP/HTTPS in mind when creating your XML and while developing your project. Some browsers will disable non-SSL LTI content until you enable it through clicking a shield in the browser bar or something similar.

Releases

No releases published

Packages

No packages published

Languages