Skip to content
phpMusselPublic

About

Org. templates.

Contributing

Security policy

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

A canonical link to the file you're currently reading.

Want to help?

If you want to report bugs, suggest new features, etc, you should start at the issues page. Any already reported bugs, requested features, progress checklists, ideas, project discussions, etc should be available there, and everyone is welcome to participate and contribute. If you have something to add, whether for an existing issue or a new issue, feel free to do so.

The project is open-source, released by its author under the GNU/GPLv2 license, so if you want to fork/copy the project and make your own modifications, you're welcome to do so. If you feel that your modifications could be beneficial to the project and its community, consider sending a pull request to the repository where those modifications are to take effect (include a description with pull requests, so that we know what we're looking at) so that we can review your modifications and consider integrating them as part of the project.

Anyone interested in contributing to the project is encouraged to do so.

Not sure how to help? Here are some things you could do.

  • Have any unused free time to spare? Projects always consume time, especially free, open-source projects. If you're able to help out at all with some of your time, progress could move forward a little faster.
  • Good at coding and refactoring? Check the issues page and see whether there's anything we're stuck on, or whether there's anything you could help us out with. Consider reviewing the codebase. If you see something that you think could be improved, feel free to have a go at it.
  • Good at thinking of new ideas or new features, or have something specific in mind that you'd like to see implemented? Sharing ideas is always welcomed, and if we like your ideas, we might implement them.
  • Good at unit testing? Consider helping us implement better tests.
  • Good at benchmarking? If you'd be willing to test the codebase on your system, or willing to benchmark it, let us know what works, what doesn't work, and consider sharing your benchmarks and other findings, to help us find ways to improve the codebase and the project overall.
  • Good at pentesting? Good at finding bugs? If you find any problems, any bugs, anything dangerous in the codebase, etc, report it privately, as described in SECURITY.md.
  • Good at writing documentation? If you'd be willing to review our documentation, to add anything that could be missing, to improve on it at all, this would be welcome.
  • Good at writing guides and tutorials? Some users prefer guides and tutorials over documentation, and want practical directions on how to achieve their goals.
  • Good at translations? Know more than one language? Please consider translating the project's documentation and L10N data into your own native language, or any other languages that you know, if this hasn't already been done. Otherwise, please consider reviewing existing translations, documentation, and L10N data, to help find and fix any spelling, grammar, or other typographical errors that may be there.
  • Good at reviewing? Good at quality control? If there are any pending pull requests that haven't yet been reviewed or accepted, please consider offering to review them, offer feedback, suggestions, etc.
  • Good at social networking? Good at sharing? Please consider spreading word about the project. If you know anyone that you think could benefit from the project, let them know about it. Write about the project, review it, and share it onward.

phpMussel code-style guidelines.

From here onward in this document, the words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY" are to be interpreted in accordance with RFC 2119.

phpMussel adopts and adheres to PSR-12: Extended Coding Style (which extends PSR-1: Basic Coding Standard and PSR-2: Coding Style Guide [deprecated; superseded by PSR-12]), and PSR-4: Autoloader (as closely as possible, and to the best of our abilities). Whenever possible, any and all future contributions to the codebase SHOULD adopt and adhere to these standards too. If you're unfamiliar with these, I would recommend reading them carefully.

phpMussel adopts PHPDoc to annotate and describe PHP code. If you're unfamiliar with this, I would recommend reading the linked documentation carefully.

