2017 © Pedro Peláez
 

symfony-bundle lti-consumer-bundle

This bundle is a consumer setup for the LTI protocol

image

intracto/lti-consumer-bundle

This bundle is a consumer setup for the LTI protocol

  • Wednesday, June 20, 2018
  • by tvlooy
  • Repository
  • 5 Watchers
  • 0 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 61 % Grown

The README.md

LTIConsumerBundle

This bundle can be used to establish LTI (version 1) connections to an e-learning tool provider., (*1)

How to install?

Install the bundle via composer, (*2)

composer require intracto/lti-consumer-bundle

Enable the bundle, (*3)

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        $bundles = array(
            // ...,
            new Intracto\LTIConsumerBundle\LTIConsumerBundle(),
        );

        // ...
    }
}

Routing:, (*4)

    intracto_lti_consumer_launch:
        path:     /lti/launch
        defaults: { _controller: intracto.lti.controller:launchAction }

How to get started?

Fill in parameters.yml

# allows you to send custom parameters to the launch action and include them with the LTI request.
intracto_lti.custom_parameters:
    aCustomParameterName: ltiFieldName
intracto_lti.provider:
    keys:
        url: 'launch-url-toolprovider-connect'
        base_url: 'base-url-toolprovider-connect'
        key: key-provided-by-tool-provider
        secret: secret-provided-by-tool-provder
    parameters:
        lti_version: LTI-1p0
        resource_link_id: ToolProvider
        resource_link_title: ToolProvider
        tool_consumer_info_version: '1.1'
        tool_consumer_instance_guid: your-instance-guid
        tool_consumer_instance_description: your-instance-name

Create action in Controller

public function openElearningAction($elearningId)
{

    return $this->render(
        '@App/Elearning/e_learning.html.twig',
        [
            'tool_url' => $this->generateUrl(
                'intracto_lti_consumer_launch',
                [
                    'email' => $this->getUser()->getUsername(),
                    'aCustomParameterName' => $elearningId,  // $elearningId will be sent with the LTI connection as 'ltiFieldName' because of intracto_lti.custom_parameters
                ]
            )
        ]
    );
}

Create a template 'e_learning.html.twig'

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Elearning</title>
</head>
<body>
<header class="e-learning">
    <h1 class="e-learning__title">{{ 'e_learning.page_title'|trans }}</h1>
</header>





</body>
</html>

Create a template 'app/Resources/LTIConsumerBundle/views/index.html.twig'

This template will be used by the bundle to do the connect-request and to load the LTI provider into an iframe in your application, (*5)

{{ form(form,{'attr': {'id': 'lti_form'}}) }}


{{ 'lti.launch.message'|trans }}, (*6)

The Versions

20/06 2018

dev-master

9999999-dev https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

20/06 2018

v2.0.2

2.0.2.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

20/06 2018

v2.0.1

2.0.1.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

20/06 2018

v2.0

2.0.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

19/06 2018

v1.4

1.4.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

04/06 2018

1.3

1.3.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

31/05 2018

v1.2

1.2.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

31/05 2018

v1.1

1.1.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer

09/02 2018

v1.0

1.0.0.0 https://github.com/intracto

This bundle is a consumer setup for the LTI protocol

  Sources   Download

MIT

The Requires

 

by Mats Vanspringel
by Yves Maerschalck

lti software consumer