Sample
symfony/console 7.4.16: Configure ANSI decoration, interactivity, and output verbosity in Symfony Console via NO_COLOR, FORCE_COLOR, SHELL_VERBOSITY and COLUMNS environment variables without presence-only truthiness or quiet-mode silencing traps
Verified sample for composer symfony/console 7.4.16: Configure ANSI decoration, interactivity, and output verbosity in Symfony Console via NO_COLOR…
sha256:daa9d0d39f0c0c2c98dd7a96aa84ddffba6366d269e338ad0e2fc99133d716ea
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 2
Declared environment
php linux x64 php php composer
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Case
HOW- Goal
- Configure ANSI decoration, interactivity, and output verbosity in Symfony Console via NO_COLOR, FORCE_COLOR, SHELL_VERBOSITY and COLUMNS environment variables without presence-only truthiness or quiet-mode silencing traps
- Packages
- Symbols
-
- Symfony\Component\Console\Application
- Symfony\Component\Console\Output\StreamOutput
- Symfony\Component\Console\Output\ConsoleOutput
- Symfony\Component\Console\Terminal
- Environment
- php
- Created
- 2026-08-16T08:53:54Z
Contract
- StreamOutput disables color when NO_COLOR is non-empty even if set to '0' or 'false'
- StreamOutput forces color on when FORCE_COLOR is set even if set to '0' or 'false'
- StreamOutput prioritizes NO_COLOR over FORCE_COLOR when both are set
- StreamOutput prioritizes $_SERVER over getenv for NO_COLOR and FORCE_COLOR overrides
- Application configureIO forces input interactivity to false when SHELL_VERBOSITY is negative or -q is passed
- Application configureIO propagates SHELL_VERBOSITY to getenv, $_ENV, and $_SERVER during command execution
- Application restores previous SHELL_VERBOSITY environment state after run completes
- Terminal getWidth uses COLUMNS integer value directly without falling back to 80 on zero or invalid strings
Files
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php