davedevelopment/stack-rickroll-roulette

This package is abandoned and no longer maintained. No replacement package was suggested.

A stack middleware for random rickrolling

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

This package is auto-updated.

Last update: 2024-10-06 11:39:57 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