ahmetkapikiran/slim-cli-environment

There is no license information available for the latest version (dev-master) of this package.

Run Slim from Command-line

This package's canonical repository appears to be gone and the package has been frozen as a result.

dev-master 2014-10-29 20:44 UTC

This package is not auto-updated.

Last update: 2023-01-03 00:26:40 UTC


README

How To use?

$cliEnvironment = new \Slim\Extras\Environment();

$app = new \Slim\Slim(array(
    'environment' => $cliEnvironment
));
$app->get(
    '/hello/:name',
    function ($name) {
        echo "Hello, $name";
    }
);
$app->run();

Command-line

php test.php hello Ahmet
#Output
Hello, Ahmet