Sharing Robo Commands Across Repos

Multiple Projects, One Set of Commands

We have been using Robo as our task runner of choice on PHP projects for some time now. Over time our set of Robo commands has grown, and often they are quite similar across different projects causing us to duplicate code and then keep them in sync when changes are made to our commands.

We recently took our first shot at improving this by releasing Usher, a Composer package that can be included in a repository to gain access to a shared set of Robo commands. It also plays nicely with custom commands within downstream repositories so you can continue to add additional commands within individual project repositories.

While the commands themselves might not be directly useful to you, you may find the Usher repository useful as living documentation of how to do something similar with the Robo commands that your organization uses.