2017 © Pedro Peláez
 

library reflexive-canvas-lti

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

image

smtech/reflexive-canvas-lti

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  • Thursday, June 8, 2017
  • by battis
  • Repository
  • 4 Watchers
  • 4 Stars
  • 124 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

ReflexiveCanvasLTI

Latest Version Scrutinizer Code Quality, (*1)

Abandoned

This project has not been actively maintained since the spring of 2017, when Seth Battis changed roles and was no longer working in a Canvas (or other LTI-capable) environment. Other interested developers are welcome to take up the torch, if interested., (*2)

Meanwhile, I observe that Steven Vickers has released an updated version of his PHP LTI Tool Provider that can serve as a base for further LTI development using PHP., (*3)

About

LTI tool provider class that includes the \"reflexive\" reach back into Canvas via the API., (*4)

Full documentation in repository., (*5)

This is one of two packages that are meant to facilitate and accelerate LTI development in PHP, allowing for built-in "reflexive" access to the Canvas APIs from the LTI Tool Provider., (*6)

  1. This package, smtech/reflexive-canvas-lti is the "plain vanilla" version. That is: it's pure object-oriented goodness with no GUI to add any idiosyncratic flavoring to the process. That makes it a touch more limited, but also (one hopes) more reusable in the grand scheme of things.
  2. The other package, smtech/stmarks-reflexive-canvas-lti provides a bunch of handy GUI add-ons, including Smarty templating (via smtech/stmarkssmarty, the St. Mark's-styled extension of my generic battis/bootstrapsmarty package that provides easy access to Bootstrap within Smarty templates). Additionally, this package, as it provides a GUI inherently, also provides some handy interactive control panels:

How to choose?

It comes down to whether you like building web pages the way I like building web pages (striving for real Model-View-Controller separation, to make my code easier to read/understand), or if you have another paradigm that you prefer. If you like my way, I would recommend extending smtech/stmarks-reflexive-canvas-lti to including branding appropriate for your own institution and using that. If not, or if you are trying to avoid GUI-entanglements, this "plain vanilla" package fits the bill., (*7)

Sample code

In the examples directory you will find two example tool providers:, (*8)

  1. tool-provider shows an example of an LTI Tool Provider constructed with the "plain vanilla" package (this one).
  2. stmarks-tool-provider shows the same example, tweaked to use smtech/stmarks-reflexive-canvas-lti instead -- which I think is cleaner, easier and simpler. But I'm biased.

Composer Fiddly-bits

Nota bene: Because Stephen Vickers hasn't yet published his LTI_Tool_Provider via Composer, I think the best way to incorporate his code is to replicate the following within your own composer.json file. (That way, when smtech/reflexive-canvas-lti depends on spvsoftwareproducts/LTI_Tool_Provider, Composer will know what we're all taking about.), (*9)

Also: to download the spvsoftwareproducts/LTI_Tool_Provider package from its central repository, you have to allow non-HTTPS downloads, which is a bit of a security hole. Not the end of the world, but not Best Practices, either., (*10)

"config": {
    "secure-http": false
},
"repositories": [
    {
        "type": "package",
        "package": {
            "name": "spvsoftwareproducts/LTI_Tool_Provider",
            "version": "2.5.01",
            "dist": {
                "url": "http://projects.oscelot.org/gf/download/frsrelease/956/6025/LTI_Tool_Provider-2.5.01.zip",
                "type": "zip"
            },
            "license": "LGPL-3.0",
            "authors": [
                {
                    "name": "Stephen Vickers"
                }
            ],
            "homepage": "http://spvsoftwareproducts.com/php/lti_tool_provider/",
            "autoload": {
                "classmap": [""]
            }
        }
    }
]

And also:, (*11)

"require": {
    "smtech/reflexive-canvas-lti": "~1.0"
}

The Versions

08/06 2017

dev-master

9999999-dev

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

08/06 2017

dev-develop

dev-develop

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

05/06 2017

v1.0.8

1.0.8.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

31/05 2017

v1.0.7

1.0.7.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

17/05 2017

v1.0.6

1.0.6.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

16/03 2017

v1.0.5

1.0.5.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

18/08 2016

v1.0.4

1.0.4.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

11/08 2016

v1.0.3

1.0.3.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

01/08 2016

v1.0.2

1.0.2.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

22/07 2016

v1.0.1

1.0.1.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis

21/07 2016

v1.0

1.0.0.0

LTI tool provider class that includes the "reflexive" reach back into Canvas via the API

  Sources   Download

LGPL-3.0

The Requires

 

by Seth Battis