{"id":19081497,"url":"https://github.com/intracto/lticonsumerbundle","last_synced_at":"2025-07-29T11:09:51.950Z","repository":{"id":49445976,"uuid":"120307750","full_name":"Intracto/LTIConsumerBundle","owner":"Intracto","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-11T13:34:50.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-02T03:37:54.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Intracto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-05T13:22:50.000Z","updated_at":"2024-07-11T13:34:04.000Z","dependencies_parsed_at":"2024-11-09T02:36:40.515Z","dependency_job_id":"aa06f91a-f4e4-49db-a3e7-0d55a5ac765e","html_url":"https://github.com/Intracto/LTIConsumerBundle","commit_stats":{"total_commits":25,"total_committers":5,"mean_commits":5.0,"dds":0.6,"last_synced_commit":"a0aadc3ef227eecc586c8d2f0a5814683868f336"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Intracto/LTIConsumerBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FLTIConsumerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FLTIConsumerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FLTIConsumerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FLTIConsumerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intracto","download_url":"https://codeload.github.com/Intracto/LTIConsumerBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FLTIConsumerBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267677345,"owners_count":24126313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T02:36:35.040Z","updated_at":"2025-07-29T11:09:51.916Z","avatar_url":"https://github.com/Intracto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LTIConsumerBundle\n\nThis bundle can be used to establish [LTI (version 1)](https://www.imsglobal.org/activity/learning-tools-interoperability) connections to an e-learning tool provider.  \n\n## How to install?\n\nInstall the bundle via composer\n```bash\ncomposer require intracto/lti-consumer-bundle\n```\nEnable the bundle\n```php\n// app/AppKernel.php\n\n// ...\nclass AppKernel extends Kernel\n{\n    // ...\n\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...,\n            new Intracto\\LTIConsumerBundle\\LTIConsumerBundle(),\n        );\n\n        // ...\n    }\n}\n```\n\nRouting:\n\n```yaml\n    intracto_lti_consumer_launch:\n        path:     /lti/launch\n        defaults: { _controller: intracto.lti.controller:launchAction }\n```\n\n## How to get started?\n\n### Fill in parameters.yml\n\n```yaml\n# allows you to send custom parameters to the launch action and include them with the LTI request.\nintracto_lti.custom_parameters:\n    aCustomParameterName: ltiFieldName\nintracto_lti.provider:\n    keys:\n        url: 'launch-url-toolprovider-connect'\n        base_url: 'base-url-toolprovider-connect'\n        key: key-provided-by-tool-provider\n        secret: secret-provided-by-tool-provder\n    parameters:\n        lti_version: LTI-1p0\n        resource_link_id: ToolProvider\n        resource_link_title: ToolProvider\n        tool_consumer_info_version: '1.1'\n        tool_consumer_instance_guid: your-instance-guid\n        tool_consumer_instance_description: your-instance-name\n```\n\n### Create action in Controller\n\n```php\npublic function openElearningAction($elearningId)\n{\n\n    return $this-\u003erender(\n        '@App/Elearning/e_learning.html.twig',\n        [\n            'tool_url' =\u003e $this-\u003egenerateUrl(\n                'intracto_lti_consumer_launch',\n                [\n                    'email' =\u003e $this-\u003egetUser()-\u003egetUsername(),\n                    'aCustomParameterName' =\u003e $elearningId,  // $elearningId will be sent with the LTI connection as 'ltiFieldName' because of intracto_lti.custom_parameters\n                ]\n            )\n        ]\n    );\n}\n\n```\n\n### Create a template 'e_learning.html.twig'\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003ctitle\u003eElearning\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cheader class=\"e-learning\"\u003e\n    \u003ch1 class=\"e-learning__title\"\u003e{{ 'e_learning.page_title'|trans }}\u003c/h1\u003e\n\u003c/header\u003e\n\u003ciframe class=\"page\" src=\"{{ tool_url }}\" width=\"100%\" height=\"100%\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen\u003e\u003c/iframe\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\n```\n\n### Create a template 'app/Resources/LTIConsumerBundle/views/index.html.twig'\n\nThis template will be used by the bundle to do the connect-request and to load the LTI provider into an iframe in your application\n\n```html\n{{ form(form,{'attr': {'id': 'lti_form'}}) }}\n\u003cp\u003e{{ 'lti.launch.message'|trans }}\u003c/p\u003e\n\u003cscript src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    (function($) {\n        $('#lti_form').submit();\n    })(jQuery);\n\u003c/script\u003e\n\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Flticonsumerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintracto%2Flticonsumerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Flticonsumerbundle/lists"}