Thank you for considering contributing to ci4commonModel!
This guide will help you understand the process and best practices when contributing to this project.
Before making any contributions, please ensure that you have:
- Read the README to understand the purpose of the project.
- Installed the required dependencies for CodeIgniter 4 development.
- Familiarized yourself with the CodeIgniter 4 directory structure and best practices.
There are many ways you can help:
- Reporting bugs
- Suggesting enhancements
- Improving documentation
- Submitting pull requests
If you find a bug, please:
- Search the Issues to check if it’s already reported.
- If not, open a new issue using the Bug Report template.
- Include as much detail as possible:
- Steps to reproduce
- Expected vs. actual behavior
- Version of CodeIgniter and PHP
When proposing a new feature:
- Open an issue using the Feature Request template.
- Clearly describe the problem and the proposed solution.
- Explain how the feature aligns with the scope of the project.
- The project follows a modular approach. Avoid hard-coding paths or dependencies outside of CodeIgniter 4 standards.
- Keep models clean, reusable, and context-agnostic.
- Use PSR-12 coding style.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes.
- Run tests (if applicable).
- Commit with a meaningful message:
git commit -m "Add feature: Short description" - Push to your fork:
git push origin feature/your-feature-name
- Open a Pull Request on the main repo and describe your changes.
- Your code must pass CI and not break existing features.
- Follow the project's coding conventions.
- If you're fixing a bug or adding a feature, please include or update tests (if applicable).
- Update documentation if needed.
If the project includes tests:
- Run all tests before submitting your PR.
- Prefer small, isolated changes to simplify review and merging.
Please read and follow our Code of Conduct.
Thank you for helping make ci4commonModel better! Your contribution is appreciated 💙