ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

Add `dflydev/fig-cookies` as composer Dependency for ILIAS 12

Open chfsx opened this issue 1 month ago • 1 comments

Assessment: dflydev/fig-cookies is a lightweight PHP library that simplifies cookie handling by providing a PSR-7-compliant interface for working with cookies in HTTP requests and responses.

General Information:

  • Name of the dependency: dflydev/fig-cookies
  • Version: v3.1.0
  • [X] this dependency was already used in ILIAS.
  • [X] the dependency's license is compatible with ILIAS' license: MIT

Type of dependency:

  • [X] composer
  • [ ] npm

Usage:

  • \ILIAS\HTTP\Services

Reasoning: The library ensures that cookie management in ILIAS remains consistent and standardized across the project, offering easy integration with other PSR-7-compliant libraries, and providing a clean API for setting, getting, and deleting cookies.

Maintenance: Last update of the Library: 2023-07-18, PHP Version: ^7.2 || ^8.0

Links:

  • Packagist: https://packagist.org/packages/dflydev/fig-cookies
  • GitHub: https://github.com/dflydev/dflydev-fig-cookies.git
  • Documentation:

Alternatives: Alternatives like native PHP functions (setcookie, $_COOKIE) are simpler but lack the structured and modern approach of dflydev/fig-cookies, while libraries like symfony/http-foundation are more comprehensive but may be overkill for basic cookie management, making dflydev/fig-cookies a more efficient and lightweight choice for ILIAS.

chfsx avatar Dec 05 '25 15:12 chfsx

Jour Fixe, 08 DEC 2025: Dependency is accepted for ILIAS 12.

matthiaskunkel avatar Dec 08 '25 14:12 matthiaskunkel