ephemeralbits/phpionner-recipes

PHPionner recipes

v0.3.0 2024-07-28 10:24 UTC

This package is auto-updated.

Last update: 2024-10-28 10:57:54 UTC


README

PHPionner opinionated recipes for quick and easy PHP server configuration for Deployer.

You can use PHPionner or require these recipes directly into your project.

It installs:

  • PHP 8.2 or 8.3
  • Nginx
  • PostgreSQL
  • Redis
  • Supervisor
  • Node.js 22, 21, 20 or 18
  • Certbot

Also, it can do some common tasks:

  • Create sites
  • Create users
  • Configure a floating IP
  • Set up Laravel schedule and queues
  • Set up SSL certificates via Let's Encrypt

Getting Started

composer require ephemeralbits/phpionner-recipes
./vendor/bin/dep init

Modify deploy.php adding:

// Add this after the require statements
require './vendor/ephemeralbits/phpionner-recipes/recipes/autoload.php';
// Add this after set() calls
set('phpionner/user_name', 'deployer');

Replace deployer for your desired username.

Configure a new server

Configures a new server to serve PHP projects. It requires Ubuntu 22.04 LTS and a root user.

./vendor/bin/dep phpionner/configure -o remote_user=root

Create a new site

./vendor/bin/dep phpionner/site:create