Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions content/doc/applications/php/composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@

You can find more documentation about Composer configuration in the [Composer schema reference](https://getcomposer.org/doc/04-schema.md).

## Private repositories

If your project depends on packages from private repositories (such as [Packagist.com](https://packagist.com/), Laravel Nova, or a private Git host), you need to configure authentication for Composer during deployment. Set the `COMPOSER_AUTH` environment variable in the Clever Cloud console with a JSON object containing your credentials. Composer reads this variable natively at install time, so you don't need to commit any secret to your repository.

> [!WARNING]
> Do not use an `auth.json` file committed to your repository. This approach exposes credentials in your version control history. The `COMPOSER_AUTH` environment variable is the recommended method.

Check notice on line 85 in content/doc/applications/php/composer.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/php/composer.md#L85

[Google.Contractions] Use 'don't' instead of 'Do not'.
Raw output
{"message": "[Google.Contractions] Use 'don't' instead of 'Do not'.", "location": {"path": "content/doc/applications/php/composer.md", "range": {"start": {"line": 85, "column": 3}}}, "severity": "INFO"}

The JSON structure follows the [Composer authentication schema](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).

## Post-build hook example

You use Artisan to manage your project and you want to execute *artisan migrate* before running your app.
Expand Down
Loading