Custom deployment recipes and provisioning tasks for Deployer.
- PHP ^8.2
- deployer/deployer ^7.5.12
Add the repository to your composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/CodeByZach/deployer-extensions"
}
]
}Then install:
composer require codebyzach/deployer-extensionsIn your deploy.php:
<?php
namespace Deployer;
require 'vendor/autoload.php';
use CodeByZach\DeployerExtensions\Loader;
// Load the default deployment recipe
Loader::load('default');
// Or load specific recipes
Loader::load('deploy/env');
Loader::load('provision/node');| Recipe | Description |
|---|---|
default |
Main deployment workflow with pre-flight checks |
deploy/env |
Environment configuration management |
deploy/release |
Release and commit tracking |
deploy/utils |
Helper functions (messages, formatting) |
| Recipe | Description |
|---|---|
provision/apache |
Apache web server management |
provision/autossh |
SSH tunnel management via autossh |
provision/composer |
Composer installation and package management |
provision/node |
Node.js/npm with NVM support |
provision/php |
PHP environment inspection |
# Install dependencies
composer install
# Run tests
composer test
# Run static analysis
composer phpstanMIT