Directories and Files
Directory for configuration filesOverrides the default XDG config directory location.
Directory for data files (PHP manual, etc.)
Directory for temporary runtime files
Path to the readline history file
Path to the PHP manual database fileSupports both v3 format (
.php) and legacy v2 format (.sqlite).History Management
Maximum number of history entries to saveSet to
0 for unlimited history.Remove duplicate entries from historyWhen enabled, only the most recent instance of a command is kept.
Input and Output
Control colored outputValid values:
'auto', 'forced', 'disabled'Control interactive inputValid values:
'auto', 'forced', 'disabled'Output verbosity level
Use raw var_export style output (non-interactive mode only)
Output pager command for long outputDefaults to
cli.pager ini value or auto-detects less.Readline Configuration
Enable readline support for line editingAutomatically disabled if readline extension is not available.
Enable bracketed paste mode (GNU readline only)When working, prevents tabs from autocompleting and newlines from executing during paste. Can be unstable.
Enable tab completion
Code Execution
Enable process control (pcntl) for forking code executionAutomatically disabled when XDebug debugger is active.
Require semicolons at the end of statementsBy default, PsySH auto-inserts semicolons when missing.
Enable strict type declarationsEquivalent to
declare(strict_types=1) in PHP.Run with minimal input validation
You probably don’t want this. It disables important safety checks.
Error reporting level for automatic loggingBy default, PsySH logs all errors regardless of
error_reporting level.Code Cleaning and Analysis
Custom CodeCleaner instance for input validation
Automatically add use statements for unqualified class referencesWorks best with
--warm-autoload to pre-load classes.Display and Presentation
Custom prompt string
Deprecated: Use
theme configuration instead. This option is maintained for backward compatibility.Custom output formatter styles
Deprecated: Use
theme configuration instead.Use Unicode characters in PsySH output
Always show array indexes in output, even for sequential arrays
Startup and Messages
Files to include automatically at startup
Custom message to display at startup
Project Trust and Security
Control loading of local project configurations
Autoload Warming
Pre-load classes for better tab completionRequires project trust for Composer autoload files.
Logging
Log PsySH input and execution
Update Checking
How often to check for PsySH updates
How often to check for PHP manual updates
Advanced Configuration
Emit warnings when multiple config files are foundHelps identify conflicting configuration files.