2017 © Pedro Peláez
 

library stack-static-file

A PHP port of Rack::Static.

image

hampus/stack-static-file

A PHP port of Rack::Static.

  • Monday, March 17, 2014
  • by ckhampus
  • Repository
  • 0 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Stack::StaticFile

This is a PHP port of the Rack::Static middleware., (*1)

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

Usage

Wrap your HttpKernelInterface app in an instance of Hampus\Stack\StaticFile or add it to your middleware stack., (*3)

With stack/builder:, (*4)

<?php

$options = [];

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

Without the builder:, (*5)

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

The Versions

17/03 2014

dev-master

9999999-dev

A PHP port of Rack::Static.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Hampus

stack

17/03 2014

0.1.0

0.1.0.0

A PHP port of Rack::Static.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Hampus

stack

17/03 2014

dev-develop

dev-develop

A PHP port of Rack::Static.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Hampus

stack