【文件属性】:
文件名称:hostr:一个简单PHP CLI工具来管理您的主机文件
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-04 02:17:53
PHP
寄宿者(1.1)
Hostr是一个简单,易用且直观的基于CLI的工具,可用于管理主机文件。
之所以做到这一点,是因为我经常使用VM,并且需要为我的项目配置假域。
安装主机
安装Hostr非常简单。 您要做的就是从终端以sudo身份执行此命令。
$ wget http://hellofrancesco.com/projects/hostr.phar && chmod 755 hostr.phar && mv hostr.phar /usr/local/bin/hostr
完成后,请验证是否一切顺利
$ hostr
注意:请始终记住将Hostr用作sudo!
命令示例
我们在这里:您可以在Hostr中键入的每个命令都在这里。
// shows the hosts file records...
$ hostr show
// adds a record on the hosts fil
【文件预览】:
hostr-master
----composer.json(413B)
----phpunit.xml(207B)
----box.json(526B)
----bin()
--------index.php(1KB)
----config()
--------bindings.php(148B)
----readme.md(4KB)
----tests()
--------sandbox()
--------FileSystemHostsFileRepositoryTest.php(2KB)
--------HostsFileCommentTest.php(396B)
--------HostsFileTest.php(3KB)
--------HostsFileRecordTest.php(1022B)
----app()
--------Core()
--------Exceptions()
--------Repositories()
--------Commands()
--------Contracts()
----.gitignore(39B)