Problem
As the number of OpenEMR modules grows, keeping common tooling (pre-commit config, GitHub workflows, phpstan/rector configs, etc.) synchronized across all modules becomes increasingly difficult and error-prone.
Desired Outcome
A mechanism to propagate tooling updates from this template to existing modules, ideally with:
- Ability to update existing modules when the template changes
- Tracking of which template version a module was created from
- Handling of module-specific customizations vs common tooling
Options to Consider
- Copier - Template engine with built-in update support
- Sync script - Simple file copy approach
- GitHub reusable workflows - For CI portion only