Configuration

CoreExtension

console_dumper_default

Name of the “dumper” (renderer) to use for some CLI commands

Default: "indented"

xdebug_disable

If XDebug should be automatically disabled

Default: true

command

Internal use only - name of the command which was executed

Default: null

ClassToFileExtension

class_to_file.project_root

Root path of the project (e.g. where composer.json is)

Default: "%project_root%"

class_to_file.brute_force_conversion

If composer not found, fallback to scanning all files (very time consuming depending on project size)

Default: true

CodeTransformExtension

code_transform.class_new.variants

Variants which should be suggested when class-create is invoked

Default: []

code_transform.template_paths

Paths in which to look for code templates

Default: ["%project_config%\/templates","%config%\/templates"]

code_transform.indentation

Indentation chars to use in code generation and transformation

Default: "    "

code_transform.refactor.generate_accessor.prefix

Prefix to use for generated accessors

Default: ""

code_transform.refactor.generate_accessor.upper_case_first

If the first letter of a generated accessor should be made uppercase

Default: false

CompletionWorseExtension

completion_worse.completor.class.limit

Suggestion limit for the filesystem based SCF class_completor

Default: 100

completion_worse.disabled_completors

List of completors to disable (e.g. scf_class and declared_function)

Default: []

CompletionExtension

completion.dedupe

If results should be de-duplicated

Default: true

completion.dedupe_match_short_description

If completion.dedupe, match on completion description intead of name

Default: true

completion.limit

Sets a limit on the number of completion suggestions for any request

Default: null

RpcExtension

rpc.store_replay

Default: false

rpc.replay_path

Default: "%cache%\/replay.json"

SourceCodeFilesystemExtension

source_code_filesystem.project_root

Default: "%project_root%"

WorseReflectionExtension

worse_reflection.enable_cache

Default: true

worse_reflection.cache_lifetime

Default: 5

worse_reflection.enable_context_location

Default: true

worse_reflection.cache_dir

Default: "%cache%\/worse-reflection"

worse_reflection.stub_dir

Default: "%application_root%\/vendor\/jetbrains\/phpstorm-stubs"

FilePathResolverExtension

file_path_resolver.project_root

Default: "\/home\/daniel\/www\/phpactor\/phpactor"

file_path_resolver.app_name

Default: "phpactor"

file_path_resolver.application_root

Default: null

file_path_resolver.enable_cache

Default: true

file_path_resolver.enable_logging

Default: true

LoggingExtension

logging.enabled

Default: false

logging.fingers_crossed

Default: false

logging.path

Default: "application.log"

logging.level

Default: "warning"

logger.name

Default: "logger"

logging.formatter

Default: null

ComposerAutoloaderExtension

composer.enable

Include of the projects autoloader to facilitate class location. Note that when including an autoloader code _may_ be executed. This option may be disabled when using the indexer

Default: true

composer.autoloader_path

Path to project’s autoloader, can be an array

Default: "%project_root%\/vendor\/autoload.php"

composer.autoload_deregister

Immediately de-register the autoloader once it has been included (prevent conflicts with Phpactor’s autoloader). Some platforms may require this to be disabled

Default: true

composer.class_maps_only

Register the composer class maps only, do not register the autoloader - RECOMMENDED

Default: true

ConsoleExtension

console.verbosity

Default: 32

console.decorated

Default: null

ExtensionManagerExtension

extension_manager.extension_vendor_dir

Default: "%application_root%\/extensions"

extension_manager.vendor_dir

Default: "%application_root%\/vendor"

extension_manager.config_path

Default: "%application_root%\/extensions.json"

extension_manager.extension_list_path

Default: "%application_root%\/extensions\/extensions.php"

extension_manager.root_package_name

Default: "phpactor-extensions"

extension_manager.minimum_stability

Default: "stable"

extension_manager.repositories

Default: []

extension_manager.quiet

Default: false

WorseReferenceFinderExtension

worse_reference_finder.plain_text_break_chars

Type: array

Default: [" ","\"","'","|","%","(",")","[","]",":","\r\n","\n","\r"]

PhpExtension

php.version

Consider this value to be the project’s version of PHP (e.g. 7.4). If omitted it will check composer.json (by the configured platform then the PHP requirement) before falling back to the PHP version of the current process.

Default: null

LanguageServerExtension

language_server.catch_errors

Default: true

language_server.enable_workspace

If workspace management / text synchronization should be enabled (this isn’t required for some language server implementations, e.g. static analyzers)

Default: true

language_server.session_parameters

Phpactor parameters (config) that apply only to the language server session

Default: []

language_server.method_alias_map

Allow method names to be re-mapped. Useful for maintaining backwards compatibility

Default: []

language_server.diagnostic_sleep_time

Amount of time to wait before analyzing the code again for diagnostics

Default: 1000

LanguageServerCompletionExtension

language_server_completion.trim_leading_dollar

If the leading dollar should be trimmed for variable completion suggestions

Default: false

LanguageServerReferenceFinderExtension

language_server_reference_reference_finder.reference_timeout

Stop searching for references after this time (in seconds) has expired

Default: 10

LanguageServerCodeTransformExtension

language_server_code_transform.import_globals

Show hints for non-imported global classes and functions

Default: false

IndexerExtension

indexer.enabled_watchers

List of allowed watchers. The first watcher that supports the current system will be used

Default: ["watchman","inotify","find","php"]

indexer.index_path

Path where the index should be saved

Default: "%cache%\/index\/%project_id%"

indexer.include_patterns

Glob patterns to include while indexing

Default: ["\/**\/*.php"]

indexer.exclude_patterns

Glob patterns to exclude while indexing

Default: ["\/vendor\/**\/Tests\/**\/*","\/vendor\/**\/tests\/**\/*","\/vendor\/composer\/**\/*"]

indexer.stub_paths

Paths to external folders to index

They will be indexed only once, if you want to take any changes into account you will have to reindex your project manually.

Default: []

indexer.poll_time

For polling indexers only: the time, in milliseconds, between polls (e.g. filesystem scans)

Default: 5000

indexer.buffer_time

For real-time indexers only: the time, in milliseconds, to buffer the results

Default: 500

indexer.project_root

The root path to use for scanning the index

Default: "%project_root%"

indexer.reference_finder.deep

Recurse over class implementations to resolve all references

Default: true

indexer.implementation_finder.deep

Recurse over class implementations to resolve all class implementations (not just the classes directly implementing the subject)

Default: true

BehatExtension

behat.config_path

Default: "%project_root%\/behat.yml"

LanguageServerPhpstanExtension

language_server_phpstan.bin

Default: "%project_root%\/vendor\/bin\/phpstan"

phpstan.level

Default: null