PHPackages                             ecxod/apache - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ecxod/apache

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ecxod/apache
============

Langweilige Library des Ecxod Projekts

1.0.14(10mo ago)114MITPHPPHP ^8.0|^8.2CI failing

Since Dec 11Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/ecxod/apache)[ Packagist](https://packagist.org/packages/ecxod/apache)[ RSS](/packages/ecxod-apache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (15)Used By (0)

apache
======

[](#apache)

This are some Apache related functions for the Ecxod Framework

### Install

[](#install)

```
php composer.phar require ecxod/apache
```

### function parseApacheMacroConfig()

[](#function-parseapachemacroconfig)

I found no specific library for parsing Apache Macro configuration files.
Most existing solutions focus on parsing .ini files or other common configuration formats.

The function *parseApacheMacroConfigLinear* fas the following capabilities:

- ignoring comment lines starting with a "#" like : /(\\s\*)\\#(\\s\*)/
- can handle tabs and multiple spaces as separator
- can handle wrapped lines with backslash in shell-style mode such as: "\\"

Let's admit the following config file

```
cat /etc/apache2/sites-enabled/001-SSLHost.conf
```

that may look like this :

```
# This is a comment
# Next line is wrapped with the character "\"
VALUEa1    VALUEa2    \
    VALUEan
VALUEb1    VALUEb2    VALUEbn
VALUEc1    VALUEc2    VALUEcn
```

Use Case :

```
use Ecxod\Apache\Apache;

# This are the Keys (must match to number of columns in the config)
$keysArr = ["KEY1", "KEY2", "KEYn"];

# This is the config file you want to parse
$configPath = '/etc/apache2/sites-enabled/001-SSLHost.conf';

$parseConfig = new Apacche;
$result = $parseConfig->parseApacheMacroConfigLinear($configPath);

print_r($result);
```

result ölooks like this

```
 Array
(
    [0] => Array
        (
            [KEY1] => VALUEa1
            [KEY2] => VALUEa2
            [KEYn] => VALUEan
        )
    [1] => Array
        (
            [KEY1] => VALUEb1
            [KEY2] => VALUEb2
            [KEYn] => VALUEbn
        )
    [2] => Array
        (
            [KEY1] => VALUEc1
            [KEY2] => VALUEc2
            [KEYn] => VALUEcn
        )
)
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~53 days

Total

14

Last Release

305d ago

PHP version history (3 changes)1.0.0PHP ^7.2|^7.4|^8.0|^8.2

1.0.10PHP ^8.0|^8.2

1.0.12PHP ^8.0|^8.2|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4054f488a8a753fa468e3e681a962d9715920a0c96f1942c75459f60eb39009?d=identicon)[ecxod](/maintainers/ecxod)

---

Top Contributors

[![ecxod](https://avatars.githubusercontent.com/u/102165928?v=4)](https://github.com/ecxod "ecxod (182 commits)")

---

Tags

apacheecxodecxod-frameworkphpxmlapacheecxod

### Embed Badge

![Health badge](/badges/ecxod-apache/health.svg)

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

###  Alternatives

[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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