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

ActiveSymfony-bundle

makinacorpus/static-passthrough-bundle
======================================

Easily serve a tree of statics files through Symfony

0.1.14(1y ago)445.8k↓32.5%4MITPHPPHP &gt;=7.3

Since Jul 21Pushed 1y ago13 watchersCompare

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

READMEChangelogDependencies (6)Versions (18)Used By (0)

Static Passthrough Bundle: easily serve a tree of statics files through Symfony
===============================================================================

[](#static-passthrough-bundle-easily-serve-a-tree-of-statics-files-through-symfony)

This bundle has been developed for a simple use case : serve static files (e.g. generated documentation) through a Symfony application.

Getting started
---------------

[](#getting-started)

### 1/ Install with Composer:

[](#1-install-with-composer)

```
composer require makinacorpus/static-passthrough-bundle
```

### 2/ Register the bundle

[](#2-register-the-bundle)

```
# config/bundles.php
return [

    // ...

    MakinaCorpus\StaticPassthroughBundle\StaticPassthroughBundle::class => ['all' => true],

    // ...
];
```

### 3/ Add Static Passthrough Routes definition

[](#3-add-static-passthrough-routes-definition)

```
# config/routes.yaml

# ...

static_passthrough:
    resource: "@StaticPassthroughBundle/Resources/config/routes.php"

# ...
```

### 4/ Configure Static Passthrough

[](#4-configure-static-passthrough)

Let's assume we have a `docs` folder in the root directory of our application, with a simple `test.html` file in it: that's the static file we want to serve through our Symfony app.

To do so, configure the bundle like this:

```
# config/package/static_passthrough.yaml
static_passthrough:
  definitions:
    docs: # Route name will be 'static_passthrough_docs'
      root_folder: 'docs' # Where to find files to passthrough (this path has to be relative to %kernel.project_dir%)
      path_prefix: 'docs/' # Path to reach files in root_folder
```

Don't forget to clear the cache:

```
bin/console c:c
```

### 5/ Reach the file with your browser :

[](#5-reach-the-file-with-your-browser-)

Visit `[app_basepath]/docs/test.html`, you should see your HTML file appear.

Note that you could also view it visiting `[app_basepath]/docs/test`, in fact when you try to visit `[app_basepath]/docs/test`, the bundle will look for a file in these different paths, in that order:

- `[app_basepath]/docs/test`
- `[app_basepath]/docs/test.html`
- `[app_basepath]/docs/test/index.html`

### 6/ Generate URL

[](#6-generate-url)

Here is an examples to create an URL to reach 'test.html' file described above:

From a controller:

```
$this->generateUrl(
    'static_passthrough_docs',
    ['path' => 'test.html]
);
```

From twig:

```
{{ path('static_passthrough_docs', {'path': 'test.html'}) }}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.7% 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 ~107 days

Recently: every ~118 days

Total

15

Last Release

630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d21b98752b406528da88850922b1061f39bf72eb2126b413d5c12e275811a40b?d=identicon)[Makina Corpus](/maintainers/Makina%20Corpus)

![](https://www.gravatar.com/avatar/1862800f234d28ff7823627e2ca4cea463b8996af98666d4fe36c40848adcb11?d=identicon)[SimonMellerin](/maintainers/SimonMellerin)

---

Top Contributors

[![SimonMellerin](https://avatars.githubusercontent.com/u/29925135?v=4)](https://github.com/SimonMellerin "SimonMellerin (28 commits)")[![pounard](https://avatars.githubusercontent.com/u/341855?v=4)](https://github.com/pounard "pounard (4 commits)")[![Lonnytunes](https://avatars.githubusercontent.com/u/6373159?v=4)](https://github.com/Lonnytunes "Lonnytunes (3 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (3 commits)")

---

Tags

phpsymfony-bundle

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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