Contributing to Flarum
Howdy! We're really excited that you are interested in contributing to Flarum. Before submitting your contribution, please take a moment and read through the following guidelines.
Before opening an issue, debug your problem by following these instructions. Only open an issue if you are confident it is a bug with Flarum, not with your own setup.
All issues should be reported on the flarum/core repository. Issues pertaining to a specific extension should include the extension name in their title, e.g.
[Tags] Issue title.
Try to search for your issue – it may have already been answered or even fixed in the development branch.
Check if the issue is reproducible with the latest version of Flarum. If you are using a pre-release or development version, please indicate the specific version you are using.
It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "needs verification" receives no further input from the issue author for more than 5 days, it will be closed.
If you discover a security vulnerability within Flarum, please send an email to email@example.com.
Pull Request Guidelines
Read the Contributor License Agreement.
Checkout a topic branch from
masterand merge back against
distfiles in commits.
Squash the commits if there are too many small ones.
Follow the code style.
When in doubt, read the source code.
flarum/flarum is a "skeleton" application which uses Composer to download flarum/core and a bunch of extensions. In order to work on these, you will need to change their versions to
composer.json and install them from source:
$ composer update --prefer-source
$ npm install -g gulp $ cd vendor/flarum/core $ ./scripts/compile.sh
Most Flarum contributors use PHPStorm with an educational or open source license.
What to work on
Contributor License Agreement
By contributing your code to Flarum you grant Toby Zerner a non-exclusive, irrevocable, worldwide, royalty-free, sublicensable, transferable license under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the MIT license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.
You confirm that you are able to grant us these rights. You represent that You are legally entitled to grant the above license. If Your employer has rights to intellectual property that You create, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for the Contributions.
You represent that the Contributions are Your original works of authorship, and to Your knowledge, no other person claims, or has the right to claim, any right in any invention or patent related to the Contributions. You also represent that You are not legally obligated, whether by entering into an agreement or otherwise, in any way that conflicts with the terms of this license.
Toby Zerner acknowledges that, except as explicitly described in this Agreement, any Contribution which you provide is on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.