Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Create two separate hook libraries: folder-copy, and config-manager

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
tooling

Research direction

Start at the installer and inspect the existing code for managing PHPCS installed_paths, then review how phpcs-coding-standard and postInstall hooks are handled. Separate the copy-folders and manage-config approaches behind one public interface, use the composer.json extra entry as the switch, and verify both installer paths honor the selected method.

Written by the indexing model from the issue text.

Description

enhancement help wanted

There are two different ways to manage PHPCS coding standards installation:

  • You can copy the standards folder directly into phpcs's installed path, so they are just "there" for phpcs to use.
  • You can actively manage the entries in phpcs's configuration file for the installed_paths directive, essentially informing phpcs where to find your standards in their "native" composer-installed locations.

The first method is the currently-implemented approach, but the code already exists to perform the second approach as well.

What needs to happen is this:

  • Separate the two approachs out into two different classes, but that share the same public interface (making them interchangeable).
  • Update the installer to check for an extra entry in the project's composer.json file that can be used as a switch to determine which method is preferred by the project (copy-folders or manage-config).
  • Update the installer to use the preferred method. This should apply to both the phpcs-coding-standard type as well as the postInstall hooks.
Dominant language
PHP
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from loadsys/composer-plugins

All issues in loadsys/composer-plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.