haspadar/piqule

Quality checks for PHP projects

Maintainers

Package info

github.com/haspadar/piqule

pkg:composer/haspadar/piqule

Statistics

Installs: 127

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 3

v0.10.6 2026-03-14 23:49 UTC

This package is auto-updated.

Last update: 2026-03-14 23:49:44 UTC


README

CI Coverage Mutation testing badge PHPStan Level Psalm Hits-of-Code CodeRabbit Pull Request Reviews

Opinionated quality policies for PHP projects.

Zero configuration required.
Reproducible and consistent checks across environments.

Install

composer require --dev haspadar/piqule
vendor/bin/piqule sync

Configure

Customization is optional.

If needed, create .piqule.php in the project root.

Use OverrideConfig with dot-separated keys:

<?php

declare(strict_types=1);

use Haspadar\Piqule\Config\DefaultConfig;
use Haspadar\Piqule\Config\OverrideConfig;

return new OverrideConfig(new DefaultConfig(), [
    'ci.php.matrix' => ['8.3', '8.4', '8.5'],
    'ci.pr.max_lines_changed' => 400,
    'ci.piqule_bin' => 'vendor/bin/piqule',
]);

.piqule/ and .github/ are generated by piqule sync and may be safely deleted.

Commands

  • piqule sync — generate configuration from templates
  • piqule check — run all checks
  • piqule check <tool> — run specific tool
  • piqule fix — run auto-fixable tools
  • piqule fix <tool> — run specific fixer

Checks

  • PHPStan
  • Psalm
  • PHPUnit
  • Infection
  • PHPMD
  • PHP Metrics
  • PHP_CodeSniffer
  • PHP-CS-Fixer
  • actionlint
  • hadolint
  • shellcheck
  • markdownlint-cli2
  • jsonlint
  • yamllint
  • typos

GitHub CI includes:

  • Pull request size limit
  • Code coverage (Codecov)

These checks ensure consistency and quality in pull requests and releases.

Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a feature branch
  3. Ensure all checks pass
  4. Open a pull request

All pull requests must pass CI before merging.

License

MIT