Skip to content

6. Other tools

Pierre-Yves Lapersonne edited this page Mar 8, 2024 · 6 revisions

Generate template-based text for email

It can be time-wasting to write always the same emails to people to onboard on GitHub projects or for newcomers. In fact the emails are almost each time the same: share resources, explain some rules. So, a PHP script has been written to produce a text to share using some template and configuration file.

php text-generator.php "_templates/new-GitHub-repository-contributors.fr.template.txt" "_templates/values.ini"

It will iterate on each value defined in the values.ini file (easy to parse in PHP thanks to standard API) and replace each occurence of the variable by its value.

Clone this wiki locally