Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiiagoms/phost
Tool to create vhosts on distros debian like! :hammer: :shell:
https://github.com/thiiagoms/phost
devops lampp learning-php linux php php-linux php-tool php-tools php-vhosts student sysadmin ubuntu
Last synced: about 3 hours ago
JSON representation
Tool to create vhosts on distros debian like! :hammer: :shell:
- Host: GitHub
- URL: https://github.com/thiiagoms/phost
- Owner: thiiagoms
- License: mit
- Created: 2020-01-02T16:06:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T15:37:24.000Z (over 1 year ago)
- Last Synced: 2023-05-21T16:25:40.387Z (over 1 year ago)
- Topics: devops, lampp, learning-php, linux, php, php-linux, php-tool, php-tools, php-vhosts, student, sysadmin, ubuntu
- Language: PHP
- Homepage:
- Size: 168 KB
- Stars: 4
- Watchers: 1
- 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:
```bashphost $ composer phpcs
```02 -) Run tests:
```bash
phost $ composer test
```