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 | |
| require_once __DIR__ . '/../vendor/autoload.php'; | |
| use Silex\Application; | |
| use Symfony\Component\HttpFoundation\Request; | |
| $app = new Application(); | |
| $app->get('/logs/', function(Application $app, Request $request) { |
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
| { | |
| "require": { | |
| "silex/silex": "1.0.*", | |
| "doctrine/dbal": "2.2.*", | |
| "volcanus/csv": "dev-master" | |
| }, | |
| "minimum-stability": "dev" | |
| } |
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
| { | |
| "require": { | |
| "silex/silex": "1.0.*", | |
| "doctrine/dbal": "2.2.*" | |
| }, | |
| "minimum-stability": "dev" | |
| } |
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
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} !\.(ico|gif|jpe?g|png|swf|pdf|css|js)$ | |
| RewriteCond %{REQUEST_URI} !index\.php$ | |
| RewriteRule .* index.php [NS,L] |
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 | |
| $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); | |
| if (file_exists(realpath(__DIR__ . $path))) { | |
| return false; | |
| } | |
| require __DIR__ . DIRECTORY_SEPARATOR . 'index.php'; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit | |
| backupGlobals="false" | |
| backupStaticAttributes="false" | |
| bootstrap="Tests/bootstrap.php" | |
| colors="true" | |
| convertErrorsToExceptions="true" | |
| convertNoticesToExceptions="true" | |
| convertWarningsToExceptions="true" | |
| forceCoversAnnotation="false" |
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 | |
| namespace Acme; | |
| class U | |
| { | |
| public static function H($data, $default=null) | |
| { | |
| $var = $default; | |
| if (isset($data)) { | |
| if (is_bool($data)) { |
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_value auto_prepend_file __prepend.php |
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_value auto_prepend_file __prepend.php |
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 | |
| namespace Acme; | |
| // フィルタに通れば上書き、なければそのまま | |
| $data1 = array( | |
| 'name ' => '', | |
| 'age' => '20', | |
| 'notes' => 'HOGE', | |
| ); | |
| $data2 = array( |