We welcome contributions to the JWT Framework! Whether you're fixing bugs, adding features, improving documentation, or helping others, your contributions make this project better for everyone.
Found a bug? Please open an issue with:
- A clear description of the problem
- Steps to reproduce the issue
- Expected vs actual behavior
- Your PHP version and framework version
- Any relevant code snippets or error messages
Have an idea for a new feature? We'd love to hear it! Please:
- Check existing issues to avoid duplicates
- Describe the use case and benefits
- Propose how it might work
- Consider backward compatibility
If you feel comfortable writing code, you can:
- Fix issues where help is wanted
- Tackle easy issues to get started
- Implement accepted feature requests
- Improve test coverage
Before submitting a pull request, please:
- Read the contributing guidelines
- Ensure your code follows PSR-12 coding standards
- Add or update tests for your changes
- Update documentation if needed
- Make sure all tests pass
Documentation is crucial! You can help by:
- Fixing typos and grammar
- Adding code examples
- Clarifying confusing sections
- Translating documentation
- Writing tutorials or guides
- Answer questions on GitHub Discussions
- Help triage issues
- Review pull requests
- Share your experience using the framework
# Clone the repository
git clone https://github.com/web-token/jwt-framework.git
cd jwt-framework
# Install dependencies
composer install
# Run tests
composer test
# Check coding standards
composer cs-check
# Fix coding standards
composer cs-fix- Follow PSR-12 coding standards
- Write comprehensive tests for new features
- Keep backward compatibility in mind
- Add type hints wherever possible
- Write clear commit messages
- Keep pull requests focused and small
All contributions must include tests:
- Unit tests for new functionality
- Integration tests for complex features
- Test edge cases and error conditions
- Ensure RFC compliance for cryptographic operations
Run the test suite:
vendor/bin/phpunit{% hint style="danger" %} If you discover a security vulnerability, DO NOT open a public issue.
Please report security issues privately through GitHub Security Advisories. {% endhint %}
Security vulnerabilities will be addressed with the highest priority. We appreciate responsible disclosure and will acknowledge your contribution.
This project adheres to a Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers.
If you have questions about contributing:
- Check the documentation
- Open a GitHub Discussion
- Reach out to the maintainers
Contributors are recognized in:
- The project's contributor list
- Release notes for significant contributions
- The
CHANGELOG.mdfile
Thank you for helping make JWT Framework better! π