Skip to content

feat(config): #59 keep only the settings - #60

Merged
Stanislas-Poisson merged 5 commits into
developfrom
feature/#59-settings-only
Nov 14, 2026
Merged

Stanislas-Poisson merged 5 commits into
developfrom
feature/#59-settings-only

Conversation

@Stanislas-Poisson

@Stanislas-Poisson Stanislas-Poisson commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #59

Summary

php-dev-tools is organised like js-dev-tools: it holds the settings of the tools, and the package above it holds the commands, the Git hooks and the make targets.

  • The command, the hooks, Makefile.inc and init are removed. A copy is kept for the package of the commands.
  • The thin files have the names of the tools and point to the base in config/. pint.json is a copy of the base, checked by a test.
  • PHP 8.4 is the lowest version.
  • The tools are raised, which fixes the advisories of symfony/filesystem and symfony/http-client.
  • The files follow the handbook (.gitignore, .gitattributes, .editorconfig, LICENSE, SECURITY.md), and the icon and the banner are in assets/.
  • The tests follow the handbook (#[Test] and it_), with a structure test of the repository.
  • The changelog is removed: the notes of a release are generated.

Checks

  • composer quality passes.
  • The tests cover the change, and the coverage of src/ is still 100 % (the tests pass; the coverage was not measured).
  • The documentation is up to date (README).
  • The commits follow type(scope): #TICKET subject, with a subject of 50 characters at most.
  • The pull request targets develop.

Not validated

  • This is a breaking change: laravel-dev-tools reads the Git hooks from this package, and KMark, PPTX-Enigma and French-Postal-Code-Package use vendor/bin/php-dev-tools, init and make. They have to move to another package before they take 2.0.0.
  • The release and the tag are not part of this pull request.
  • The coverage of src/ was not measured in the container (no coverage driver).

The helper removed the files of a directory with glob(GLOB_BRACE),
which musl (Alpine) does not define: every test that used it failed
in the zairakai/php image. scandir() works everywhere.
Align the repository files on the handbook and on js-dev-tools:

- .gitignore: the standard block, then the groups of the repository.
- .gitattributes: LF, readable Markdown diffs, PNG as binary, and the
  files left out of the archive, grouped.
- .editorconfig: no line length for Markdown, no Makefile section.
- LICENSE and SECURITY.md like js-dev-tools.
- No long dash in the comments of config/phpinsights.php.
- The changelog is removed: the notes of a release are generated.
- The pull request template asks for a subject of 50 characters.
The same design as js-dev-tools, with the colours of Pint, PHPStan,
Rector, PHP Insights and markdownlint. The SVG and the PNG of each.
php-dev-tools is organised like js-dev-tools: it holds the settings
of the tools, and the package above it holds the commands, the Git
hooks and the make targets.

- Remove bin/, hooks/, Makefile.inc, init and the command classes.
- Name the thin files like the tools (no .dist) and point them to the
  base in config/. pint.json is a copy of the base, checked by a test.
- Add .markdownlintignore, and ignore docs/ when linting.
- Raise the tools to their latest versions, which fixes the advisories
  of symfony/filesystem and symfony/http-client. composer audit
  reports the high and critical ones only.
- PHP 8.4 is the lowest version.
- Describe the package, its keywords and its scripts as settings.
- Name the tests like the handbook (#[Test] and it_) and add the
  structure test of the repository.
- Colour the neon blocks of the documentation as YAML.

BREAKING CHANGE: the command php-dev-tools, its hooks, Makefile.inc
and init are removed, and PHP 8.4 is the lowest version. laravel-dev-tools
and the projects without Laravel must take them from another package.

Closes #59
PHP 8.4 is the lowest version: the PHP 8.3 job cannot install the
package any more.
@Stanislas-Poisson
Stanislas-Poisson merged commit 3c5d0f6 into develop Nov 14, 2026
6 checks passed
@Stanislas-Poisson
Stanislas-Poisson deleted the feature/#59-settings-only branch November 14, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant