sevenecks / display-hosts
pretty print the hosts file for the os
Requires
- sevenecks/tableify: ^0.0.5
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-13 12:21:59 UTC
README
Pretty print a table with the hosts file for the OS using PHP.
Installation
Via Composer
Global
composer global require sevenecks/display-hosts
Local
composer require sevenecks/display-hosts
CLI Usage
Global Install
If you are on a system where the hosts file is located at /etc/hosts then you have no further configuration to do. If you are not, then you should go to the global composer directory, go into the vendor folder, copy the .env-example file to .env and edit it to point to your hosts file. Then you can proceed.
DisplayHosts
Local Install
If you are on a system where the hosts file is located at /etc/hosts then you have no further configuration to do. If you are not, then you should go into the vendor folder, copy the .env-example file to .env and edit it to point to your hosts file. Then you can proceed.
./vendor/bin/DisplayHosts
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email bbutts@stormcode.net instead of using the issue tracker.
Credits
Change Log
Please see Change Log for more information.
License
The MIT License (MIT). Please see License File for more information.