This file contains 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 | |
$phar = new Phar('twig.phar', 0, 'twig.phar'); | |
$phar->buildFromDirectory(__DIR__ . '/Twig.git/lib'); | |
$phar->compressFiles(Phar::GZ); | |
$phar->setDefaultStub(); |
This file contains 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 | |
/* | |
こんなイメージ | |
(例) 1,1 と 1,2 に爆弾がある | |
x:1 x:2 x:3 x:4 | |
+-----+-----+-----+-----+ | |
y:1| x | | | | | |
+-----+-----+-----+-----+ |
This file contains 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 | |
require_once 'silex.phar'; | |
$app = new Silex\Application(); | |
$app->get('/', function () { | |
return 'index'; | |
}); | |
$app->get('/hello/{name}', function ($name) { |
This file contains 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 | |
/** | |
* MongoSessionStrage manages session storage via MongoDB | |
* | |
* This class stores the session data in via MongoDB and with an id issued in a | |
* signed cookie. Useful when you don't want to store the session. | |
* | |
* @package PHP | |
* @subpackage session | |
* @author Masao Maeda <[email protected]> |
NewerOlder