appstract/php-hostsfile
最新稳定版本:1.0.0
Composer 安装命令:
composer require appstract/php-hostsfile
包简介
Read & Write Entries From the HostsFile with PHP
README 文档
README
Read & Write Entries From the HostsFile with PHP.
Installation
You can install the package via composer:
composer require appstract/php-hostsfile
Usage
$host = new Appstract\HostsFile\Processor($path); // optional path to the file $host->getLines(); // get all lines in the hostsfile $host->addLine($ip, $domain, $aliases); // add a new line to the hostsfile $host->set($ip, $domain, $aliases); // add a new line and overwrite any existing $host->removeLine($domain); // remove a line from the hostsfile by domain $host->save(); // save the changes to the hostsfile
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 964
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-18