PHPackages                             jjpmann/php-hosts-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. jjpmann/php-hosts-manager

ActiveLibrary[CLI &amp; Console](/categories/cli)

jjpmann/php-hosts-manager
=========================

PHP CLI for managing local hosts file

v0.0.10(8y ago)3175MITPHPPHP &gt;=5.3.2

Since Aug 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/jjpmann/php-hosts-manager)[ Packagist](https://packagist.org/packages/jjpmann/php-hosts-manager)[ Docs](http://github.com/jjpmann/php-hosts-manager)[ RSS](/packages/jjpmann-php-hosts-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (13)Used By (0)

php-hosts-manager
=================

[](#php-hosts-manager)

[![Latest Stable Version](https://camo.githubusercontent.com/a2a6e7a58489bdf80369bbb4d284a18523f9326ea9df8f6aae0b529c7f885c1f/68747470733a2f2f706f7365722e707567782e6f72672f6a6a706d616e6e2f7068702d686f7374732d6d616e616765722f762f737461626c65)](https://packagist.org/packages/jjpmann/php-hosts-manager)[![Build Status](https://camo.githubusercontent.com/01e09d93791d17e3899097ea051c860cbfdb5b2d5409e4f8a7417a2cb82223c3/68747470733a2f2f7472617669732d63692e6f72672f6a6a706d616e6e2f7068702d686f7374732d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jjpmann/php-hosts-manager)[![StyleCI](https://camo.githubusercontent.com/25a14905ee7c81ca8423342f53da620162104df7b0670a67ed1b3a88629a069a/68747470733a2f2f7374796c6563692e696f2f7265706f732f34303938383637302f736869656c64)](https://styleci.io/repos/40988670)[![License](https://camo.githubusercontent.com/f8bbc7be5f93f3e815ad3c6d15b1a6d05d9d3e0b6bfd565b55e5766f3cef8c13/68747470733a2f2f706f7365722e707567782e6f72672f6a6a706d616e6e2f7068702d686f7374732d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/jjpmann/php-hosts-manager)[![Total Downloads](https://camo.githubusercontent.com/64fbaeea79078f5456ec8c6ceede6a10cb8be4cf6a260be3f438819612de4175/68747470733a2f2f706f7365722e707567782e6f72672f6a6a706d616e6e2f7068702d686f7374732d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/jjpmann/php-hosts-manager)

PHP CLI for managing local hosts file

using

install
-------

[](#install)

```
composer require jjpmann/php-hosts-manager

```

**or global**

```
composer global require jjpmann/php-hosts-manager

```

quick intro
-----------

[](#quick-intro)

```
Hosts Manager version 0.5

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  add       Add domain/host to hosts file.
  check     Check to see if domain/host exists in host file
  help      Displays help for a command
  list      Lists commands
  remove    Remove domain/host from hosts file.
  rollback  Reverts the last change.
  update    Update domain/host in hosts file.

```

ToDo
----

[](#todo)

1. Stop "Add" when host exists
2. Add Tests
3. Add some features

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Recently: every ~142 days

Total

10

Last Release

3049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/322f65085989998fc2dfe4dbb0dbda6bf697a01609e6cdbed5e6fdd6b0406779?d=identicon)[jjpmann](/maintainers/jjpmann)

---

Top Contributors

[![jjpmann](https://avatars.githubusercontent.com/u/874171?v=4)](https://github.com/jjpmann "jjpmann (9 commits)")

---

Tags

phphostshost file

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jjpmann-php-hosts-manager/health.svg)

```
[![Health](https://phpackages.com/badges/jjpmann-php-hosts-manager/health.svg)](https://phpackages.com/packages/jjpmann-php-hosts-manager)
```

###  Alternatives

[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
