Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 3241b4a

Browse files
authored
Create README.md
1 parent 672c682 commit 3241b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ composer require appstract/php-hostsfile
2020
$host = new Appstract\HostsFile\Processor($path); // optional path to the file
2121
$host->getLines(); // get all lines in the hostsfile
2222
$host->addLine($ip, $domain, $aliases); // add a new line to the hostsfile
23+
$host->set($ip, $domain, $aliases); // add a new line and overwrite any existing
2324
$host->removeLine($domain); // remove a line from the hostsfile by domain
2425
$host->save(); // save the changes to the hostsfile
2526
```

0 commit comments

Comments
 (0)