A lightweight command‑line tool for generating new PHP websites based on the PHPStarter template.
Go to file
Ramon Caballero ca51f944ea Initial commit with script to generate a new PHPStarter-based website 2026-04-11 15:01:16 +01:00
README.md Initial commit with script to generate a new PHPStarter-based website 2026-04-11 15:01:16 +01:00
phpstarter.sh Initial commit with script to generate a new PHPStarter-based website 2026-04-11 15:01:16 +01:00
vhost-template.conf Initial commit with script to generate a new PHPStarter-based website 2026-04-11 15:01:16 +01:00

README.md

PHPStarter CLI

A lightweight commandline tool for generating new PHP websites based on the PHPStarter template.

You get a fully working PHP project in seconds.

Requirements

  • Linux environment
  • Apache2
  • Git
  • Bash
  • PHP
  • Composer
  • MariaDB

Installation

Clone this repository:

git clone https://gitea.ramoncaballero.dev/mon/phpstarter-cli.git
cd phpstarter-cli

Make the script executable:

chmod +x phpstarter.sh

Usage

Create a new PHP site:

sudo ./phpstarter.sh <mysite>

This will clone the PHPStarter template, configure everything automatically, and set up a readytouse local development environment for your new site.

Your new site will be available at:

http://mysite.local

Remove a Site

sudo rm -rf /var/www/sites/mysite
sudo a2dissite mysite.conf
sudo rm /etc/apache2/sites-available/mysite.conf
sudo systemctl reload apache2
sudo sed -i '/mysite\.local/d' /etc/hosts

You may also remove the database it manually if you no longer need it.