FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ckhampus/StackStaticFile: A PHP port of Rack::Static. · GitHub

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack::StaticFile

This is a PHP port of the Rack::Static middleware.

The middleware intercepts requests for static files (javascript files, images, stylesheets, etc) based on the url prefixes or route mappings passed in the options.

Usage

Wrap your HttpKernelInterface app in an instance of Hampus\Stack\StaticFile or add it to your middleware stack.

With stack/builder:

<?php

$options = [];

$app = (new Stack\Builder)
    ->push('Hampus\Stack\StaticFile', $options)
    ->resolve($app);

Without the builder:

$app = new Hampus\Stack\StaticFile($app, $options);

About

A PHP port of Rack::Static.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL