PHPackages                             mvccore/ext-request-apachedpi - 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. [Framework](/categories/framework)
4. /
5. mvccore/ext-request-apachedpi

ActiveLibrary[Framework](/categories/framework)

mvccore/ext-request-apachedpi
=============================

MvcCore - Extension - Request - Apache DPI - request BasePath property correction for applications using Apache .htaccess \[DPI\] flag.

v4.3.1(8y ago)1231BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jan 16Pushed 5y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

THIS PACKAGE IS DEPRECATED AND NOT USED ANYMORE FROM MVCCORE VERSION 5 AND HIGHER.
----------------------------------------------------------------------------------

[](#this-package-is-deprecated-and-not-used-anymore-from-mvccore-version-5-and-higher)

MvcCore Extension - Request - Apache DPI
========================================

[](#mvccore-extension---request---apache-dpi)

[![Latest Stable Version](https://camo.githubusercontent.com/18889afbb3700af3334abad628a3a9e291c4d3bba13315744b29fe07e0ad3734/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537461626c652d76342e332e312d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://github.com/mvccore/ext-request-apachedpi/releases)[![License](https://camo.githubusercontent.com/c5143de245d5a50be806c8728284ebb020dbab2276b1d84cb8e4ddaf0e45a9df/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4253442d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://mvccore.github.io/docs/mvccore/4.0.0/LICENCE.md)[![PHP Version](https://camo.githubusercontent.com/9e923690739211296a00adce5d359999dfa345f80fc1b2e2cfe72c49523ee334/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d352e342d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://camo.githubusercontent.com/9e923690739211296a00adce5d359999dfa345f80fc1b2e2cfe72c49523ee334/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d352e342d627269676874677265656e2e7376673f7374796c653d706c6173746963)

MvcCore Request extension to correct request BasePath property - for applications using [**Apache .htaccess \[DPI\] flag**](https://httpd.apache.org/docs/trunk/rewrite/flags.html#flag_dpi).

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

[](#installation)

```
composer require mvccore/ext-request-apachedpi
```

Usage
-----

[](#usage)

I you are using more PHP applications with more different domains in one webhosting space, you always need to route every request into different index .htaccess file.

### .htaccess in webhosting root:

[](#htaccess-in-webhosting-root)

```
# disable directory listing
Options -Indexes
# mod_rewrite

	RewriteEngine On
	RewriteRule .* - [E=REDIRECT_PATH:]
	# If directory with HTTP_HOST name exists in domains directory,
	# dispatch request into this webhosting directory with requested application:
	RewriteCond %{HTTP_HOST} ^(.*)$
	RewriteCond %{DOCUMENT_ROOT}/domains/%1 -d
	RewriteRule (.*) domains/%1/$1 [DPI,QSA,E=REDIRECT_PATH:/domains/%1,L]

```

### .htaccess in application root (classic):

[](#htaccess-in-application-root-classic)

```
# disable directory listing
Options -Indexes
# mod_rewrite

	RewriteEngine On
	# forbid the direct access to app directories (eg. config-files, ...)
	RewriteRule ^App/.*$ / [F,L]
	RewriteRule ^vendor/.*$ / [F,L]
	# basic zend-framework setup see: http://framework.zend.com/manual/en/zend.controller.html
	RewriteCond %{REQUEST_FILENAME} -s [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -f
	RewriteRule ^(.*)$ $1 [NC,L]
	RewriteRule ^.*$ index.php [NC,L]

```

### PHP application Bootstrap.php

[](#php-application-bootstrapphp)

Put this patching code in very beginning of your application:

```
\MvcCore::GetInstance()->SetRequestClass(\MvcCore\Ext\Request\ApacheDpi::class);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~81 days

Total

7

Last Release

3064d ago

Major Versions

v3.2.0 → v4.0.02017-01-29

### Community

Maintainers

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

---

Top Contributors

[![tomFlidr](https://avatars.githubusercontent.com/u/1833722?v=4)](https://github.com/tomFlidr "tomFlidr (20 commits)")

---

Tags

requestpluginframeworkmvcextensionplug-inflagapacheextmvccoredpidiscard path

### Embed Badge

![Health badge](/badges/mvccore-ext-request-apachedpi/health.svg)

```
[![Health](https://phpackages.com/badges/mvccore-ext-request-apachedpi/health.svg)](https://phpackages.com/packages/mvccore-ext-request-apachedpi)
```

PHPackages © 2026

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