2017 © Pedro Peláez
 

library php-hostsfile

Read & Write Entries From the HostsFile with PHP

image

appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  • Monday, January 22, 2018
  • by gizburdt
  • Repository
  • 3 Watchers
  • 9 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

PHP HostsFile

Latest Version on Packagist Total Downloads Software License, (*1)

Read & Write Entries From the HostsFile with PHP., (*2)

Installation

You can install the package via composer:, (*3)

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 :), (*4)

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., (*5)

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

22/01 2018

dev-master

9999999-dev https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php editor appstract hosts hostsfile

22/01 2018

1.0.0

1.0.0.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php editor appstract hosts hostsfile

18/07 2017

0.3.0

0.3.0.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php editor appstract hosts hostsfile

12/06 2017

0.2.1

0.2.1.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php editor appstract hosts hostsfile

12/06 2017

0.2.0

0.2.0.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php editor appstract hosts hostsfile

06/05 2017

0.1.3

0.1.3.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php editor appstract hosts hostsfile

28/04 2017

0.1.2

0.1.2.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php editor appstract hosts hostsfile

18/04 2017

0.1.1

0.1.1.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php editor appstract hosts hostsfile

18/04 2017

0.1.0

0.1.0.0 https://github.com/appstract/php-hostsfile

Read & Write Entries From the HostsFile with PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php editor appstract hosts hostsfile