Thank you for your interest in contributing to Chronos! This document provides guidelines and instructions for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/chronos.git cd chronos - Install dependencies:
composer install
Run the test suite using PHPUnit:
composer testOr directly:
vendor/bin/phpunitThis project follows the CakePHP coding standards.
Check for coding standard violations:
composer cs-checkAutomatically fix coding standard violations:
composer cs-fixPHPStan is used for static analysis. First, install the tools:
composer stan-setupThen run the analysis:
composer stanTo run tests, coding standards, and static analysis together:
composer check- Create a new branch for your changes
- Make your changes and commit them with clear, descriptive messages
- Ensure all checks pass (
composer check) - Push to your fork and submit a pull request
- Search existing issues before creating a new one
- Include PHP version, Chronos version, and a minimal reproduction case
- Use clear, descriptive titles
Documentation source files are located in the docs/ directory. The documentation is published at book.cakephp.org/chronos.