Vendored Composer dependencies for the LibreSign Nextcloud app. PHP-Scoper
isolates these libraries under OCA\Libresign\Vendor\ to avoid namespace
conflicts with Nextcloud and other apps.
For the reviewed, cross-repository procedure, see
Updating vendored dependencies in the LibreSign Developer Manual.
It covers /composer-update, /libresign-pr, /update-3rdparty, required
checks, merge order, signed commits, DCO and recovery. These bot commands
never merge pull requests automatically.
Use a clean, disposable checkout for Composer/PHP-Scoper changes:
- Review
composer.jsonand the intended version; when needed, runcomposer update vendor/package. - Remove existing generated package directories under
composer/andvendor/, then runcomposer install --no-devto regenerate libraries. - Inspect ignored paths before running
git clean -X -d -f; it deletes ignored files. Runcomposer dump-autoload -oafterwards. - Review the manifest, lockfile and generated changes in the source PR. Preserve cryptographically verified, DCO-signed commits.
The cross-repository gitlink update, CI verification and merge procedure are documented in the Developer Manual rather than duplicated here.
- Dependency requirements are defined in
composer.json; downloaded sources live invendor/, and scoped output is generated incomposer/. scoper.inc.phpcontains namespace rules and special handling for Twig, mPDF, phpseclib and PDFParser.- Composer's
post-install-cmdandpost-update-cmdregenerate the scoped libraries. Do not hand-edit generated dependencies.
For troubleshooting, PHP-Scoper can also be invoked explicitly after installing its tooling:
composer bin all install --ansi
php -d error_reporting=E_ALL\&~E_DEPRECATED\&~E_USER_DEPRECATED \
vendor-bin/php-scoper/vendor/humbug/php-scoper/bin/php-scoper add-prefix --force
composer dump-autoload -o