Skip to content
Products
Apps
Docs
Log in
Log in
Sign up
Sign up
Products
Apps
Docs
Docs
Docs
CODE
On this page

Contributing

Send a change to UNA or NEO as a pull request to unacms/UNA on GitHub: set up a local copy, follow the code rules, add a database migration when you change install SQL, run the tests, and read what CI and the Railway preview do with your PR.
Web
Core
~15.0
Source
Copy Page
Note
   git clone https://github.com/unacms/UNA.git una
   cd una
   docker run --rm -it -v "$(pwd):/app" composer/composer install --ignore-platform-reqs
Tip
docker compose exec -w /opt/una php php periodic/migration.php --channel=dev
docker compose exec -w /opt/una php php periodic/migration.php --check
docker compose exec -w /opt/una php php periodic/migration.php
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --filter MigrationsDbTest
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Units
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Integration
yarn typecheck
yarn lint
5d
On this page
I want to...How the repository is organisedSet up a local copyCode rulesDatabase changesTest before you pushUNANEOOpen the pull requestWhat CI checksPreview environmentsAfter mergeReport a bugReport a security issueTipsTroubleshootingRelated
Introduction
Getting Started
Configuration
Apps
CODE
Developer Architecture
Code Convention
Code Quality
Directory Structure
How to Add an App
Storage System
Common Mistakes
Payment Provider Integration
Module API
iOS Client
NEO Developer
Android Client
Web Client
Contributing
REST API
Analytics Developer
Auth
Connect
docker compose exec -w /opt/una php php periodic/migration.php --channel=dev
docker compose exec -w /opt/una php php periodic/migration.php --check
docker compose exec -w /opt/una php php periodic/migration.php
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --filter MigrationsDbTest