PHPackages                             tetreum/apache-vhost-processor - 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. tetreum/apache-vhost-processor

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

tetreum/apache-vhost-processor
==============================

Apache VirtualHost files processor in PHP

61.5kPHP

Since Jan 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/tetreum/apache-vhost-processor)[ Packagist](https://packagist.org/packages/tetreum/apache-vhost-processor)[ RSS](/packages/tetreum-apache-vhost-processor/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

apache-vhost-processor [![License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)
==========================================================================================================================================================================================================================================================================

[](#apache-vhost-processor--)

Apache VirtualHost files processor (in PHP)

Being used at

#### Install

[](#install)

```
composer require tetreum/apache-vhost-processor "dev-master"

```

#### Example

[](#example)

```
require "vendor/autoload.php";

use Apache\Config\VirtualHost;
use Apache\Config\Directive;
use Apache\Config\Directory;

$vhost = new VirtualHost("*", 80);

$vhost->addDirective(new Directive("DocumentRoot", "/var/www/mongo/current/htdocs"));
$vhost->addDirective(new Directive("ServerName", "mongo.dev"));
$vhost->addDirective(new Directive("ServerAdmin", "bill@mongo.dev"));

$directory = new Directory("/api");
$directory->addDirective(new Directive("DocumentRoot", "/var/www/mongo/current/api"));
$vhost->addDirectory($directory);

print_r($vhost->toString());
```

Output:

```

    DocumentRoot /var/www/mongo/current/htdocs
    ServerName mongo.dev
    ServerAdmin bill@mongo.dev

        DocumentRoot /var/www/mongo/current/api

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1708730?v=4)[tetreum](/maintainers/tetreum)[@tetreum](https://github.com/tetreum)

---

Top Contributors

[![tetreum](https://avatars.githubusercontent.com/u/1708730?v=4)](https://github.com/tetreum "tetreum (5 commits)")

### Embed Badge

![Health badge](/badges/tetreum-apache-vhost-processor/health.svg)

```
[![Health](https://phpackages.com/badges/tetreum-apache-vhost-processor/health.svg)](https://phpackages.com/packages/tetreum-apache-vhost-processor)
```

PHPackages © 2026

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