Download the PHP package twitnic/slimer without Composer
On this page you can find all versions of the php package twitnic/slimer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package slimer
twitnic/slimer
twitnic/slimer is a standalone Composer package that gives Slim Framework 2 projects an Artisan-style command line experience.
It ships with:
- a
vendor/bin/slimerconsole entrypoint - Slim 2 bootstrap discovery via
.slimer.php route:listfor inspecting registered routesservefor running the built-in PHP web serverinit,make:command,make:controller,make:middleware, andmake:view- hooks for custom project commands
Installation
Quick start
Initialize the package inside an existing Slim 2 application:
That creates a .slimer.php file. Point the generated bootstrap callback to your Slim entry script if needed, then inspect the available commands:
Configuration
Slimer looks for configuration in this order:
- the path from
SLIMER_CONFIG .slimer.phpconfig/slimer.phpapp/config/slimer.php
Example configuration:
Built-in commands
Notes
route:listexpects a bootstrappedSlim\Sliminstance.- Prefer a dedicated bootstrap file that builds the application without immediately calling
$app->run(). - Custom commands can either be instantiated directly, returned from a callable, or referenced by class name.
- Generated middleware classes extend
\Slim\Middleware, which matches Slim 2.
All versions of slimer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
slim/slim Version ^2.6
symfony/console Version ^3.4 || ^4.4 || ^5.4 || ^6.4
slim/slim Version ^2.6
symfony/console Version ^3.4 || ^4.4 || ^5.4 || ^6.4
The package twitnic/slimer contains the following files
Loading the files please wait ...