Community

Contributing

Contributions are welcome and will be fully credited.

Please read and understand the contribution guide before creating an issue or pull request. This document is a living standard that may be updated when needed.

Resources

If you're new to HydePHP and are looking to contribute, it may be helpful to learn how the ecosystem and core development works. It's thus highly advised you visit our Developer Resources to learn how HydePHP is structured.

Etiquette

This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers. It would be extremely unfair for them to suffer abuse or anger for their hard work.

Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.

It's the duty of the maintainer to ensure that all submissions to the project are of sufficient quality to benefit the project. Many developers have different skill sets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.

Viability

When requesting or submitting new features, first consider whether they might be useful to others. Open source projects are used by many developers, who may have entirely different needs from your own. Think about whether or not your feature is likely to be used by other users of the project, or if your feature may instead be better suited as a third party extension.

You may also want to make sure that your feature abides by the goals of HydePHP which are as follows:

When thinking about a new feature, make sure it's intuitive and easy to understand without having to refer to the docs all the time. The most intuitive workflow is often the best one. If a feature requires much explanation to be used and understood, it might need to be simplified.

Which Branch?

Bug fixes for the current stable release should be sent to the 2.x branch. Fixes for v1 should be sent to 1.x only when they apply to that supported release line. Bug fixes should never be sent to master unless they affect features that exist only in the upcoming v3 release.

Minor features that are fully backward compatible with the current release may be sent to 2.x.

Major new features or features with breaking changes should be sent to master, which contains the upcoming v3 release.

Procedure

Before filing an issue:

Before submitting a pull request:

How-to

HydePHP development is made in the HydePHP monorepo found at https://github.com/hydephp/develop. To get started, you will need to clone the repository, and run composer install. You will then be able to make changes to the packages found in the packages/ sub-directories.

Once you've made and commited your changes, submit a pull request to the same repository, and explain your changes and how they improve the codebase.

Requirements

If the project maintainer has any additional requirements, you will find them listed here.

We try to follow the Laravel standards, https://laravel.com/docs/10.x/contributions#coding-style

Please add tests!

Happy coding!