Skip to content

🐘 🐧 PHP CLI tool designed to simplify the process of creating and managing virtual host configurations on a local development environment

License

Notifications You must be signed in to change notification settings

thiiagoms/phost

Repository files navigation

Logo

Create virtual hosts with PHost 🐘

PHP

Simple CLI tool designed to simplify the process of creating and managing virtual host configurations on a local development environment. It provides a convenient way to set up virtual hosts for web projects, making it easier to access them through custom domain names.

Dependencies ➕

  • PHP 8.1+
  • Composer or Docker

Install 📦

01 -) Clone:

$ git clone https://github.com/thiiagoms/phost

02 -) Change to phost directory:

$ cd phost
phost $

03 -) Install dependencies with composer package manager:

phost $ composer install

Run 🏃

01 -) Give phost permissions:

phost $ chmod +x phost

02 -) Run phost with sudo:

phost $ ./phost

  ██████╗ ██╗  ██╗ ██████╗ ███████╗████████╗
  ██╔══██╗██║  ██║██╔═══██╗██╔════╝╚══██╔══╝
  ██████╔╝███████║██║   ██║███████╗   ██║ 
  ██╔═══╝ ██╔══██║██║   ██║╚════██║   ██║ 
  ██║     ██║  ██║╚██████╔╝███████║   ██║
  ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚══════╝   ╚═╝
  
  [*] Author: Thiago AKA thiiagoms
  [*] Version: 1.1
        
>>> domain:
>>> extension: 

Bonus:

01 -) Run lint:

phost $ composer phpcs

02 -) Run tests:

phost $ composer test

About

🐘 🐧 PHP CLI tool designed to simplify the process of creating and managing virtual host configurations on a local development environment

Topics

Resources

License

Stars

Watchers

Forks