Skip to content

GazNicoll/Slim-CLI-Environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Run Slim Framework From Command-line

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

About

Run Slim from Command-line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages