Recipe Runner is a new way to automate tasks and extend your applications.
- PHP +7.3
The preferred installation method is composer:
composer require recipe-runner/recipe-runner
use RecipeRunner\Definition\RecipeMaker; use RecipeRunner\RecipeRunner\Recipe\StandardRecipeVariables; use RecipeRunner\RecipeRunner\Setup\QuickStart; $recipeVariables = StandardRecipeVariables::getCollectionOfVariables(); $recipeMaker = new YamlRecipeMaker(); $recipe = $recipeMaker->makeRecipeFromFile('/path-to-a-recipe.yml'); $recipeParser = QuickStart::Create(); $recipeParser->parse($recipe, $recipeVariables);
Recipes are written in YAML:
name: "Very simple example that creates variables" steps: - actions: - register_variables: user: "victor" register: my_variables
You can run the unit tests with the following command:
$ cd recipe-runner $ composer test
This library is open-sourced software licensed under the MIT license.