We previously had the "generator-wikimedia-php-library" (created by @ori) which used nodejs/yeoman to create the library bootstrap. It's out of date now, and yeoman isn't really maintained.
We might want to investigate other libraries to handle this. @bd808 found https://github.com/audreyr/cookiecutter that looked nice.