yiisoft / yiisoft/config

Autocomplete for class configuration

Open
#114 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
PHP
Stars
34
Forks
9
Avg merge
1h 7m
Merged PRs (30d)
1

Description

Hi,
Yii2 has very useful plugin for best/most popular PHP IDE - PhpStorm, https://plugins.jetbrains.com/plugin/9388-yii2-support

Any chance to provide one for Yii3 to have autocomplete in config files - to set class properties, __construnct() etc. ?

Main goal is to type faster, do less typos and got mistakes highlighted.

Examples:

<?php

return [
    'components' => [
        'db' => [
            'class' => \my\Db::class,
            'name' => 'foo', // <-- autocomplete
            'password' => 'boo', // <-- autocomplete
        ],
    ],
];
return [
    LoggerInterface::class => [
        'class' => Logger::class,
        '__construct()' => [ // <-- autocomplete
            'targets' => ReferencesArray::from([ // <-- autocomplete
                FileTarget::class,
            ]),
        ],
    ],
];

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the configuration examples in the issue and the linked Yii2 Support PhpStorm plugin to understand the requested autocomplete behavior. Define the Yii3 configuration cases to support, including class properties, constructor arguments, and nested references, and consider how completion and typo highlighting would be delivered for PhpStorm.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.