Getting Started
Prerequisites
- PHP 8.3+
- An AWS account with administrative permissions
- Your domains added to Route53 on the same AWS account
- AWS credentials configured in
~/.aws/credentials
Installation
Install YOLO via Composer:
bash
composer require codinglabsau/yoloThe CLI is available at vendor/bin/yolo, or just yolo if ./vendor/bin is in your PATH.
Run yolo to see all available commands.
Initialisation
Run yolo init to set up your project. This will:
- Create a
yolo.ymlmanifest with a boilerplate production environment - Add entries to
.gitignore - Prompt for initial configuration values
After initialising, customise the yolo.yml manifest to suit your application.
AWS Authentication
YOLO uses AWS profiles for authentication. Set a profile for each environment in your app's .env file:
bash
YOLO_PRODUCTION_AWS_PROFILE=my-project-profileFor CI environments like GitHub Actions, use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY instead. Ensure CI access keys use least-privileged scope.
Next Steps
With YOLO installed and initialised, you're ready to:
