jjpmann / php-hosts-manager
PHP CLI for managing local hosts file
v0.0.10
2018-01-11 15:37 UTC
Requires
- php: >=5.3.2
- symfony/console: ~2.0
- symfony/filesystem: ^2.7
- symfony/process: ^2.7
- symfony/yaml: ^2.7
Requires (Dev)
- mockery/mockery: ~0.9.1
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-14 00:34:38 UTC
README
PHP CLI for managing local hosts file
using https://gist.github.com/mikeflynn/4278796
install
composer require jjpmann/php-hosts-manager
or global
composer global require jjpmann/php-hosts-manager
quick intro
Hosts Manager version 0.5
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
add Add domain/host to hosts file.
check Check to see if domain/host exists in host file
help Displays help for a command
list Lists commands
remove Remove domain/host from hosts file.
rollback Reverts the last change.
update Update domain/host in hosts file.
ToDo
Stop "Add" when host existsAdd Tests- Add some features