davedevelopment/stack-rickroll-roulette

A stack middleware for random rickrolling

dev-master / 1.0.x-dev 2013-07-19 10:29 UTC

README

A Stack middleware for randomly rickrolling clients.

Example

<?php

$app = new Silex\Application();

$app->get('/', function () {
    return 'some useful content';
});

$stack = (new Stack\Builder())
    ->push('DaveDevelopment\StackRickrollRoulette', ['url' => 'http://stackphp.com']);

$app = $stack->resolve($app);

Options

  • url (optional): The url to redirect clients to