To avoid unnecessary complexity, red tape, or hindrances to future contributions, future contributions will be measured against any other PSRs or style guides not yet mentioned, IF and WHEN it becomes relevant and useful to do so (i.e., we'll cross those bridges when we get to them). To be more concise and to avoid unnecessary duplication in this document, any points already covered, either by this document, or by any linked documents (e.g., the PSRs adopted by this project), won't be repeated.

All code (foremostly PHP code, but also any other code), and all markup (including markdown files, HTML, etc) attached to the project MUST utilise Unix-style LF newlines. All INI files (the project only contains one such file) MUST utilise Windows-style CRLF newlines.

Excluding all "binary" files (e.g., images, compressed archives, etc), all project files (including all code, markup, etc) MUST utilise UTF-8 encoding (without BOM), and MUST NOT contain any trailing whitespace.

All YAML files, and all YAML data attached to the project, SHOULD indent (when indenting is necessary) using exactly one space (not tabs). All HTML files, and all HTML data attached to the project, SHOULD indent (when indenting is necessary) using exactly two spaces (not tabs). All CSS files, and all CSS data attached to the project, SHOULD indent (when indenting is necessary) using exactly two spaces (not tabs). The indenting used by any given file at the project, whether tabs, spaces, or otherwise, MUST be used consistently throughout the given file (not doing so can potentially cause problems for some parsers and linters). HTML, CSS, and JavaScript MAY be "minified", if doing so doesn't negatively impact the maintainability of the project (i.e., if doing so turns it into spaghetti, consider avoiding it). Other files, and other types of data, SHOULD NOT be "minified". When writing code or markup, contributors SHOULD aim for maximum readability, and maximum maintainability for their contributions.

All functions, methods, and closures within PHP files MUST be properly and accurately annotated by an attached DocBlock. All PHP files MUST contain a DocBlock header, to describe the general nature of the file. All attached DocBlocks SHOULD be concise, and SHOULD NOT be overly verbose (i.e., containing more than necessary). All comments in all PHP files and code MUST conform to PHPDoc (i.e., as DocComments). Where the purpose and intent of some particular code is highly obtuse, unclear, or not easily understood, it SHOULD be commented. Where the purpose and intent of some particular code is highly transparent and easily understood (and where not otherwise already dictated by this document), it SHOULD NOT be commented (i.e., let's avoid useless information). All annotation, and all comments, MUST be written in English.

All phpMussel configuration directives MUST be named in accordance with snake case (i.e., lowercase, and words separated by an underscore), and MUST NOT be named using any characters other than standard English letters (A through Z) and underscores (previous major versions are exempt from this, because they were tagged/released prior to the creation of this document).

Pull requests are checked by the test suite (composer test) and by PHP-CS-Fixer, so if you can, please run both before submitting to catch potential problems. If you can't, the CI-enforced checks should catch most problems, but approval and merging may be delayed while we work through them. Contributors should take care to avoid newer syntax (CI workflows lint the codebase on every supported version).

phpMussel version release guidelines.

phpMussel adopts and adheres to SemVer (Semantic Versioning). If you're unfamiliar with this, I would recommend reading the linked documentation carefully.

Extending upon the rules provided by SemVer, the following are to be interpreted as backwards-incompatible changes:

  • Anything that increases the minimum PHP version requirement (up to and including v1: PHP 5.4; v2 to v3: PHP 7.2; when this line becomes stale or wherever this document may be lacking, the composer.json file attached to each major version's branch specifies its minimum PHP version requirement).
  • The permanent removal of any features or configuration directives.
  • Any backwards-incompatible changes to the syntax used by signatures, signature files, or the public Scanner API.
  • Adding any new, external, third-party dependencies to the project at all (e.g., through Composer).

Any version/release schema provided and declared by any third-party components attached to phpMussel MUST be honoured (to the extent where it has relevance).

Any components attached to phpMussel that aren't clearly distinguishable in terms of MAJOR, MINOR, or PATCH version numbers (e.g., the signature files, the L10N data, any sub-packages which aren't compatible with Composer, etc), SHOULD be de facto versioned as "Y.z.B" (where, at the exact time of de facto versioning, "Y" is the current year, "z" is a number, 0 through 365, representing the current day of the year, and "B" is the current swatch time).

phpMussel documentation and translation guidelines.

All formal documentation for phpMussel, and all of the translations for that documentation, can be found in the phpMussel/Docs repository. All formal documentation is written and provided as markdown.

Informally, the front-end's "glossary" page documents the definitions for some of the terminology used by the project's documentation, at its issues tracker, in its codebase, and elsewhere, but what it covers is neither thorough nor comprehensive.

All the L10N data for phpMussel, and all of the translations for that L10N data, can be found in the l10n directories attached to any of the pertinent repositories maintained by phpMussel (e.g., "phpMussel/Core", "phpMussel/CLI", "phpMussel/FrontEnd", "phpMussel/Web", etc). The L10N data at any given repository is relevant to the content/functionality provided by that given repository. Different major versions have different L10N needs, and thus, the L10N data in each different branch representing a major version will be slightly different to the L10N data in each other different branch (this isn't particularly important to note when your contributions target only a single major version, e.g., the latest major version, but can be important to note when your contributions are targeting multiple major versions). All the L10N data for phpMussel is written and provided as YAML.

When adding support for new languages, it's recommended to target only the newest/latest major version, in order to reduce your own workload, to reduce the risk of errors and mistakes occurring, and to reduce potential frustration caused by development drift between major versions. Of course, this is only a recommendation and not a hard requirement: If you're confident you have the available time and energy to target multiple major versions, you're welcome to do so.

Regardless of whether for the documentation or for the L10N data, the specific language of any particular translation can be identified by its two-letter ISO 639-1 language code. When a particular regional dialect or country variant needs to be identified, a two-letter ISO 3166-1 alpha-2 code can be appended (but this should be avoided when the distinction is unimportant). This aligns with BCP-47.

The most efficient way to create new translations is to locate the English version of what you're translating, duplicate the files, change the language identifier of the duplicates, open them, translate as necessary, and when finished, send a pull request with the newly created translations.

When sending pull requests, which branch should I target?

For the main codebase, there's no "master" or "main", and instead, branches are named according to major version. Therefore, target the branch which corresponds to the major version you intend to target ("vX", where "X" is the major version number, e.g., v1, v2, v3, v4). If a branch exists for a specific feature, a specific planned task, or similar, and that's the thing that you're working on, target that branch instead. If a repository has only a "master" or "main" branch (e.g., at the documentation repository), use that instead. Otherwise, if no branch exists for the particular major version you're wanting to affect, or if you feel that you need to be able to target your pull request somewhere else, you can ask for a new branch to be created.

Policy on AI-assisted contributions.

All contributions (code, issues, reports, signatures, and so on) are reviewed to the same standard and with the same tone, regardless of origin and regardless of whether AI assistance was used. A good contribution is a good contribution. If it follows the contributor guidelines, is legally sound (including licensing), benefits the project, and is something I can properly review (including being able to ask you questions about it), it will receive a proper review and be acted on accordingly.

Some projects have banned AI-assisted contributions entirely, because floods of low-effort, guideline-ignoring submissions (including bogus security advisories and nonsensical issues) exceed what their maintainers can review. In that situation, I'd do the same. This project hasn't faced that, so there's no ban at this time. I reserve the right to change this policy if circumstances change.

Accountability.

  • You are the contributor, whether or not you used AI. You're responsible for your submission being correct, tested where that's possible, and properly licensed.
  • You must have reviewed and understood what you submit, and be able to explain it. Answer review questions yourself, in your own words.
  • Fully automated submissions (a tool opening issues, reports or pull requests without a human reviewing them first) won't be accepted.
  • Low-effort submissions may be closed without detailed review, and repeated ones may result in a block.
  • Security reports should follow SECURITY.md and must be reproducible. Don't paste non-public security details, or real malware or user data, into AI tools or public issues.
  • Signature contributions should say what the signature matches, supply a sample or a reproducible description, and show what false-positive testing was done.

Disclosure.

Optional: If you used AI assistance for a commit, please say so with a trailer such as Co-Authored-By: ToolName <address> or Assisted-By: ToolName <address>, whichever best fits the nature of the assistance (see also: "Understanding Git Commit Trailers"). This isn't enforceable or reliably verifiable, so it's a courtesy and not a requirement, but it's appreciated for traceability.

Example:

git commit -m "Commit title, e.g., added feature X.

Changelog excerpt:
- Commit description, e.g., added feature X, introducing functionality Z to
  the codebase.

Co-Authored-By: ToolName <address>"

Licensing and intellectual property.

You're responsible for having the right to submit your contribution under the project's licence. That includes making sure the terms of any AI tool you used allow it, and that its output doesn't reproduce copyrighted or incompatibly licensed code from elsewhere.

Licensing for contributions in a broader context.

Unless you state otherwise at the time a contribution is made, you're assumed to agree with the contribution falling under the same licensing schema as the project as a whole and asserting that you have the legal right to do so. You agree to not contribute any commercially-licensed content or content whose licensing is incompatible with this project. If your contribution requires a licensing schema which differs from the project as a whole, assuming you have the right to do so, you should mention this at the time the contribution is made so that it can be discussed.


Last Updated: 27 November 2026 (2026.11.27).

About

Org. templates.

Contributing

Security policy

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors