composer require duon/dev./vendor/bin/docs-test-runner path/to/docs/snippetsAdd the following to your .php-cs-fixer.dist.php:
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()->in([__DIR__ . '/src', __DIR__ . '/tests']);
$config = new Duon\Development\PhpCsFixer\Config();
return $config->setFinder($finder);psy/psyshA REPL for PHP
This package provides a centralized way to manage configuration files (like .editorconfig, .markdownlint.jsonc, etc.) across all projects. Instead of manual copying, use the built-in Config helper via Composer.
Add the sync command to your project's composer.json file. It will install the default configs whenever composer install or composer update is run.
{
"scripts": {
"post-install-cmd": [
"Duon\\Development\\Config::sync"
],
"post-update-cmd": [
"Duon\\Development\\Config::sync"
]
}
}
To also install .prettierrc, add the prettier script alongside sync.
{
"scripts": {
"post-install-cmd": [
"Duon\\Development\\Config::sync",
"Duon\\Development\\Config::prettier"
],
"post-update-cmd": [
"Duon\\Development\\Config::sync",
"Duon\\Development\\Config::prettier"
]
}
}Note: Config does not overwrite existing files. Delete the file you want to re-deploy and re-run Composer.
To ensure the "Source of Truth" remains within this package, add the synced files to your project's .gitignore:
/.editorconfig
/.markdownlint.jsonc
/.prettierrc
This project is licensed under the MIT license.