https://github.com/thiiagoms/phost
:elephant: :penguin: PHP CLI tool designed to simplify the process of creating and managing virtual host configurations on a local development environment
https://github.com/thiiagoms/phost
devops lampp linux php php-linux php-tool php-tools php-vhosts sysadmin ubuntu
Last synced: 7 months ago
JSON representation
:elephant: :penguin: PHP CLI tool designed to simplify the process of creating and managing virtual host configurations on a local development environment
- Host: GitHub
- URL: https://github.com/thiiagoms/phost
- Owner: thiiagoms
- License: mit
- Created: 2020-01-02T16:06:52.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T12:34:54.000Z (over 1 year ago)
- Last Synced: 2025-04-13T22:47:41.848Z (10 months ago)
- Topics: devops, lampp, linux, php, php-linux, php-tool, php-tools, php-vhosts, sysadmin, ubuntu
- Language: PHP
- Homepage:
- Size: 168 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](#Dependencies)
- [Install](#Install)
- [Run](#Run)
### Dependencies :heavy_plus_sign:
* PHP 8.1+
* Composer or Docker
### Install :package:
01 -) Clone:
```bash
$ git clone https://github.com/thiiagoms/phost
```
02 -) Change to `phost` directory:
```bash
$ cd phost
phost $
```
03 -) Install dependencies with `composer` package manager:
```bash
phost $ composer install
```
### Run :runner:
01 -) Give `phost` permissions:
```bash
phost $ chmod +x phost
```
02 -) Run `phost` with **sudo**:
```bash
phost $ ./phost
██████╗ ██╗ ██╗ ██████╗ ███████╗████████╗
██╔══██╗██║ ██║██╔═══██╗██╔════╝╚══██╔══╝
██████╔╝███████║██║ ██║███████╗ ██║
██╔═══╝ ██╔══██║██║ ██║╚════██║ ██║
██║ ██║ ██║╚██████╔╝███████║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝
[*] Author: Thiago AKA thiiagoms
[*] Version: 1.1
>>> domain:
>>> extension:
```
### Bonus:
01 -) Run lint:
```bash
phost $ composer phpcs
```
02 -) Run tests:
```bash
phost $ composer test
```