Last active
August 29, 2015 14:21
-
-
Save akrabat/953b25b966b5ee866c7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//cli command entrypoint | |
include 'conf.php'; | |
/** | |
* | |
use any cli library | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$container = new \Slim\Container(); | |
/** | |
* | |
define services | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//web request entrypoint | |
include 'conf.php'; | |
$app = new Slim\App($container); | |
/** | |
add middlewares | |
defines routes | |
... | |
*/ | |
$app->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment