Contributing

Contributing

Bug reports, fixes and new modules are welcome at github.com/iSPA-tech/ispa-cms. This page summarises the repository's CONTRIBUTING.md.

Before you start

  • A bug: open an issue with the iSPA CMS version (the VERSION file), the modules involved, the steps that reproduce it, what you expected and what happened. Add the relevant lines of storage/logs/laravel.log with passwords, tokens and personal data removed.
  • A larger change or a new module: open an issue first so we can agree on the approach.
  • A security issue: see Security; do not open a public issue.

Set up the project

You need PHP 8.3 or newer, Composer 2, Node.js 20 or newer and pnpm 10.

git clone https://github.com/iSPA-tech/ispa-cms.git
cd ispa-cms
composer install
cp .env.example .env    # set the database; SQLite is enough for development
php artisan cms:install --admin-email=you@example.com
pnpm install
./ispa start

Tests

./vendor/bin/pest                   # PHP tests
pnpm --dir admin exec vitest run    # admin tests

Add a test with every fix and feature: a fix comes with a test that fails without it.

Commits and pull requests

  • Use conventional commits with the module as scope: fix(content): ..., feat(core): ...; use app for changes outside cms/. One module per commit.
  • Keep a pull request to one topic. Say what changes and why, link the issue, and add screenshots for visible changes.
  • Sign off every commit (git commit -s). The Signed-off-by line certifies the Developer Certificate of Origin.
  • Comments, documentation and commit messages are written in English.

For how the code is organised, see Module Architecture.

Licence

iSPA CMS is licensed under the GNU Affero General Public License v3.0 only. By contributing, you agree that your contribution is licensed under the same terms.