Your first steps with the Flavours CLI and the Flavours registry. This example uses PHP and Laravel; the principles for other stacks are the same.
Set up your enivironment¶
Two components are required, Docker and the Flavours CLI.
- Docker for Mac, Docker for Windows or Docker CE for your Linux
- the Flavours CLI, from https://www.npmjs.com/package/@flavour/cli; shortcut:
curl -L https://flavours.dev/cli/install.sh | sh
Create a project¶
Clone the “getting-started-with” project for the PHP stack:
git clone https://github.com/flavours/getting-started-with-php cd getting-started-with-php
Install an addon into the project¶
In your project directory, run:
flavour add composer/spatie/laravel-responsecache:6.1.1`
flavour CLI will check the default registry at addons.flavours.dev and look for this addon.
You can take a look at the Background section of this documentation for more information.
This is all you have to do to trigger a simple installation. Use
git diff to see what changes have been applied to