From da3eeef7505e227a915249b1c374c4c546f770db Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Thu, 30 Oct 2025 09:43:56 +0200 Subject: [PATCH] add slim csrf package --- composer.json | 5 +++-- composer.lock | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c539ad4..7c17734 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,7 @@ "php-di/php-di": "^7.1", "php-di/slim-bridge": "^3.4", "slim/psr7": "^1.7", - "slim/twig-view": "^3.4" - }, + "slim/twig-view": "^3.4", + "slim/csrf": "^1.5" + } } diff --git a/composer.lock b/composer.lock index cc7a26b..fc4c3a2 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": "8c2473a9b58764d12ef3cbcad1dd1853", + "content-hash": "82a3632a8a824a0692bfc7f07dd2d951", "packages": [ { "name": "fig/http-message-util", @@ -711,6 +711,64 @@ }, "time": "2019-03-08T08:55:37+00:00" }, + { + "name": "slim/csrf", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/slimphp/Slim-Csrf.git", + "reference": "179cbcf40ee1d246d4906aefed42d3e62066974b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/slimphp/Slim-Csrf/zipball/179cbcf40ee1d246d4906aefed42d3e62066974b", + "reference": "179cbcf40ee1d246d4906aefed42d3e62066974b", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.0 || ^2.0", + "psr/http-server-handler": "^1.0", + "psr/http-server-middleware": "^1.0" + }, + "require-dev": { + "phpspec/prophecy": "^1.19", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^9.6", + "squizlabs/php_codesniffer": "^3.10" + }, + "type": "library", + "autoload": { + "psr-4": { + "Slim\\Csrf\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Josh Lockhart", + "email": "hello@joshlockhart.com", + "homepage": "http://joshlockhart.com" + } + ], + "description": "Slim Framework 4 CSRF protection PSR-15 middleware", + "homepage": "https://www.slimframework.com", + "keywords": [ + "csrf", + "framework", + "middleware", + "slim" + ], + "support": { + "issues": "https://github.com/slimphp/Slim-Csrf/issues", + "source": "https://github.com/slimphp/Slim-Csrf/tree/1.5.0" + }, + "time": "2024-06-08T16:37:18+00:00" + }, { "name": "slim/psr7", "version": "1.7.1",