PHPackages                             jmbtechnologylimited/apachehtaccessin - 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. jmbtechnologylimited/apachehtaccessin

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

jmbtechnologylimited/apachehtaccessin
=====================================

v0.1.0(10y ago)616BSDPHPPHP &gt;=5.3.0

Since Mar 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/JMB-Technology-Limited/ApacheHtaccessIn)[ Packagist](https://packagist.org/packages/jmbtechnologylimited/apachehtaccessin)[ Docs](https://github.com/JMB-Technology-Limited/ApacheHtaccessIn)[ RSS](/packages/jmbtechnologylimited-apachehtaccessin/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ApacheHtaccessIn
================

[](#apachehtaccessin)

Often when you get a Web App there will be several .htaccess files sprinkled through the app, and Apache will read these to make sure it serves the app properly.

Problem: it is better for performance if these configs are baked into Apache, instead of getting apache to look for .htaccess files.

This library is a simple library that will search through a directory for .htaccess files and make them into an Apache config for you.

Use from the command line
-------------------------

[](#use-from-the-command-line)

Say you have this Apache Config

```

    DocumentRoot /var/www/example.com/web

        AllowOverride all

```

Check out the code and run

```
php bin/ApacheHtaccessIn.php /var/www/example.com/web >> /var/www/example.com/apacheConfig

```

Then simply change your config to

```

    DocumentRoot /var/www/example.com/web

        AllowOverride none

    Include /var/www/example.com/apacheConfig

```

Reload or restart Apache. Done!

Every time you do something that might change your .htaccess files, such as upgrade the app, you will need to rerun this and reload or restart Apache.

Note: the output file created contains complete paths. This means if you move the web app - say from /var/www/example.com/web to /websites/example.com/web you will need to rerun this.

Run from PHP
------------

[](#run-from-php)

This can be included with composer:

For an example of how to call the PHP classes, see bin/ApacheHtaccessIn.php

License
-------

[](#license)

BSD - for details see LICENSE.txt

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3748d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43e89eaec930cc5d0b361e600224be601f103e76b5d1463e21d31c78e95304d2?d=identicon)[jarofgreen](/maintainers/jarofgreen)

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

---

Top Contributors

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

---

Tags

apachehtaccess

### Embed Badge

![Health badge](/badges/jmbtechnologylimited-apachehtaccessin/health.svg)

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

###  Alternatives

[tivie/htaccess-parser

A .htaccess parser and validator implemented in PHP

57655.1k11](/packages/tivie-htaccess-parser)[corley/maintenance-bundle

Corley Maintenance Bundle

22232.4k](/packages/corley-maintenance-bundle)[donatj/rewrite-generator

Server Rewrite Generator

1263.7k](/packages/donatj-rewrite-generator)[nystudio107/dotenvy

Speed up your production sites by ditching .env for key/value variable pairs as Apache, Nginx, and shell equivalents.

317.0k](/packages/nystudio107-dotenvy)

PHPackages © 2026

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