From 9b0ff7d65f837335fd42eb7a8316857230394ede Mon Sep 17 00:00:00 2001 From: "Daniel Cazalla (ZallaxDev)" <86362063+ZallaxDev@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:26:16 +0200 Subject: [PATCH] LTI: Adding LTI-PHP dependency to composer.json and update composer.lock We integrate the LTI-PHP dependency as it is required for the operation of the LTI and LTIConsumer components. This dependency is secure as it is supported by a foundation composed by different prestigious institutions (JISC-Funded). It has extensive support for all available LTI versions and guarantees compatibility with future versions due to its commitment to the world of eLearning. We believe that the choice of this dependency over others is ideal for several factors, among which are the simplicity for the functionality required of them within the LTI component and their background with a team coming directly from the world of eLearning and open-source. Its development is active and has very recent updates. The inclusion of these dependencies will allow the removal of the 'src' folder included in the LTI component and will facilitate the updating of these components in the future. --- composer.json | 3 ++- composer.lock | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4efead46a9a3..9112ed48c968 100755 --- a/composer.json +++ b/composer.json @@ -72,7 +72,8 @@ "simplesamlphp/simplesamlphp": "^2.2.0", "phpunit/phpunit": "^10.5", "monolog/monolog": "^2.9.3", - "phpoffice/phpspreadsheet": "^2.2" + "phpoffice/phpspreadsheet": "^2.2", + "celtic/lti": "^5.0.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.40", diff --git a/composer.lock b/composer.lock index 6bddb691db66..7d41f6490f09 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9d1fe43363bd0eaf4b28cb79f415045d", + "content-hash": "a76d50e264734da04e87304c7c061beb", "packages": [ { "name": "apereo/phpcas", @@ -137,6 +137,51 @@ ], "time": "2023-11-29T23:19:16+00:00" }, + { + "name": "celtic/lti", + "version": "v5.1.3", + "source": { + "type": "git", + "url": "https://github.com/celtic-project/LTI-PHP.git", + "reference": "b5a4bc14328899086a8b065b1da9b558a935ee10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/celtic-project/LTI-PHP/zipball/b5a4bc14328899086a8b065b1da9b558a935ee10", + "reference": "b5a4bc14328899086a8b065b1da9b558a935ee10", + "shasum": "" + }, + "require": { + "firebase/php-jwt": "^6.8", + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "ceLTIc\\LTI\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Stephen P Vickers", + "email": "stephen@spvsoftwareproducts.com" + } + ], + "description": "PHP class library for building LTI integrations", + "homepage": "https://github.com/celtic-project/LTI-PHP", + "keywords": [ + "LTI" + ], + "support": { + "issues": "https://github.com/celtic-project/LTI-PHP/issues", + "source": "https://github.com/celtic-project/LTI-PHP/tree/v5.1.3" + }, + "time": "2024-10-03T23:03:24+00:00" + }, { "name": "cweagans/composer-patches", "version": "1.7.3",