thiiagoms / phost

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

License:MIT License


Languages

Language:PHP 97.5%Language:Shell 2.5%