PHPackages                             makinacorpus/drupal-static-passthrough - 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. makinacorpus/drupal-static-passthrough

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

makinacorpus/drupal-static-passthrough
======================================

Passthrough static html files to Drupal 8

29.6k↓35.7%1PHP

Since Apr 3Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Static Passthrough
==================

[](#static-passthrough)

Drupal 8 Module - Passthrough static files to Drupal 8

Use cases with default config
-----------------------------

[](#use-cases-with-default-config)

You can see the explained default config in `config/install/static_passthrough.settings.yml`These settings can be modified/overwritten as all Drupal 8 settings.

### Passthrough static templates

[](#passthrough-static-templates)

Configuration :

```
static_passthrough:
  directories:

    ...

    static:
      # Root path to get files
      root_path: 'dev/static'
      # Where to find files to passthrough (relative to DRUPAL_ROOT folder)
      root_dir: 'statics'
      # Who can access these files
      permission: 'access content'
      # Which kind of files are allowed
      allowed_extension: ['html', 'css', 'js', 'png', 'jpg', 'jpeg', 'gif', 'ico', 'ttf', 'otf', 'woff', 'woff2', 'eot' ]
      # Do files have to be include in Drupal structure (false) or displayed alone (true)
      standalone: false

    ...
```

Try it :

1. Create a `static` folder in `DRUPAL_ROOT` directory.
2. Put a test.html file in it which contains `Hello word`
3. Then visit `example.com/dev/static/test.html`

The HTML is printed in the Content region in Front.

### Passthrough documentation

[](#passthrough-documentation)

Configuration :

```
static_passthrough:
  directories:

    ...

    documentation:
      # Root path to get files
      root_path: 'admin/doc'
      # Where to find files to passthrough (relative to DRUPAL_ROOT folder)
      root_dir: 'docs'
      # Who can access these files
      permission: 'access administration pages'
      # Which kind of files are allowed
      allowed_extension: ['html', 'css', 'js', 'png', 'jpg', 'jpeg', 'gif', 'ico', 'ttf', 'otf', 'woff', 'woff2', 'eot' ]
      # Do files have to be include in Drupal structure (false) or displayed alone (true)
      standalone: true

    ...
```

Try it :

1. Create a `docs` folder in `DRUPAL_ROOT` directory.
2. Put a index.html file in it which contains `Hello word`
3. Then visit `example.com/admin/doc`

You're redirected to the standalone `example.com/admin/doc/index.html` file.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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://www.gravatar.com/avatar/d21b98752b406528da88850922b1061f39bf72eb2126b413d5c12e275811a40b?d=identicon)[Makina Corpus](/maintainers/Makina%20Corpus)

---

Top Contributors

[![SimonMellerin](https://avatars.githubusercontent.com/u/29925135?v=4)](https://github.com/SimonMellerin "SimonMellerin (10 commits)")[![zewebmaster](https://avatars.githubusercontent.com/u/45684808?v=4)](https://github.com/zewebmaster "zewebmaster (1 commits)")

---

Tags

documentationdrupaldrupal-module

### Embed Badge

![Health badge](/badges/makinacorpus-drupal-static-passthrough/health.svg)

```
[![Health](https://phpackages.com/badges/makinacorpus-drupal-static-passthrough/health.svg)](https://phpackages.com/packages/makinacorpus-drupal-static-passthrough)
```

PHPackages © 2026

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