Configuring Composer
Point Composer at the Seal Artifact Server by replacing the Packagist repository.
Last updated
Point Composer at the Seal Artifact Server by replacing the Packagist repository.
Composer configures package sources through the composer config command. The Seal source replaces the default Packagist repository, and authentication is set separately as an HTTP Basic credential.
From the project root, run:
# Configure the Seal repository as the default
composer config repos.packagist composer https://packagist.sealsecurity.io/
# Configure HTTP Basic credentials for the Seal host
composer config --auth http-basic.packagist.sealsecurity.io <project-id> <token>Replace <project-id> with the Seal Project ID and <token> with your production token.
The first command writes the repository to the project's composer.json. The second writes the credentials to auth.json (project-local) or ~/.composer/auth.json (global). Keep auth.json out of version control.
A clean composer install resolves packages from packagist.sealsecurity.io. Run with -v to see the URL Composer is fetching from.
Editing dependency files manually: pinning sealed versions in composer.json.
Last updated