- Fork the repository
- Create a branch:
git checkout -b feat/my-feature - Make changes and write tests
- Commit using Conventional Commits
- Submit a pull request
Client Code (src/Client/): Public API that follows semantic versioning. Changes here affect how developers use the library.
Server Code (src/Server/, the modules in src/Module/ and src/Support/): Internal code marked with @internal. Not subject to semver - breaking changes are allowed.
Dependencies between the layers (client, support, server, modules) are declared in tools/structarmed/structarmed.php; run composer structarmed to check them.
We use semantic versioning for the Client API only:
-
Minor version for:
- New Client API features
- New CLI flags
- New protocol support
- New interface features
- New mechanics
-
Patch version for:
- Bug fixes
- Internal improvements
- Documentation updates
Breaking changes to server code (@internal) don't need major version bumps.
We use extended PER 2.0 code style. You can run composer cs:fix to fix code style automatically (install the QA tools first with composer bin all install). Don't worry about following the style perfectly - our GitHub CI will fix it automatically.
Important: Choose commit prefixes carefully! We use automatic releases that look at commit prefixes to decide the next version number.
Use Conventional Commits format:
| Type | Purpose |
|---|---|
feat |
New feature |
fix |
Bug fix |
perf |
Performance improvement |
docs |
Documentation |
style |
Code formatting |
deps |
Dependencies |
refactor |
Code refactoring |
ci |
CI changes |
test or tests |
Tests |
revert |
Revert commit |
build |
Build system |
chore |
Other changes |
security |
Security improvements |
Examples:
feat(client): add depth() method to TrapHandle
fix(server): resolve memory leak in parser
perf(client): optimize dumper performance
docs: update installation instructions