Contribute.md.txt 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # How to contribute
  2. ## Questions and issues
  3. If you have a question about or a general issue while using this library,
  4. head over to the [discussions section](https://github.com/chillerlan/php-qrcode/discussions),
  5. create a new post and describe your issue as precise as possible, ideally add a code example (if applicable).
  6. Please don't just write "headline says all" because the reply will likely be similarly concise - help me (and others) help you!
  7. (just to clarify: the "general" does not mean general PHP support, in which case you're better off on
  8. [StackOverflow](https://stackoverflow.com/questions/tagged/php) or [/r/PHPhelp](https://www.reddit.com/r/PHPhelp/))
  9. ## Bug reports
  10. So you found a bug or the library code is somehow misbehaving? That's great (well, not that great tho). In that case,
  11. please [open a bug report and FILL OUT THE ISSUE TEMPLATE](https://github.com/chillerlan/php-qrcode/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=%5BBUG%5D)
  12. (I have to write that in all caps because nobody actually does it which usually leads to several avoidable follow-up questions that cost both of us precious time).
  13. Below an example of the bug report template (it's not that hard):
  14. **Describe the bug**
  15. A clear and concise description of what the bug is.
  16. **Steps to reproduce the behavior**
  17. - When i do ...
  18. - The code below ...
  19. - Error message: ...
  20. **Code sample**
  21. ```php
  22. // your code here
  23. ```
  24. **Expected behavior**
  25. A clear and concise description of what you expected to happen.
  26. **Screenshots**
  27. If applicable, add screenshots to help explain your problem.
  28. **Environment (please complete the following information):**
  29. - PHP version/OS: [e.g. 7.4.12, Ubuntu 20.04]
  30. - Library version: [e.g. 4.3.4]
  31. **Additional context**
  32. Add any other useful context about the problem.
  33. ## Pull requests and bug fixes
  34. You want to contribute code to fix something or add a feature? Hey that's cool! However, there's a few things to keep in mind:
  35. - Please add a description of what the PR does or fixes and why it should be merged. If you're unsure, [open an issue](https://github.com/chillerlan/php-qrcode/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.md&title=%5BENHANCEMENT%5D) before to gather feedback.
  36. - Make sure your branch is up-to-date/even with the upstream branch you're submitting your PR to.
  37. - Please try to adhere to the [*loosely outlined* coding standards](https://github.com/chillerlan/php-qrcode/discussions/60), or, in case you're using [PHPStorm](https://www.jetbrains.com/phpstorm/), make sure you're using [the supplied IDE profile](https://github.com/chillerlan/php-qrcode/tree/main/.idea).
  38. ## Documentation
  39. The documentation is a work in progress - any suggestion and contribution is very welcome!
  40. If you have an addition or correction, feel fre to open a [documentation issue](https://github.com/chillerlan/php-qrcode/issues/new?assignees=&labels=docs&projects=&template=documentation.md&title=%5BDOCS%5D).
  41. The API documentation is auto generated with [phpDocumentor](https://www.phpdoc.org/) from the docblocks [in the PHP sources](https://github.com/chillerlan/php-qrcode/tree/main/src).
  42. The markdown sources for the [Read the Docs online manual](https://php-qrcode.readthedocs.io) are located in the [/docs directory](https://github.com/chillerlan/php-qrcode/tree/main/docs)