Add composer.json with league/commonmark, guzzlehttp/guzzle, phpmailer/phpmailer; wire autoloader into bootstrap; document de-librairisation strategy and PHP extension setup

This commit is contained in:
Pontoporeia
2026-05-20 00:53:37 +02:00
parent 728f05502c
commit 4683ba4116
7 changed files with 4210 additions and 2 deletions

12
TODO.md
View File

@@ -1,5 +1,17 @@
# Current tasks
## De-librairisation — replace custom infrastructure with off-the-shelf libraries
- [x] Write docs/de-librairisation.md strategy document
- [x] Create composer.json with league/commonmark, guzzlehttp/guzzle, phpmailer/phpmailer
- [x] composer install (prod + dev deps)
- [x] Wire vendor/autoload.php into app/bootstrap.php
- [x] Update phpstan.neon (scanDirectories replaces manual Parsedown scan)
- [x] Write docs/system-setup.md (PHP extension requirements)
- [ ] Phase 1: Replace Parsedown with league/commonmark (4 call sites)
- [ ] Phase 2: Replace PeerTubeService HTTP client with Guzzle
- [ ] Phase 3: Replace SmtpRelay SMTP socket with PHPMailer
- [ ] Phase 4 (optional): Replace Crypto with defuse/php-encryption
## justfile: combine phpstan + cs-check + cs-fix into lint-php
- [x] Merge phpstan, cs-check, cs-fix into single lint-php recipe with backward-compat aliases
- [x] Run lint-php + cs-fix, fix all fixable issues (4 real bugs + CS formatting + regenerated baseline)