davedevelopment / stack-rickroll-roulette
A stack middleware for random rickrolling
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/davedevelopment/stack-rickroll-roulette
Requires
- php: >=5.4.0
- symfony/http-foundation: ~2.1
- symfony/http-kernel: ~2.1
Requires (Dev)
- silex/silex: ~1.0@dev
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