First off, thank you for considering contributing to this project! It's people like you who make the open-source community such an amazing place to learn, inspire, and create.
To get started with development, you'll need to have PHP 8.3+ and Composer installed on your machine.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/your-username/codeception-module-openapi-server-mock.git cd codeception-module-openapi-server-mock - Install dependencies:
composer install
- Initialize GrumPHP:
GrumPHP is used to run quality checks on every commit. It should be initialized automatically, but you can run:
vendor/bin/grumphp git:init
We use Codeception for our own internal testing. To run the tests, use:
composer testThis will run the acceptance tests which verify that the module correctly starts the mock server and interacts with it.
We maintain high code quality standards. Before submitting a PR, ensure your code passes all checks:
- Static Analysis:
composer stan(runs PHPStan at Level 8) - Coding Standard:
composer cs:check(verifies PSR-12/Symfony style) - Fixing Style:
composer cs:fix(automatically fixes most style issues)
- Create a new branch for your feature or bugfix:
git checkout -b feat/my-new-feature
- Commit your changes. GrumPHP will automatically run linting and tests. If any check fails, the commit will be blocked until fixed.
- Ensure your commit messages follow conventional commits (e.g.,
feat: ...,fix: ...). - Push to your fork and submit a Pull Request to the
mainbranch of the original repository. - Describe your changes in detail in the PR description. Link any related issues.
By participating in this project, you agree to abide by our Code of Conduct (based on the Contributor Covenant). Please be respectful and professional in all interactions.
By contributing, you agree that your contributions will be licensed under the project's MIT License.