PHPackages                             sevenecks/display-hosts - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sevenecks/display-hosts

ActivePackage[Utility &amp; Helpers](/categories/utility)

sevenecks/display-hosts
=======================

pretty print the hosts file for the os

0.0.4(8y ago)019MITPHP

Since Apr 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SevenEcks/display-hosts)[ Packagist](https://packagist.org/packages/sevenecks/display-hosts)[ RSS](/packages/sevenecks-display-hosts/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

display-hosts
=============

[](#display-hosts)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3ac6ec0493cf64e4bb8fca413491a27d7b2d4e4fe67c35b6cc60477a34115d61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736576656e65636b732f646973706c61792d686f7374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sevenecks/display-hosts)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0e8f5231b9a90eca865cd133fda3fe4d7595bb1e42e75ac9b51a783fb3f8a090/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736576656e65636b732f646973706c61792d686f7374732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sevenecks/display-hosts)[![Coverage Status](https://camo.githubusercontent.com/c348d86e4c24706ee897d40a03606fbcd4eb6d683e0c6112b18f95f26dd8d52e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736576656e65636b732f646973706c61792d686f7374732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sevenecks/display-hosts/code-structure)[![Quality Score](https://camo.githubusercontent.com/6e0e390d03b2daa6f1879612f2b95393411c506de4dec90c7e22d5edb81e0db5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736576656e65636b732f646973706c61792d686f7374732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sevenecks/display-hosts)[![Total Downloads](https://camo.githubusercontent.com/14919b272db84102a83f77ca9512431bc24872751189c41d53c7fe633de14f02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736576656e65636b732f646973706c61792d686f7374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sevenecks/display-hosts)

Pretty print a table with the hosts file for the OS using PHP.

Installation
------------

[](#installation)

Via Composer

### Global

[](#global)

```
composer global require sevenecks/display-hosts
```

### Local

[](#local)

```
composer require sevenecks/display-hosts
```

### CLI Usage

[](#cli-usage)

#### Global Install

[](#global-install)

If you are on a system where the hosts file is located at /etc/hosts then you have no further configuration to do. If you are not, then you should go to the global composer directory, go into the vendor folder, copy the .env-example file to .env and edit it to point to your hosts file. Then you can proceed.

```
DisplayHosts
```

#### Local Install

[](#local-install)

If you are on a system where the hosts file is located at /etc/hosts then you have no further configuration to do. If you are not, then you should go into the vendor folder, copy the .env-example file to .env and edit it to point to your hosts file. Then you can proceed.

```
./vendor/bin/DisplayHosts
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Brendan Butts](https://github.com/sevenecks)
- [All Contributors](../../contributors)

Change Log
----------

[](#change-log)

Please see [Change Log](CHANGELOG.md) for more information.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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 ~0 days

Total

3

Last Release

2955d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/963368d2aa1a4a1bf29571edf1377016ec16104a567abd89075b78f0edbf0925?d=identicon)[sevenecks](/maintainers/sevenecks)

---

Top Contributors

[![BrendanAlipes](https://avatars.githubusercontent.com/u/40271827?v=4)](https://github.com/BrendanAlipes "BrendanAlipes (6 commits)")

---

Tags

composer-packagehostsmacosphppretty

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sevenecks-display-hosts/health.svg)

```
[![Health](https://phpackages.com/badges/sevenecks-display-hosts/health.svg)](https://phpackages.com/packages/sevenecks-display-hosts)
```

###  Alternatives

[wythe/logistics

查询快递物流信息

3041.6k1](/packages/wythe-logistics)

PHPackages © 2026

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