├── .gitignore ├── LICENSE ├── README.md ├── app ├── .htaccess ├── AppCache.php ├── AppKernel.php ├── Resources │ └── views │ │ ├── base.html.twig │ │ └── default │ │ └── index.html.twig ├── autoload.php └── config │ ├── config.yml │ ├── config_dev.yml │ ├── config_prod.yml │ ├── config_test.yml │ ├── parameters.yml.dist │ ├── routing.yml │ ├── routing_dev.yml │ ├── security.yml │ └── services.yml ├── bin ├── console └── symfony_requirements ├── composer.json ├── composer.lock ├── frontend ├── components │ ├── App.tsx │ └── Greetings.tsx ├── global.d.ts └── index.tsx ├── package.json ├── phpunit.xml.dist ├── src ├── .htaccess └── AppBundle │ ├── AppBundle.php │ ├── Controller │ └── DefaultController.php │ └── Entity │ └── Greeting.php ├── tests └── AppBundle │ └── Controller │ └── DefaultControllerTest.php ├── tsconfig.json ├── var ├── SymfonyRequirements.php ├── cache │ └── .gitkeep ├── logs │ └── .gitkeep └── sessions │ └── .gitkeep ├── web ├── .htaccess ├── app.php ├── app_dev.php ├── apple-touch-icon.png ├── config.php ├── favicon.ico ├── js │ └── bundle.js └── robots.txt └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /app/config/parameters.yml 2 | /build/ 3 | /phpunit.xml 4 | /var/* 5 | !/var/cache 6 | /var/cache/* 7 | !var/cache/.gitkeep 8 | !/var/logs 9 | /var/logs/* 10 | !var/logs/.gitkeep 11 | !/var/sessions 12 | /var/sessions/* 13 | !var/sessions/.gitkeep 14 | !var/SymfonyRequirements.php 15 | /vendor/ 16 | /web/bundles/ 17 | node_modules 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2017 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | "Hello, World!" in PHP (Symfony), PostgreSQL, TypeScript, react, redux 2 | ================= 3 | 4 | in English: (https://kukuruku.co/post/hello-real-world-in-php-in-2017/) 5 | 6 | in Russian: (https://habrahabr.ru/post/322170/) 7 | 8 | To install this applications run 9 | 10 | ```npm install``` 11 | 12 | ```composer install``` 13 | 14 | To try application run 15 | 16 | ```bin/console server:start``` 17 | 18 | And you can see it in browser: http://localhost:8000/ 19 | 20 | -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Order deny,allow 6 | Deny from all 7 | 8 | -------------------------------------------------------------------------------- /app/AppCache.php: -------------------------------------------------------------------------------- 1 | getEnvironment(), ['dev', 'test'], true)) { 22 | $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); 23 | $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); 24 | $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); 25 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); 26 | } 27 | 28 | return $bundles; 29 | } 30 | 31 | public function getRootDir() 32 | { 33 | return __DIR__; 34 | } 35 | 36 | public function getCacheDir() 37 | { 38 | return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); 39 | } 40 | 41 | public function getLogDir() 42 | { 43 | return dirname(__DIR__).'/var/logs'; 44 | } 45 | 46 | public function registerContainerConfiguration(LoaderInterface $loader) 47 | { 48 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/Resources/views/base.html.twig: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% block title %}Welcome!{% endblock %} 6 | {% block stylesheets %}{% endblock %} 7 | 8 | 9 | 10 | {% block body %}{% endblock %} 11 | {% block javascripts %}{% endblock %} 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/Resources/views/default/index.html.twig: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /app/autoload.php: -------------------------------------------------------------------------------- 1 | getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); 20 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; 21 | 22 | if ($debug) { 23 | Debug::enable(); 24 | } 25 | 26 | $kernel = new AppKernel($env, $debug); 27 | $application = new Application($kernel); 28 | $application->run($input); 29 | -------------------------------------------------------------------------------- /bin/symfony_requirements: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | getPhpIniConfigPath(); 9 | 10 | echo_title('Symfony Requirements Checker'); 11 | 12 | echo '> PHP is using the following php.ini file:'.PHP_EOL; 13 | if ($iniPath) { 14 | echo_style('green', ' '.$iniPath); 15 | } else { 16 | echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!'); 17 | } 18 | 19 | echo PHP_EOL.PHP_EOL; 20 | 21 | echo '> Checking Symfony requirements:'.PHP_EOL.' '; 22 | 23 | $messages = array(); 24 | foreach ($symfonyRequirements->getRequirements() as $req) { 25 | if ($helpText = get_error_message($req, $lineSize)) { 26 | echo_style('red', 'E'); 27 | $messages['error'][] = $helpText; 28 | } else { 29 | echo_style('green', '.'); 30 | } 31 | } 32 | 33 | $checkPassed = empty($messages['error']); 34 | 35 | foreach ($symfonyRequirements->getRecommendations() as $req) { 36 | if ($helpText = get_error_message($req, $lineSize)) { 37 | echo_style('yellow', 'W'); 38 | $messages['warning'][] = $helpText; 39 | } else { 40 | echo_style('green', '.'); 41 | } 42 | } 43 | 44 | if ($checkPassed) { 45 | echo_block('success', 'OK', 'Your system is ready to run Symfony projects'); 46 | } else { 47 | echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects'); 48 | 49 | echo_title('Fix the following mandatory requirements', 'red'); 50 | 51 | foreach ($messages['error'] as $helpText) { 52 | echo ' * '.$helpText.PHP_EOL; 53 | } 54 | } 55 | 56 | if (!empty($messages['warning'])) { 57 | echo_title('Optional recommendations to improve your setup', 'yellow'); 58 | 59 | foreach ($messages['warning'] as $helpText) { 60 | echo ' * '.$helpText.PHP_EOL; 61 | } 62 | } 63 | 64 | echo PHP_EOL; 65 | echo_style('title', 'Note'); 66 | echo ' The command console could use a different php.ini file'.PHP_EOL; 67 | echo_style('title', '~~~~'); 68 | echo ' than the one used with your web server. To be on the'.PHP_EOL; 69 | echo ' safe side, please check the requirements from your web'.PHP_EOL; 70 | echo ' server using the '; 71 | echo_style('yellow', 'web/config.php'); 72 | echo ' script.'.PHP_EOL; 73 | echo PHP_EOL; 74 | 75 | exit($checkPassed ? 0 : 1); 76 | 77 | function get_error_message(Requirement $requirement, $lineSize) 78 | { 79 | if ($requirement->isFulfilled()) { 80 | return; 81 | } 82 | 83 | $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; 84 | $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; 85 | 86 | return $errorMessage; 87 | } 88 | 89 | function echo_title($title, $style = null) 90 | { 91 | $style = $style ?: 'title'; 92 | 93 | echo PHP_EOL; 94 | echo_style($style, $title.PHP_EOL); 95 | echo_style($style, str_repeat('~', strlen($title)).PHP_EOL); 96 | echo PHP_EOL; 97 | } 98 | 99 | function echo_style($style, $message) 100 | { 101 | // ANSI color codes 102 | $styles = array( 103 | 'reset' => "\033[0m", 104 | 'red' => "\033[31m", 105 | 'green' => "\033[32m", 106 | 'yellow' => "\033[33m", 107 | 'error' => "\033[37;41m", 108 | 'success' => "\033[37;42m", 109 | 'title' => "\033[34m", 110 | ); 111 | $supports = has_color_support(); 112 | 113 | echo($supports ? $styles[$style] : '').$message.($supports ? $styles['reset'] : ''); 114 | } 115 | 116 | function echo_block($style, $title, $message) 117 | { 118 | $message = ' '.trim($message).' '; 119 | $width = strlen($message); 120 | 121 | echo PHP_EOL.PHP_EOL; 122 | 123 | echo_style($style, str_repeat(' ', $width)); 124 | echo PHP_EOL; 125 | echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT)); 126 | echo PHP_EOL; 127 | echo_style($style, $message); 128 | echo PHP_EOL; 129 | echo_style($style, str_repeat(' ', $width)); 130 | echo PHP_EOL; 131 | } 132 | 133 | function has_color_support() 134 | { 135 | static $support; 136 | 137 | if (null === $support) { 138 | if (DIRECTORY_SEPARATOR == '\\') { 139 | $support = false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); 140 | } else { 141 | $support = function_exists('posix_isatty') && @posix_isatty(STDOUT); 142 | } 143 | } 144 | 145 | return $support; 146 | } 147 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/framework-standard-edition", 3 | "license": "MIT", 4 | "type": "project", 5 | "description": "The \"Symfony Standard Edition\" distribution", 6 | "autoload": { 7 | "psr-4": { "": "src/" }, 8 | "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] 9 | }, 10 | "autoload-dev": { 11 | "psr-4": { "Tests\\": "tests/" } 12 | }, 13 | "require": { 14 | "php": ">=5.5.9", 15 | "symfony/symfony": "3.2.*", 16 | "doctrine/orm": "^2.5", 17 | "doctrine/doctrine-bundle": "^1.6", 18 | "doctrine/doctrine-cache-bundle": "^1.2", 19 | "symfony/swiftmailer-bundle": "^2.3.10", 20 | "symfony/monolog-bundle": "^3.0.2", 21 | "symfony/polyfill-apcu": "^1.0", 22 | "sensio/distribution-bundle": "^5.0", 23 | "sensio/framework-extra-bundle": "^3.0.2", 24 | "incenteev/composer-parameter-handler": "^2.0", 25 | "twig/twig": "^1.0||^2.0" 26 | }, 27 | "require-dev": { 28 | "sensio/generator-bundle": "^3.0", 29 | "symfony/phpunit-bridge": "^3.0" 30 | }, 31 | "scripts": { 32 | "symfony-scripts": [ 33 | "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 34 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 35 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 36 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 37 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 38 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" 39 | ], 40 | "post-install-cmd": [ 41 | "@symfony-scripts" 42 | ], 43 | "post-update-cmd": [ 44 | "@symfony-scripts" 45 | ] 46 | }, 47 | "config": { 48 | "platform": { 49 | "php": "5.5.9" 50 | } 51 | }, 52 | "extra": { 53 | "symfony-app-dir": "app", 54 | "symfony-bin-dir": "bin", 55 | "symfony-var-dir": "var", 56 | "symfony-web-dir": "web", 57 | "symfony-tests-dir": "tests", 58 | "symfony-assets-install": "relative", 59 | "incenteev-parameters": { 60 | "file": "app/config/parameters.yml" 61 | }, 62 | "branch-alias": { 63 | "dev-master": "3.2-dev" 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "68751ebf746fb6fd353cf4a46bf3a88c", 8 | "packages": [ 9 | { 10 | "name": "doctrine/annotations", 11 | "version": "v1.2.7", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/doctrine/annotations.git", 15 | "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535", 20 | "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "doctrine/lexer": "1.*", 25 | "php": ">=5.3.2" 26 | }, 27 | "require-dev": { 28 | "doctrine/cache": "1.*", 29 | "phpunit/phpunit": "4.*" 30 | }, 31 | "type": "library", 32 | "extra": { 33 | "branch-alias": { 34 | "dev-master": "1.3.x-dev" 35 | } 36 | }, 37 | "autoload": { 38 | "psr-0": { 39 | "Doctrine\\Common\\Annotations\\": "lib/" 40 | } 41 | }, 42 | "notification-url": "https://packagist.org/downloads/", 43 | "license": [ 44 | "MIT" 45 | ], 46 | "authors": [ 47 | { 48 | "name": "Roman Borschel", 49 | "email": "roman@code-factory.org" 50 | }, 51 | { 52 | "name": "Benjamin Eberlei", 53 | "email": "kontakt@beberlei.de" 54 | }, 55 | { 56 | "name": "Guilherme Blanco", 57 | "email": "guilhermeblanco@gmail.com" 58 | }, 59 | { 60 | "name": "Jonathan Wage", 61 | "email": "jonwage@gmail.com" 62 | }, 63 | { 64 | "name": "Johannes Schmitt", 65 | "email": "schmittjoh@gmail.com" 66 | } 67 | ], 68 | "description": "Docblock Annotations Parser", 69 | "homepage": "http://www.doctrine-project.org", 70 | "keywords": [ 71 | "annotations", 72 | "docblock", 73 | "parser" 74 | ], 75 | "time": "2015-08-31T12:32:49+00:00" 76 | }, 77 | { 78 | "name": "doctrine/cache", 79 | "version": "v1.6.1", 80 | "source": { 81 | "type": "git", 82 | "url": "https://github.com/doctrine/cache.git", 83 | "reference": "b6f544a20f4807e81f7044d31e679ccbb1866dc3" 84 | }, 85 | "dist": { 86 | "type": "zip", 87 | "url": "https://api.github.com/repos/doctrine/cache/zipball/b6f544a20f4807e81f7044d31e679ccbb1866dc3", 88 | "reference": "b6f544a20f4807e81f7044d31e679ccbb1866dc3", 89 | "shasum": "" 90 | }, 91 | "require": { 92 | "php": "~5.5|~7.0" 93 | }, 94 | "conflict": { 95 | "doctrine/common": ">2.2,<2.4" 96 | }, 97 | "require-dev": { 98 | "phpunit/phpunit": "~4.8|~5.0", 99 | "predis/predis": "~1.0", 100 | "satooshi/php-coveralls": "~0.6" 101 | }, 102 | "type": "library", 103 | "extra": { 104 | "branch-alias": { 105 | "dev-master": "1.6.x-dev" 106 | } 107 | }, 108 | "autoload": { 109 | "psr-4": { 110 | "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" 111 | } 112 | }, 113 | "notification-url": "https://packagist.org/downloads/", 114 | "license": [ 115 | "MIT" 116 | ], 117 | "authors": [ 118 | { 119 | "name": "Roman Borschel", 120 | "email": "roman@code-factory.org" 121 | }, 122 | { 123 | "name": "Benjamin Eberlei", 124 | "email": "kontakt@beberlei.de" 125 | }, 126 | { 127 | "name": "Guilherme Blanco", 128 | "email": "guilhermeblanco@gmail.com" 129 | }, 130 | { 131 | "name": "Jonathan Wage", 132 | "email": "jonwage@gmail.com" 133 | }, 134 | { 135 | "name": "Johannes Schmitt", 136 | "email": "schmittjoh@gmail.com" 137 | } 138 | ], 139 | "description": "Caching library offering an object-oriented API for many cache backends", 140 | "homepage": "http://www.doctrine-project.org", 141 | "keywords": [ 142 | "cache", 143 | "caching" 144 | ], 145 | "time": "2016-10-29T11:16:17+00:00" 146 | }, 147 | { 148 | "name": "doctrine/collections", 149 | "version": "v1.3.0", 150 | "source": { 151 | "type": "git", 152 | "url": "https://github.com/doctrine/collections.git", 153 | "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a" 154 | }, 155 | "dist": { 156 | "type": "zip", 157 | "url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a", 158 | "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a", 159 | "shasum": "" 160 | }, 161 | "require": { 162 | "php": ">=5.3.2" 163 | }, 164 | "require-dev": { 165 | "phpunit/phpunit": "~4.0" 166 | }, 167 | "type": "library", 168 | "extra": { 169 | "branch-alias": { 170 | "dev-master": "1.2.x-dev" 171 | } 172 | }, 173 | "autoload": { 174 | "psr-0": { 175 | "Doctrine\\Common\\Collections\\": "lib/" 176 | } 177 | }, 178 | "notification-url": "https://packagist.org/downloads/", 179 | "license": [ 180 | "MIT" 181 | ], 182 | "authors": [ 183 | { 184 | "name": "Roman Borschel", 185 | "email": "roman@code-factory.org" 186 | }, 187 | { 188 | "name": "Benjamin Eberlei", 189 | "email": "kontakt@beberlei.de" 190 | }, 191 | { 192 | "name": "Guilherme Blanco", 193 | "email": "guilhermeblanco@gmail.com" 194 | }, 195 | { 196 | "name": "Jonathan Wage", 197 | "email": "jonwage@gmail.com" 198 | }, 199 | { 200 | "name": "Johannes Schmitt", 201 | "email": "schmittjoh@gmail.com" 202 | } 203 | ], 204 | "description": "Collections Abstraction library", 205 | "homepage": "http://www.doctrine-project.org", 206 | "keywords": [ 207 | "array", 208 | "collections", 209 | "iterator" 210 | ], 211 | "time": "2015-04-14T22:21:58+00:00" 212 | }, 213 | { 214 | "name": "doctrine/common", 215 | "version": "v2.6.2", 216 | "source": { 217 | "type": "git", 218 | "url": "https://github.com/doctrine/common.git", 219 | "reference": "7bce00698899aa2c06fe7365c76e4d78ddb15fa3" 220 | }, 221 | "dist": { 222 | "type": "zip", 223 | "url": "https://api.github.com/repos/doctrine/common/zipball/7bce00698899aa2c06fe7365c76e4d78ddb15fa3", 224 | "reference": "7bce00698899aa2c06fe7365c76e4d78ddb15fa3", 225 | "shasum": "" 226 | }, 227 | "require": { 228 | "doctrine/annotations": "1.*", 229 | "doctrine/cache": "1.*", 230 | "doctrine/collections": "1.*", 231 | "doctrine/inflector": "1.*", 232 | "doctrine/lexer": "1.*", 233 | "php": "~5.5|~7.0" 234 | }, 235 | "require-dev": { 236 | "phpunit/phpunit": "~4.8|~5.0" 237 | }, 238 | "type": "library", 239 | "extra": { 240 | "branch-alias": { 241 | "dev-master": "2.7.x-dev" 242 | } 243 | }, 244 | "autoload": { 245 | "psr-4": { 246 | "Doctrine\\Common\\": "lib/Doctrine/Common" 247 | } 248 | }, 249 | "notification-url": "https://packagist.org/downloads/", 250 | "license": [ 251 | "MIT" 252 | ], 253 | "authors": [ 254 | { 255 | "name": "Roman Borschel", 256 | "email": "roman@code-factory.org" 257 | }, 258 | { 259 | "name": "Benjamin Eberlei", 260 | "email": "kontakt@beberlei.de" 261 | }, 262 | { 263 | "name": "Guilherme Blanco", 264 | "email": "guilhermeblanco@gmail.com" 265 | }, 266 | { 267 | "name": "Jonathan Wage", 268 | "email": "jonwage@gmail.com" 269 | }, 270 | { 271 | "name": "Johannes Schmitt", 272 | "email": "schmittjoh@gmail.com" 273 | } 274 | ], 275 | "description": "Common Library for Doctrine projects", 276 | "homepage": "http://www.doctrine-project.org", 277 | "keywords": [ 278 | "annotations", 279 | "collections", 280 | "eventmanager", 281 | "persistence", 282 | "spl" 283 | ], 284 | "time": "2016-11-30T16:50:46+00:00" 285 | }, 286 | { 287 | "name": "doctrine/dbal", 288 | "version": "v2.5.12", 289 | "source": { 290 | "type": "git", 291 | "url": "https://github.com/doctrine/dbal.git", 292 | "reference": "7b9e911f9d8b30d43b96853dab26898c710d8f44" 293 | }, 294 | "dist": { 295 | "type": "zip", 296 | "url": "https://api.github.com/repos/doctrine/dbal/zipball/7b9e911f9d8b30d43b96853dab26898c710d8f44", 297 | "reference": "7b9e911f9d8b30d43b96853dab26898c710d8f44", 298 | "shasum": "" 299 | }, 300 | "require": { 301 | "doctrine/common": ">=2.4,<2.8-dev", 302 | "php": ">=5.3.2" 303 | }, 304 | "require-dev": { 305 | "phpunit/phpunit": "4.*", 306 | "symfony/console": "2.*||^3.0" 307 | }, 308 | "suggest": { 309 | "symfony/console": "For helpful console commands such as SQL execution and import of files." 310 | }, 311 | "bin": [ 312 | "bin/doctrine-dbal" 313 | ], 314 | "type": "library", 315 | "extra": { 316 | "branch-alias": { 317 | "dev-master": "2.5.x-dev" 318 | } 319 | }, 320 | "autoload": { 321 | "psr-0": { 322 | "Doctrine\\DBAL\\": "lib/" 323 | } 324 | }, 325 | "notification-url": "https://packagist.org/downloads/", 326 | "license": [ 327 | "MIT" 328 | ], 329 | "authors": [ 330 | { 331 | "name": "Roman Borschel", 332 | "email": "roman@code-factory.org" 333 | }, 334 | { 335 | "name": "Benjamin Eberlei", 336 | "email": "kontakt@beberlei.de" 337 | }, 338 | { 339 | "name": "Guilherme Blanco", 340 | "email": "guilhermeblanco@gmail.com" 341 | }, 342 | { 343 | "name": "Jonathan Wage", 344 | "email": "jonwage@gmail.com" 345 | } 346 | ], 347 | "description": "Database Abstraction Layer", 348 | "homepage": "http://www.doctrine-project.org", 349 | "keywords": [ 350 | "database", 351 | "dbal", 352 | "persistence", 353 | "queryobject" 354 | ], 355 | "time": "2017-02-08T12:53:47+00:00" 356 | }, 357 | { 358 | "name": "doctrine/doctrine-bundle", 359 | "version": "1.6.7", 360 | "source": { 361 | "type": "git", 362 | "url": "https://github.com/doctrine/DoctrineBundle.git", 363 | "reference": "a01d99bc6c9a6c8a8ace0012690099dd957ce9b9" 364 | }, 365 | "dist": { 366 | "type": "zip", 367 | "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/a01d99bc6c9a6c8a8ace0012690099dd957ce9b9", 368 | "reference": "a01d99bc6c9a6c8a8ace0012690099dd957ce9b9", 369 | "shasum": "" 370 | }, 371 | "require": { 372 | "doctrine/dbal": "~2.3", 373 | "doctrine/doctrine-cache-bundle": "~1.0", 374 | "jdorn/sql-formatter": "~1.1", 375 | "php": ">=5.5.9", 376 | "symfony/console": "~2.7|~3.0", 377 | "symfony/dependency-injection": "~2.7|~3.0", 378 | "symfony/doctrine-bridge": "~2.7|~3.0", 379 | "symfony/framework-bundle": "~2.7|~3.0" 380 | }, 381 | "require-dev": { 382 | "doctrine/orm": "~2.3", 383 | "phpunit/phpunit": "~4", 384 | "satooshi/php-coveralls": "^1.0", 385 | "symfony/phpunit-bridge": "~2.7|~3.0", 386 | "symfony/property-info": "~2.8|~3.0", 387 | "symfony/validator": "~2.7|~3.0", 388 | "symfony/yaml": "~2.7|~3.0", 389 | "twig/twig": "~1.10|~2.0" 390 | }, 391 | "suggest": { 392 | "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", 393 | "symfony/web-profiler-bundle": "To use the data collector." 394 | }, 395 | "type": "symfony-bundle", 396 | "extra": { 397 | "branch-alias": { 398 | "dev-master": "1.6.x-dev" 399 | } 400 | }, 401 | "autoload": { 402 | "psr-4": { 403 | "Doctrine\\Bundle\\DoctrineBundle\\": "" 404 | } 405 | }, 406 | "notification-url": "https://packagist.org/downloads/", 407 | "license": [ 408 | "MIT" 409 | ], 410 | "authors": [ 411 | { 412 | "name": "Symfony Community", 413 | "homepage": "http://symfony.com/contributors" 414 | }, 415 | { 416 | "name": "Benjamin Eberlei", 417 | "email": "kontakt@beberlei.de" 418 | }, 419 | { 420 | "name": "Doctrine Project", 421 | "homepage": "http://www.doctrine-project.org/" 422 | }, 423 | { 424 | "name": "Fabien Potencier", 425 | "email": "fabien@symfony.com" 426 | } 427 | ], 428 | "description": "Symfony DoctrineBundle", 429 | "homepage": "http://www.doctrine-project.org", 430 | "keywords": [ 431 | "database", 432 | "dbal", 433 | "orm", 434 | "persistence" 435 | ], 436 | "time": "2017-01-16T12:01:26+00:00" 437 | }, 438 | { 439 | "name": "doctrine/doctrine-cache-bundle", 440 | "version": "1.3.0", 441 | "source": { 442 | "type": "git", 443 | "url": "https://github.com/doctrine/DoctrineCacheBundle.git", 444 | "reference": "18c600a9b82f6454d2e81ca4957cdd56a1cf3504" 445 | }, 446 | "dist": { 447 | "type": "zip", 448 | "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/18c600a9b82f6454d2e81ca4957cdd56a1cf3504", 449 | "reference": "18c600a9b82f6454d2e81ca4957cdd56a1cf3504", 450 | "shasum": "" 451 | }, 452 | "require": { 453 | "doctrine/cache": "^1.4.2", 454 | "doctrine/inflector": "~1.0", 455 | "php": ">=5.3.2", 456 | "symfony/doctrine-bridge": "~2.2|~3.0" 457 | }, 458 | "require-dev": { 459 | "instaclick/coding-standard": "~1.1", 460 | "instaclick/object-calisthenics-sniffs": "dev-master", 461 | "instaclick/symfony2-coding-standard": "dev-remaster", 462 | "phpunit/phpunit": "~4", 463 | "predis/predis": "~0.8", 464 | "satooshi/php-coveralls": "~0.6.1", 465 | "squizlabs/php_codesniffer": "~1.5", 466 | "symfony/console": "~2.2|~3.0", 467 | "symfony/finder": "~2.2|~3.0", 468 | "symfony/framework-bundle": "~2.2|~3.0", 469 | "symfony/phpunit-bridge": "~2.7|~3.0", 470 | "symfony/security-acl": "~2.3|~3.0", 471 | "symfony/validator": "~2.2|~3.0", 472 | "symfony/yaml": "~2.2|~3.0" 473 | }, 474 | "suggest": { 475 | "symfony/security-acl": "For using this bundle to cache ACLs" 476 | }, 477 | "type": "symfony-bundle", 478 | "extra": { 479 | "branch-alias": { 480 | "dev-master": "1.2.x-dev" 481 | } 482 | }, 483 | "autoload": { 484 | "psr-4": { 485 | "Doctrine\\Bundle\\DoctrineCacheBundle\\": "" 486 | } 487 | }, 488 | "notification-url": "https://packagist.org/downloads/", 489 | "license": [ 490 | "MIT" 491 | ], 492 | "authors": [ 493 | { 494 | "name": "Symfony Community", 495 | "homepage": "http://symfony.com/contributors" 496 | }, 497 | { 498 | "name": "Benjamin Eberlei", 499 | "email": "kontakt@beberlei.de" 500 | }, 501 | { 502 | "name": "Fabio B. Silva", 503 | "email": "fabio.bat.silva@gmail.com" 504 | }, 505 | { 506 | "name": "Guilherme Blanco", 507 | "email": "guilhermeblanco@hotmail.com" 508 | }, 509 | { 510 | "name": "Doctrine Project", 511 | "homepage": "http://www.doctrine-project.org/" 512 | }, 513 | { 514 | "name": "Fabien Potencier", 515 | "email": "fabien@symfony.com" 516 | } 517 | ], 518 | "description": "Symfony Bundle for Doctrine Cache", 519 | "homepage": "http://www.doctrine-project.org", 520 | "keywords": [ 521 | "cache", 522 | "caching" 523 | ], 524 | "time": "2016-01-26T17:28:51+00:00" 525 | }, 526 | { 527 | "name": "doctrine/inflector", 528 | "version": "v1.1.0", 529 | "source": { 530 | "type": "git", 531 | "url": "https://github.com/doctrine/inflector.git", 532 | "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" 533 | }, 534 | "dist": { 535 | "type": "zip", 536 | "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", 537 | "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", 538 | "shasum": "" 539 | }, 540 | "require": { 541 | "php": ">=5.3.2" 542 | }, 543 | "require-dev": { 544 | "phpunit/phpunit": "4.*" 545 | }, 546 | "type": "library", 547 | "extra": { 548 | "branch-alias": { 549 | "dev-master": "1.1.x-dev" 550 | } 551 | }, 552 | "autoload": { 553 | "psr-0": { 554 | "Doctrine\\Common\\Inflector\\": "lib/" 555 | } 556 | }, 557 | "notification-url": "https://packagist.org/downloads/", 558 | "license": [ 559 | "MIT" 560 | ], 561 | "authors": [ 562 | { 563 | "name": "Roman Borschel", 564 | "email": "roman@code-factory.org" 565 | }, 566 | { 567 | "name": "Benjamin Eberlei", 568 | "email": "kontakt@beberlei.de" 569 | }, 570 | { 571 | "name": "Guilherme Blanco", 572 | "email": "guilhermeblanco@gmail.com" 573 | }, 574 | { 575 | "name": "Jonathan Wage", 576 | "email": "jonwage@gmail.com" 577 | }, 578 | { 579 | "name": "Johannes Schmitt", 580 | "email": "schmittjoh@gmail.com" 581 | } 582 | ], 583 | "description": "Common String Manipulations with regard to casing and singular/plural rules.", 584 | "homepage": "http://www.doctrine-project.org", 585 | "keywords": [ 586 | "inflection", 587 | "pluralize", 588 | "singularize", 589 | "string" 590 | ], 591 | "time": "2015-11-06T14:35:42+00:00" 592 | }, 593 | { 594 | "name": "doctrine/instantiator", 595 | "version": "1.0.5", 596 | "source": { 597 | "type": "git", 598 | "url": "https://github.com/doctrine/instantiator.git", 599 | "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" 600 | }, 601 | "dist": { 602 | "type": "zip", 603 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", 604 | "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", 605 | "shasum": "" 606 | }, 607 | "require": { 608 | "php": ">=5.3,<8.0-DEV" 609 | }, 610 | "require-dev": { 611 | "athletic/athletic": "~0.1.8", 612 | "ext-pdo": "*", 613 | "ext-phar": "*", 614 | "phpunit/phpunit": "~4.0", 615 | "squizlabs/php_codesniffer": "~2.0" 616 | }, 617 | "type": "library", 618 | "extra": { 619 | "branch-alias": { 620 | "dev-master": "1.0.x-dev" 621 | } 622 | }, 623 | "autoload": { 624 | "psr-4": { 625 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 626 | } 627 | }, 628 | "notification-url": "https://packagist.org/downloads/", 629 | "license": [ 630 | "MIT" 631 | ], 632 | "authors": [ 633 | { 634 | "name": "Marco Pivetta", 635 | "email": "ocramius@gmail.com", 636 | "homepage": "http://ocramius.github.com/" 637 | } 638 | ], 639 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 640 | "homepage": "https://github.com/doctrine/instantiator", 641 | "keywords": [ 642 | "constructor", 643 | "instantiate" 644 | ], 645 | "time": "2015-06-14T21:17:01+00:00" 646 | }, 647 | { 648 | "name": "doctrine/lexer", 649 | "version": "v1.0.1", 650 | "source": { 651 | "type": "git", 652 | "url": "https://github.com/doctrine/lexer.git", 653 | "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" 654 | }, 655 | "dist": { 656 | "type": "zip", 657 | "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", 658 | "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", 659 | "shasum": "" 660 | }, 661 | "require": { 662 | "php": ">=5.3.2" 663 | }, 664 | "type": "library", 665 | "extra": { 666 | "branch-alias": { 667 | "dev-master": "1.0.x-dev" 668 | } 669 | }, 670 | "autoload": { 671 | "psr-0": { 672 | "Doctrine\\Common\\Lexer\\": "lib/" 673 | } 674 | }, 675 | "notification-url": "https://packagist.org/downloads/", 676 | "license": [ 677 | "MIT" 678 | ], 679 | "authors": [ 680 | { 681 | "name": "Roman Borschel", 682 | "email": "roman@code-factory.org" 683 | }, 684 | { 685 | "name": "Guilherme Blanco", 686 | "email": "guilhermeblanco@gmail.com" 687 | }, 688 | { 689 | "name": "Johannes Schmitt", 690 | "email": "schmittjoh@gmail.com" 691 | } 692 | ], 693 | "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", 694 | "homepage": "http://www.doctrine-project.org", 695 | "keywords": [ 696 | "lexer", 697 | "parser" 698 | ], 699 | "time": "2014-09-09T13:34:57+00:00" 700 | }, 701 | { 702 | "name": "doctrine/orm", 703 | "version": "v2.5.6", 704 | "source": { 705 | "type": "git", 706 | "url": "https://github.com/doctrine/doctrine2.git", 707 | "reference": "e6c434196c8ef058239aaa0724b4aadb0107940b" 708 | }, 709 | "dist": { 710 | "type": "zip", 711 | "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/e6c434196c8ef058239aaa0724b4aadb0107940b", 712 | "reference": "e6c434196c8ef058239aaa0724b4aadb0107940b", 713 | "shasum": "" 714 | }, 715 | "require": { 716 | "doctrine/cache": "~1.4", 717 | "doctrine/collections": "~1.2", 718 | "doctrine/common": ">=2.5-dev,<2.8-dev", 719 | "doctrine/dbal": ">=2.5-dev,<2.6-dev", 720 | "doctrine/instantiator": "~1.0.1", 721 | "ext-pdo": "*", 722 | "php": ">=5.4", 723 | "symfony/console": "~2.5|~3.0" 724 | }, 725 | "require-dev": { 726 | "phpunit/phpunit": "~4.0", 727 | "symfony/yaml": "~2.3|~3.0" 728 | }, 729 | "suggest": { 730 | "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" 731 | }, 732 | "bin": [ 733 | "bin/doctrine", 734 | "bin/doctrine.php" 735 | ], 736 | "type": "library", 737 | "extra": { 738 | "branch-alias": { 739 | "dev-master": "2.6.x-dev" 740 | } 741 | }, 742 | "autoload": { 743 | "psr-0": { 744 | "Doctrine\\ORM\\": "lib/" 745 | } 746 | }, 747 | "notification-url": "https://packagist.org/downloads/", 748 | "license": [ 749 | "MIT" 750 | ], 751 | "authors": [ 752 | { 753 | "name": "Roman Borschel", 754 | "email": "roman@code-factory.org" 755 | }, 756 | { 757 | "name": "Benjamin Eberlei", 758 | "email": "kontakt@beberlei.de" 759 | }, 760 | { 761 | "name": "Guilherme Blanco", 762 | "email": "guilhermeblanco@gmail.com" 763 | }, 764 | { 765 | "name": "Jonathan Wage", 766 | "email": "jonwage@gmail.com" 767 | } 768 | ], 769 | "description": "Object-Relational-Mapper for PHP", 770 | "homepage": "http://www.doctrine-project.org", 771 | "keywords": [ 772 | "database", 773 | "orm" 774 | ], 775 | "time": "2016-12-18T15:42:34+00:00" 776 | }, 777 | { 778 | "name": "incenteev/composer-parameter-handler", 779 | "version": "v2.1.2", 780 | "source": { 781 | "type": "git", 782 | "url": "https://github.com/Incenteev/ParameterHandler.git", 783 | "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" 784 | }, 785 | "dist": { 786 | "type": "zip", 787 | "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", 788 | "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", 789 | "shasum": "" 790 | }, 791 | "require": { 792 | "php": ">=5.3.3", 793 | "symfony/yaml": "~2.3|~3.0" 794 | }, 795 | "require-dev": { 796 | "composer/composer": "1.0.*@dev", 797 | "phpspec/prophecy-phpunit": "~1.0", 798 | "symfony/filesystem": "~2.2" 799 | }, 800 | "type": "library", 801 | "extra": { 802 | "branch-alias": { 803 | "dev-master": "2.1.x-dev" 804 | } 805 | }, 806 | "autoload": { 807 | "psr-4": { 808 | "Incenteev\\ParameterHandler\\": "" 809 | } 810 | }, 811 | "notification-url": "https://packagist.org/downloads/", 812 | "license": [ 813 | "MIT" 814 | ], 815 | "authors": [ 816 | { 817 | "name": "Christophe Coevoet", 818 | "email": "stof@notk.org" 819 | } 820 | ], 821 | "description": "Composer script handling your ignored parameter file", 822 | "homepage": "https://github.com/Incenteev/ParameterHandler", 823 | "keywords": [ 824 | "parameters management" 825 | ], 826 | "time": "2015-11-10T17:04:01+00:00" 827 | }, 828 | { 829 | "name": "jdorn/sql-formatter", 830 | "version": "v1.2.17", 831 | "source": { 832 | "type": "git", 833 | "url": "https://github.com/jdorn/sql-formatter.git", 834 | "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc" 835 | }, 836 | "dist": { 837 | "type": "zip", 838 | "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/64990d96e0959dff8e059dfcdc1af130728d92bc", 839 | "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc", 840 | "shasum": "" 841 | }, 842 | "require": { 843 | "php": ">=5.2.4" 844 | }, 845 | "require-dev": { 846 | "phpunit/phpunit": "3.7.*" 847 | }, 848 | "type": "library", 849 | "extra": { 850 | "branch-alias": { 851 | "dev-master": "1.3.x-dev" 852 | } 853 | }, 854 | "autoload": { 855 | "classmap": [ 856 | "lib" 857 | ] 858 | }, 859 | "notification-url": "https://packagist.org/downloads/", 860 | "license": [ 861 | "MIT" 862 | ], 863 | "authors": [ 864 | { 865 | "name": "Jeremy Dorn", 866 | "email": "jeremy@jeremydorn.com", 867 | "homepage": "http://jeremydorn.com/" 868 | } 869 | ], 870 | "description": "a PHP SQL highlighting library", 871 | "homepage": "https://github.com/jdorn/sql-formatter/", 872 | "keywords": [ 873 | "highlight", 874 | "sql" 875 | ], 876 | "time": "2014-01-12T16:20:24+00:00" 877 | }, 878 | { 879 | "name": "monolog/monolog", 880 | "version": "1.22.0", 881 | "source": { 882 | "type": "git", 883 | "url": "https://github.com/Seldaek/monolog.git", 884 | "reference": "bad29cb8d18ab0315e6c477751418a82c850d558" 885 | }, 886 | "dist": { 887 | "type": "zip", 888 | "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bad29cb8d18ab0315e6c477751418a82c850d558", 889 | "reference": "bad29cb8d18ab0315e6c477751418a82c850d558", 890 | "shasum": "" 891 | }, 892 | "require": { 893 | "php": ">=5.3.0", 894 | "psr/log": "~1.0" 895 | }, 896 | "provide": { 897 | "psr/log-implementation": "1.0.0" 898 | }, 899 | "require-dev": { 900 | "aws/aws-sdk-php": "^2.4.9 || ^3.0", 901 | "doctrine/couchdb": "~1.0@dev", 902 | "graylog2/gelf-php": "~1.0", 903 | "jakub-onderka/php-parallel-lint": "0.9", 904 | "php-amqplib/php-amqplib": "~2.4", 905 | "php-console/php-console": "^3.1.3", 906 | "phpunit/phpunit": "~4.5", 907 | "phpunit/phpunit-mock-objects": "2.3.0", 908 | "ruflin/elastica": ">=0.90 <3.0", 909 | "sentry/sentry": "^0.13", 910 | "swiftmailer/swiftmailer": "~5.3" 911 | }, 912 | "suggest": { 913 | "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 914 | "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 915 | "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 916 | "ext-mongo": "Allow sending log messages to a MongoDB server", 917 | "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 918 | "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 919 | "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 920 | "php-console/php-console": "Allow sending log messages to Google Chrome", 921 | "rollbar/rollbar": "Allow sending log messages to Rollbar", 922 | "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 923 | "sentry/sentry": "Allow sending log messages to a Sentry server" 924 | }, 925 | "type": "library", 926 | "extra": { 927 | "branch-alias": { 928 | "dev-master": "2.0.x-dev" 929 | } 930 | }, 931 | "autoload": { 932 | "psr-4": { 933 | "Monolog\\": "src/Monolog" 934 | } 935 | }, 936 | "notification-url": "https://packagist.org/downloads/", 937 | "license": [ 938 | "MIT" 939 | ], 940 | "authors": [ 941 | { 942 | "name": "Jordi Boggiano", 943 | "email": "j.boggiano@seld.be", 944 | "homepage": "http://seld.be" 945 | } 946 | ], 947 | "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 948 | "homepage": "http://github.com/Seldaek/monolog", 949 | "keywords": [ 950 | "log", 951 | "logging", 952 | "psr-3" 953 | ], 954 | "time": "2016-11-26T00:15:39+00:00" 955 | }, 956 | { 957 | "name": "paragonie/random_compat", 958 | "version": "v2.0.4", 959 | "source": { 960 | "type": "git", 961 | "url": "https://github.com/paragonie/random_compat.git", 962 | "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e" 963 | }, 964 | "dist": { 965 | "type": "zip", 966 | "url": "https://api.github.com/repos/paragonie/random_compat/zipball/a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", 967 | "reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e", 968 | "shasum": "" 969 | }, 970 | "require": { 971 | "php": ">=5.2.0" 972 | }, 973 | "require-dev": { 974 | "phpunit/phpunit": "4.*|5.*" 975 | }, 976 | "suggest": { 977 | "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 978 | }, 979 | "type": "library", 980 | "autoload": { 981 | "files": [ 982 | "lib/random.php" 983 | ] 984 | }, 985 | "notification-url": "https://packagist.org/downloads/", 986 | "license": [ 987 | "MIT" 988 | ], 989 | "authors": [ 990 | { 991 | "name": "Paragon Initiative Enterprises", 992 | "email": "security@paragonie.com", 993 | "homepage": "https://paragonie.com" 994 | } 995 | ], 996 | "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", 997 | "keywords": [ 998 | "csprng", 999 | "pseudorandom", 1000 | "random" 1001 | ], 1002 | "time": "2016-11-07T23:38:38+00:00" 1003 | }, 1004 | { 1005 | "name": "psr/cache", 1006 | "version": "1.0.1", 1007 | "source": { 1008 | "type": "git", 1009 | "url": "https://github.com/php-fig/cache.git", 1010 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 1011 | }, 1012 | "dist": { 1013 | "type": "zip", 1014 | "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 1015 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 1016 | "shasum": "" 1017 | }, 1018 | "require": { 1019 | "php": ">=5.3.0" 1020 | }, 1021 | "type": "library", 1022 | "extra": { 1023 | "branch-alias": { 1024 | "dev-master": "1.0.x-dev" 1025 | } 1026 | }, 1027 | "autoload": { 1028 | "psr-4": { 1029 | "Psr\\Cache\\": "src/" 1030 | } 1031 | }, 1032 | "notification-url": "https://packagist.org/downloads/", 1033 | "license": [ 1034 | "MIT" 1035 | ], 1036 | "authors": [ 1037 | { 1038 | "name": "PHP-FIG", 1039 | "homepage": "http://www.php-fig.org/" 1040 | } 1041 | ], 1042 | "description": "Common interface for caching libraries", 1043 | "keywords": [ 1044 | "cache", 1045 | "psr", 1046 | "psr-6" 1047 | ], 1048 | "time": "2016-08-06T20:24:11+00:00" 1049 | }, 1050 | { 1051 | "name": "psr/log", 1052 | "version": "1.0.2", 1053 | "source": { 1054 | "type": "git", 1055 | "url": "https://github.com/php-fig/log.git", 1056 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" 1057 | }, 1058 | "dist": { 1059 | "type": "zip", 1060 | "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 1061 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 1062 | "shasum": "" 1063 | }, 1064 | "require": { 1065 | "php": ">=5.3.0" 1066 | }, 1067 | "type": "library", 1068 | "extra": { 1069 | "branch-alias": { 1070 | "dev-master": "1.0.x-dev" 1071 | } 1072 | }, 1073 | "autoload": { 1074 | "psr-4": { 1075 | "Psr\\Log\\": "Psr/Log/" 1076 | } 1077 | }, 1078 | "notification-url": "https://packagist.org/downloads/", 1079 | "license": [ 1080 | "MIT" 1081 | ], 1082 | "authors": [ 1083 | { 1084 | "name": "PHP-FIG", 1085 | "homepage": "http://www.php-fig.org/" 1086 | } 1087 | ], 1088 | "description": "Common interface for logging libraries", 1089 | "homepage": "https://github.com/php-fig/log", 1090 | "keywords": [ 1091 | "log", 1092 | "psr", 1093 | "psr-3" 1094 | ], 1095 | "time": "2016-10-10T12:19:37+00:00" 1096 | }, 1097 | { 1098 | "name": "sensio/distribution-bundle", 1099 | "version": "v5.0.18", 1100 | "source": { 1101 | "type": "git", 1102 | "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", 1103 | "reference": "17846680901003d26d823c2e3ac9228702837916" 1104 | }, 1105 | "dist": { 1106 | "type": "zip", 1107 | "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/17846680901003d26d823c2e3ac9228702837916", 1108 | "reference": "17846680901003d26d823c2e3ac9228702837916", 1109 | "shasum": "" 1110 | }, 1111 | "require": { 1112 | "php": ">=5.3.9", 1113 | "sensiolabs/security-checker": "~3.0|~4.0", 1114 | "symfony/class-loader": "~2.3|~3.0", 1115 | "symfony/config": "~2.3|~3.0", 1116 | "symfony/dependency-injection": "~2.3|~3.0", 1117 | "symfony/filesystem": "~2.3|~3.0", 1118 | "symfony/http-kernel": "~2.3|~3.0", 1119 | "symfony/process": "~2.3|~3.0" 1120 | }, 1121 | "type": "symfony-bundle", 1122 | "extra": { 1123 | "branch-alias": { 1124 | "dev-master": "5.0.x-dev" 1125 | } 1126 | }, 1127 | "autoload": { 1128 | "psr-4": { 1129 | "Sensio\\Bundle\\DistributionBundle\\": "" 1130 | } 1131 | }, 1132 | "notification-url": "https://packagist.org/downloads/", 1133 | "license": [ 1134 | "MIT" 1135 | ], 1136 | "authors": [ 1137 | { 1138 | "name": "Fabien Potencier", 1139 | "email": "fabien@symfony.com" 1140 | } 1141 | ], 1142 | "description": "Base bundle for Symfony Distributions", 1143 | "keywords": [ 1144 | "configuration", 1145 | "distribution" 1146 | ], 1147 | "time": "2017-01-10T14:58:45+00:00" 1148 | }, 1149 | { 1150 | "name": "sensio/framework-extra-bundle", 1151 | "version": "v3.0.22", 1152 | "source": { 1153 | "type": "git", 1154 | "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", 1155 | "reference": "1c66c2e3b8f17f06178142386aff5a9f8057a104" 1156 | }, 1157 | "dist": { 1158 | "type": "zip", 1159 | "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/1c66c2e3b8f17f06178142386aff5a9f8057a104", 1160 | "reference": "1c66c2e3b8f17f06178142386aff5a9f8057a104", 1161 | "shasum": "" 1162 | }, 1163 | "require": { 1164 | "doctrine/common": "~2.2", 1165 | "symfony/dependency-injection": "~2.3|~3.0", 1166 | "symfony/framework-bundle": "~2.3|~3.0" 1167 | }, 1168 | "require-dev": { 1169 | "doctrine/doctrine-bundle": "~1.5", 1170 | "doctrine/orm": "~2.4,>=2.4.5", 1171 | "symfony/asset": "~2.7|~3.0", 1172 | "symfony/browser-kit": "~2.3|~3.0", 1173 | "symfony/dom-crawler": "~2.3|~3.0", 1174 | "symfony/expression-language": "~2.4|~3.0", 1175 | "symfony/finder": "~2.3|~3.0", 1176 | "symfony/phpunit-bridge": "~3.2", 1177 | "symfony/psr-http-message-bridge": "^0.3", 1178 | "symfony/security-bundle": "~2.4|~3.0", 1179 | "symfony/templating": "~2.3|~3.0", 1180 | "symfony/translation": "~2.3|~3.0", 1181 | "symfony/twig-bundle": "~2.3|~3.0", 1182 | "symfony/yaml": "~2.3|~3.0", 1183 | "twig/twig": "~1.12|~2.0", 1184 | "zendframework/zend-diactoros": "^1.3" 1185 | }, 1186 | "suggest": { 1187 | "symfony/expression-language": "", 1188 | "symfony/psr-http-message-bridge": "To use the PSR-7 converters", 1189 | "symfony/security-bundle": "" 1190 | }, 1191 | "type": "symfony-bundle", 1192 | "extra": { 1193 | "branch-alias": { 1194 | "dev-master": "3.0.x-dev" 1195 | } 1196 | }, 1197 | "autoload": { 1198 | "psr-4": { 1199 | "Sensio\\Bundle\\FrameworkExtraBundle\\": "" 1200 | } 1201 | }, 1202 | "notification-url": "https://packagist.org/downloads/", 1203 | "license": [ 1204 | "MIT" 1205 | ], 1206 | "authors": [ 1207 | { 1208 | "name": "Fabien Potencier", 1209 | "email": "fabien@symfony.com" 1210 | } 1211 | ], 1212 | "description": "This bundle provides a way to configure your controllers with annotations", 1213 | "keywords": [ 1214 | "annotations", 1215 | "controllers" 1216 | ], 1217 | "time": "2017-02-15T06:52:30+00:00" 1218 | }, 1219 | { 1220 | "name": "sensiolabs/security-checker", 1221 | "version": "v4.0.0", 1222 | "source": { 1223 | "type": "git", 1224 | "url": "https://github.com/sensiolabs/security-checker.git", 1225 | "reference": "116027b57b568ed61b7b1c80eeb4f6ee9e8c599c" 1226 | }, 1227 | "dist": { 1228 | "type": "zip", 1229 | "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/116027b57b568ed61b7b1c80eeb4f6ee9e8c599c", 1230 | "reference": "116027b57b568ed61b7b1c80eeb4f6ee9e8c599c", 1231 | "shasum": "" 1232 | }, 1233 | "require": { 1234 | "symfony/console": "~2.7|~3.0" 1235 | }, 1236 | "bin": [ 1237 | "security-checker" 1238 | ], 1239 | "type": "library", 1240 | "extra": { 1241 | "branch-alias": { 1242 | "dev-master": "4.0-dev" 1243 | } 1244 | }, 1245 | "autoload": { 1246 | "psr-0": { 1247 | "SensioLabs\\Security": "" 1248 | } 1249 | }, 1250 | "notification-url": "https://packagist.org/downloads/", 1251 | "license": [ 1252 | "MIT" 1253 | ], 1254 | "authors": [ 1255 | { 1256 | "name": "Fabien Potencier", 1257 | "email": "fabien.potencier@gmail.com" 1258 | } 1259 | ], 1260 | "description": "A security checker for your composer.lock", 1261 | "time": "2016-09-23T18:09:57+00:00" 1262 | }, 1263 | { 1264 | "name": "swiftmailer/swiftmailer", 1265 | "version": "v5.4.6", 1266 | "source": { 1267 | "type": "git", 1268 | "url": "https://github.com/swiftmailer/swiftmailer.git", 1269 | "reference": "81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e" 1270 | }, 1271 | "dist": { 1272 | "type": "zip", 1273 | "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e", 1274 | "reference": "81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e", 1275 | "shasum": "" 1276 | }, 1277 | "require": { 1278 | "php": ">=5.3.3" 1279 | }, 1280 | "require-dev": { 1281 | "mockery/mockery": "~0.9.1", 1282 | "symfony/phpunit-bridge": "~3.2" 1283 | }, 1284 | "type": "library", 1285 | "extra": { 1286 | "branch-alias": { 1287 | "dev-master": "5.4-dev" 1288 | } 1289 | }, 1290 | "autoload": { 1291 | "files": [ 1292 | "lib/swift_required.php" 1293 | ] 1294 | }, 1295 | "notification-url": "https://packagist.org/downloads/", 1296 | "license": [ 1297 | "MIT" 1298 | ], 1299 | "authors": [ 1300 | { 1301 | "name": "Chris Corbyn" 1302 | }, 1303 | { 1304 | "name": "Fabien Potencier", 1305 | "email": "fabien@symfony.com" 1306 | } 1307 | ], 1308 | "description": "Swiftmailer, free feature-rich PHP mailer", 1309 | "homepage": "http://swiftmailer.org", 1310 | "keywords": [ 1311 | "email", 1312 | "mail", 1313 | "mailer" 1314 | ], 1315 | "time": "2017-02-13T07:52:53+00:00" 1316 | }, 1317 | { 1318 | "name": "symfony/monolog-bundle", 1319 | "version": "v3.0.3", 1320 | "source": { 1321 | "type": "git", 1322 | "url": "https://github.com/symfony/monolog-bundle.git", 1323 | "reference": "ebce76a39a65495a66c34eb1574cc4b9e35a4e64" 1324 | }, 1325 | "dist": { 1326 | "type": "zip", 1327 | "url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/ebce76a39a65495a66c34eb1574cc4b9e35a4e64", 1328 | "reference": "ebce76a39a65495a66c34eb1574cc4b9e35a4e64", 1329 | "shasum": "" 1330 | }, 1331 | "require": { 1332 | "monolog/monolog": "~1.22", 1333 | "php": ">=5.3.2", 1334 | "symfony/config": "~2.7|~3.0", 1335 | "symfony/dependency-injection": "~2.7|~3.0", 1336 | "symfony/http-kernel": "~2.7|~3.0", 1337 | "symfony/monolog-bridge": "~2.7|~3.0" 1338 | }, 1339 | "require-dev": { 1340 | "phpunit/phpunit": "^4.8", 1341 | "symfony/console": "~2.3|~3.0", 1342 | "symfony/yaml": "~2.3|~3.0" 1343 | }, 1344 | "type": "symfony-bundle", 1345 | "extra": { 1346 | "branch-alias": { 1347 | "dev-master": "3.x-dev" 1348 | } 1349 | }, 1350 | "autoload": { 1351 | "psr-4": { 1352 | "Symfony\\Bundle\\MonologBundle\\": "" 1353 | } 1354 | }, 1355 | "notification-url": "https://packagist.org/downloads/", 1356 | "license": [ 1357 | "MIT" 1358 | ], 1359 | "authors": [ 1360 | { 1361 | "name": "Symfony Community", 1362 | "homepage": "http://symfony.com/contributors" 1363 | }, 1364 | { 1365 | "name": "Fabien Potencier", 1366 | "email": "fabien@symfony.com" 1367 | } 1368 | ], 1369 | "description": "Symfony MonologBundle", 1370 | "homepage": "http://symfony.com", 1371 | "keywords": [ 1372 | "log", 1373 | "logging" 1374 | ], 1375 | "time": "2017-01-10T20:01:51+00:00" 1376 | }, 1377 | { 1378 | "name": "symfony/polyfill-apcu", 1379 | "version": "v1.3.0", 1380 | "source": { 1381 | "type": "git", 1382 | "url": "https://github.com/symfony/polyfill-apcu.git", 1383 | "reference": "5d4474f447403c3348e37b70acc2b95475b7befa" 1384 | }, 1385 | "dist": { 1386 | "type": "zip", 1387 | "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/5d4474f447403c3348e37b70acc2b95475b7befa", 1388 | "reference": "5d4474f447403c3348e37b70acc2b95475b7befa", 1389 | "shasum": "" 1390 | }, 1391 | "require": { 1392 | "php": ">=5.3.3" 1393 | }, 1394 | "type": "library", 1395 | "extra": { 1396 | "branch-alias": { 1397 | "dev-master": "1.3-dev" 1398 | } 1399 | }, 1400 | "autoload": { 1401 | "files": [ 1402 | "bootstrap.php" 1403 | ] 1404 | }, 1405 | "notification-url": "https://packagist.org/downloads/", 1406 | "license": [ 1407 | "MIT" 1408 | ], 1409 | "authors": [ 1410 | { 1411 | "name": "Nicolas Grekas", 1412 | "email": "p@tchwork.com" 1413 | }, 1414 | { 1415 | "name": "Symfony Community", 1416 | "homepage": "https://symfony.com/contributors" 1417 | } 1418 | ], 1419 | "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", 1420 | "homepage": "https://symfony.com", 1421 | "keywords": [ 1422 | "apcu", 1423 | "compatibility", 1424 | "polyfill", 1425 | "portable", 1426 | "shim" 1427 | ], 1428 | "time": "2016-11-14T01:06:16+00:00" 1429 | }, 1430 | { 1431 | "name": "symfony/polyfill-intl-icu", 1432 | "version": "v1.3.0", 1433 | "source": { 1434 | "type": "git", 1435 | "url": "https://github.com/symfony/polyfill-intl-icu.git", 1436 | "reference": "2d6e2b20d457603eefb6e614286c22efca30fdb4" 1437 | }, 1438 | "dist": { 1439 | "type": "zip", 1440 | "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/2d6e2b20d457603eefb6e614286c22efca30fdb4", 1441 | "reference": "2d6e2b20d457603eefb6e614286c22efca30fdb4", 1442 | "shasum": "" 1443 | }, 1444 | "require": { 1445 | "php": ">=5.3.3", 1446 | "symfony/intl": "~2.3|~3.0" 1447 | }, 1448 | "suggest": { 1449 | "ext-intl": "For best performance" 1450 | }, 1451 | "type": "library", 1452 | "extra": { 1453 | "branch-alias": { 1454 | "dev-master": "1.3-dev" 1455 | } 1456 | }, 1457 | "autoload": { 1458 | "files": [ 1459 | "bootstrap.php" 1460 | ] 1461 | }, 1462 | "notification-url": "https://packagist.org/downloads/", 1463 | "license": [ 1464 | "MIT" 1465 | ], 1466 | "authors": [ 1467 | { 1468 | "name": "Nicolas Grekas", 1469 | "email": "p@tchwork.com" 1470 | }, 1471 | { 1472 | "name": "Symfony Community", 1473 | "homepage": "https://symfony.com/contributors" 1474 | } 1475 | ], 1476 | "description": "Symfony polyfill for intl's ICU-related data and classes", 1477 | "homepage": "https://symfony.com", 1478 | "keywords": [ 1479 | "compatibility", 1480 | "icu", 1481 | "intl", 1482 | "polyfill", 1483 | "portable", 1484 | "shim" 1485 | ], 1486 | "time": "2016-11-14T01:06:16+00:00" 1487 | }, 1488 | { 1489 | "name": "symfony/polyfill-mbstring", 1490 | "version": "v1.3.0", 1491 | "source": { 1492 | "type": "git", 1493 | "url": "https://github.com/symfony/polyfill-mbstring.git", 1494 | "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" 1495 | }, 1496 | "dist": { 1497 | "type": "zip", 1498 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", 1499 | "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", 1500 | "shasum": "" 1501 | }, 1502 | "require": { 1503 | "php": ">=5.3.3" 1504 | }, 1505 | "suggest": { 1506 | "ext-mbstring": "For best performance" 1507 | }, 1508 | "type": "library", 1509 | "extra": { 1510 | "branch-alias": { 1511 | "dev-master": "1.3-dev" 1512 | } 1513 | }, 1514 | "autoload": { 1515 | "psr-4": { 1516 | "Symfony\\Polyfill\\Mbstring\\": "" 1517 | }, 1518 | "files": [ 1519 | "bootstrap.php" 1520 | ] 1521 | }, 1522 | "notification-url": "https://packagist.org/downloads/", 1523 | "license": [ 1524 | "MIT" 1525 | ], 1526 | "authors": [ 1527 | { 1528 | "name": "Nicolas Grekas", 1529 | "email": "p@tchwork.com" 1530 | }, 1531 | { 1532 | "name": "Symfony Community", 1533 | "homepage": "https://symfony.com/contributors" 1534 | } 1535 | ], 1536 | "description": "Symfony polyfill for the Mbstring extension", 1537 | "homepage": "https://symfony.com", 1538 | "keywords": [ 1539 | "compatibility", 1540 | "mbstring", 1541 | "polyfill", 1542 | "portable", 1543 | "shim" 1544 | ], 1545 | "time": "2016-11-14T01:06:16+00:00" 1546 | }, 1547 | { 1548 | "name": "symfony/polyfill-php56", 1549 | "version": "v1.3.0", 1550 | "source": { 1551 | "type": "git", 1552 | "url": "https://github.com/symfony/polyfill-php56.git", 1553 | "reference": "1dd42b9b89556f18092f3d1ada22cb05ac85383c" 1554 | }, 1555 | "dist": { 1556 | "type": "zip", 1557 | "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/1dd42b9b89556f18092f3d1ada22cb05ac85383c", 1558 | "reference": "1dd42b9b89556f18092f3d1ada22cb05ac85383c", 1559 | "shasum": "" 1560 | }, 1561 | "require": { 1562 | "php": ">=5.3.3", 1563 | "symfony/polyfill-util": "~1.0" 1564 | }, 1565 | "type": "library", 1566 | "extra": { 1567 | "branch-alias": { 1568 | "dev-master": "1.3-dev" 1569 | } 1570 | }, 1571 | "autoload": { 1572 | "psr-4": { 1573 | "Symfony\\Polyfill\\Php56\\": "" 1574 | }, 1575 | "files": [ 1576 | "bootstrap.php" 1577 | ] 1578 | }, 1579 | "notification-url": "https://packagist.org/downloads/", 1580 | "license": [ 1581 | "MIT" 1582 | ], 1583 | "authors": [ 1584 | { 1585 | "name": "Nicolas Grekas", 1586 | "email": "p@tchwork.com" 1587 | }, 1588 | { 1589 | "name": "Symfony Community", 1590 | "homepage": "https://symfony.com/contributors" 1591 | } 1592 | ], 1593 | "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", 1594 | "homepage": "https://symfony.com", 1595 | "keywords": [ 1596 | "compatibility", 1597 | "polyfill", 1598 | "portable", 1599 | "shim" 1600 | ], 1601 | "time": "2016-11-14T01:06:16+00:00" 1602 | }, 1603 | { 1604 | "name": "symfony/polyfill-php70", 1605 | "version": "v1.3.0", 1606 | "source": { 1607 | "type": "git", 1608 | "url": "https://github.com/symfony/polyfill-php70.git", 1609 | "reference": "13ce343935f0f91ca89605a2f6ca6f5c2f3faac2" 1610 | }, 1611 | "dist": { 1612 | "type": "zip", 1613 | "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/13ce343935f0f91ca89605a2f6ca6f5c2f3faac2", 1614 | "reference": "13ce343935f0f91ca89605a2f6ca6f5c2f3faac2", 1615 | "shasum": "" 1616 | }, 1617 | "require": { 1618 | "paragonie/random_compat": "~1.0|~2.0", 1619 | "php": ">=5.3.3" 1620 | }, 1621 | "type": "library", 1622 | "extra": { 1623 | "branch-alias": { 1624 | "dev-master": "1.3-dev" 1625 | } 1626 | }, 1627 | "autoload": { 1628 | "psr-4": { 1629 | "Symfony\\Polyfill\\Php70\\": "" 1630 | }, 1631 | "files": [ 1632 | "bootstrap.php" 1633 | ], 1634 | "classmap": [ 1635 | "Resources/stubs" 1636 | ] 1637 | }, 1638 | "notification-url": "https://packagist.org/downloads/", 1639 | "license": [ 1640 | "MIT" 1641 | ], 1642 | "authors": [ 1643 | { 1644 | "name": "Nicolas Grekas", 1645 | "email": "p@tchwork.com" 1646 | }, 1647 | { 1648 | "name": "Symfony Community", 1649 | "homepage": "https://symfony.com/contributors" 1650 | } 1651 | ], 1652 | "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", 1653 | "homepage": "https://symfony.com", 1654 | "keywords": [ 1655 | "compatibility", 1656 | "polyfill", 1657 | "portable", 1658 | "shim" 1659 | ], 1660 | "time": "2016-11-14T01:06:16+00:00" 1661 | }, 1662 | { 1663 | "name": "symfony/polyfill-util", 1664 | "version": "v1.3.0", 1665 | "source": { 1666 | "type": "git", 1667 | "url": "https://github.com/symfony/polyfill-util.git", 1668 | "reference": "746bce0fca664ac0a575e465f65c6643faddf7fb" 1669 | }, 1670 | "dist": { 1671 | "type": "zip", 1672 | "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/746bce0fca664ac0a575e465f65c6643faddf7fb", 1673 | "reference": "746bce0fca664ac0a575e465f65c6643faddf7fb", 1674 | "shasum": "" 1675 | }, 1676 | "require": { 1677 | "php": ">=5.3.3" 1678 | }, 1679 | "type": "library", 1680 | "extra": { 1681 | "branch-alias": { 1682 | "dev-master": "1.3-dev" 1683 | } 1684 | }, 1685 | "autoload": { 1686 | "psr-4": { 1687 | "Symfony\\Polyfill\\Util\\": "" 1688 | } 1689 | }, 1690 | "notification-url": "https://packagist.org/downloads/", 1691 | "license": [ 1692 | "MIT" 1693 | ], 1694 | "authors": [ 1695 | { 1696 | "name": "Nicolas Grekas", 1697 | "email": "p@tchwork.com" 1698 | }, 1699 | { 1700 | "name": "Symfony Community", 1701 | "homepage": "https://symfony.com/contributors" 1702 | } 1703 | ], 1704 | "description": "Symfony utilities for portability of PHP codes", 1705 | "homepage": "https://symfony.com", 1706 | "keywords": [ 1707 | "compat", 1708 | "compatibility", 1709 | "polyfill", 1710 | "shim" 1711 | ], 1712 | "time": "2016-11-14T01:06:16+00:00" 1713 | }, 1714 | { 1715 | "name": "symfony/swiftmailer-bundle", 1716 | "version": "v2.4.2", 1717 | "source": { 1718 | "type": "git", 1719 | "url": "https://github.com/symfony/swiftmailer-bundle.git", 1720 | "reference": "ad751095576ce0c12a284e30e3fff80c91f27225" 1721 | }, 1722 | "dist": { 1723 | "type": "zip", 1724 | "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/ad751095576ce0c12a284e30e3fff80c91f27225", 1725 | "reference": "ad751095576ce0c12a284e30e3fff80c91f27225", 1726 | "shasum": "" 1727 | }, 1728 | "require": { 1729 | "php": ">=5.3.2", 1730 | "swiftmailer/swiftmailer": ">=4.2.0,~5.0", 1731 | "symfony/config": "~2.7|~3.0", 1732 | "symfony/dependency-injection": "~2.7|~3.0", 1733 | "symfony/http-kernel": "~2.7|~3.0" 1734 | }, 1735 | "require-dev": { 1736 | "symfony/console": "~2.7|~3.0", 1737 | "symfony/framework-bundle": "~2.7|~3.0", 1738 | "symfony/phpunit-bridge": "~2.7|~3.0", 1739 | "symfony/yaml": "~2.7|~3.0" 1740 | }, 1741 | "suggest": { 1742 | "psr/log": "Allows logging" 1743 | }, 1744 | "type": "symfony-bundle", 1745 | "extra": { 1746 | "branch-alias": { 1747 | "dev-master": "2.4-dev" 1748 | } 1749 | }, 1750 | "autoload": { 1751 | "psr-4": { 1752 | "Symfony\\Bundle\\SwiftmailerBundle\\": "" 1753 | } 1754 | }, 1755 | "notification-url": "https://packagist.org/downloads/", 1756 | "license": [ 1757 | "MIT" 1758 | ], 1759 | "authors": [ 1760 | { 1761 | "name": "Symfony Community", 1762 | "homepage": "http://symfony.com/contributors" 1763 | }, 1764 | { 1765 | "name": "Fabien Potencier", 1766 | "email": "fabien@symfony.com" 1767 | } 1768 | ], 1769 | "description": "Symfony SwiftmailerBundle", 1770 | "homepage": "http://symfony.com", 1771 | "time": "2016-12-20T04:44:33+00:00" 1772 | }, 1773 | { 1774 | "name": "symfony/symfony", 1775 | "version": "v3.2.4", 1776 | "source": { 1777 | "type": "git", 1778 | "url": "https://github.com/symfony/symfony.git", 1779 | "reference": "141569be5b33a7cf0d141fb88422649fe11b0c47" 1780 | }, 1781 | "dist": { 1782 | "type": "zip", 1783 | "url": "https://api.github.com/repos/symfony/symfony/zipball/141569be5b33a7cf0d141fb88422649fe11b0c47", 1784 | "reference": "141569be5b33a7cf0d141fb88422649fe11b0c47", 1785 | "shasum": "" 1786 | }, 1787 | "require": { 1788 | "doctrine/common": "~2.4", 1789 | "php": ">=5.5.9", 1790 | "psr/cache": "~1.0", 1791 | "psr/log": "~1.0", 1792 | "symfony/polyfill-intl-icu": "~1.0", 1793 | "symfony/polyfill-mbstring": "~1.0", 1794 | "symfony/polyfill-php56": "~1.0", 1795 | "symfony/polyfill-php70": "~1.0", 1796 | "symfony/polyfill-util": "~1.0", 1797 | "twig/twig": "~1.28|~2.0" 1798 | }, 1799 | "conflict": { 1800 | "phpdocumentor/reflection-docblock": "<3.0", 1801 | "phpdocumentor/type-resolver": "<0.2.0" 1802 | }, 1803 | "provide": { 1804 | "psr/cache-implementation": "1.0" 1805 | }, 1806 | "replace": { 1807 | "symfony/asset": "self.version", 1808 | "symfony/browser-kit": "self.version", 1809 | "symfony/cache": "self.version", 1810 | "symfony/class-loader": "self.version", 1811 | "symfony/config": "self.version", 1812 | "symfony/console": "self.version", 1813 | "symfony/css-selector": "self.version", 1814 | "symfony/debug": "self.version", 1815 | "symfony/debug-bundle": "self.version", 1816 | "symfony/dependency-injection": "self.version", 1817 | "symfony/doctrine-bridge": "self.version", 1818 | "symfony/dom-crawler": "self.version", 1819 | "symfony/event-dispatcher": "self.version", 1820 | "symfony/expression-language": "self.version", 1821 | "symfony/filesystem": "self.version", 1822 | "symfony/finder": "self.version", 1823 | "symfony/form": "self.version", 1824 | "symfony/framework-bundle": "self.version", 1825 | "symfony/http-foundation": "self.version", 1826 | "symfony/http-kernel": "self.version", 1827 | "symfony/inflector": "self.version", 1828 | "symfony/intl": "self.version", 1829 | "symfony/ldap": "self.version", 1830 | "symfony/monolog-bridge": "self.version", 1831 | "symfony/options-resolver": "self.version", 1832 | "symfony/process": "self.version", 1833 | "symfony/property-access": "self.version", 1834 | "symfony/property-info": "self.version", 1835 | "symfony/proxy-manager-bridge": "self.version", 1836 | "symfony/routing": "self.version", 1837 | "symfony/security": "self.version", 1838 | "symfony/security-bundle": "self.version", 1839 | "symfony/security-core": "self.version", 1840 | "symfony/security-csrf": "self.version", 1841 | "symfony/security-guard": "self.version", 1842 | "symfony/security-http": "self.version", 1843 | "symfony/serializer": "self.version", 1844 | "symfony/stopwatch": "self.version", 1845 | "symfony/templating": "self.version", 1846 | "symfony/translation": "self.version", 1847 | "symfony/twig-bridge": "self.version", 1848 | "symfony/twig-bundle": "self.version", 1849 | "symfony/validator": "self.version", 1850 | "symfony/var-dumper": "self.version", 1851 | "symfony/web-profiler-bundle": "self.version", 1852 | "symfony/workflow": "self.version", 1853 | "symfony/yaml": "self.version" 1854 | }, 1855 | "require-dev": { 1856 | "cache/integration-tests": "dev-master", 1857 | "doctrine/cache": "~1.6", 1858 | "doctrine/data-fixtures": "1.0.*", 1859 | "doctrine/dbal": "~2.4", 1860 | "doctrine/doctrine-bundle": "~1.4", 1861 | "doctrine/orm": "~2.4,>=2.4.5", 1862 | "egulias/email-validator": "~1.2,>=1.2.8|~2.0", 1863 | "monolog/monolog": "~1.11", 1864 | "ocramius/proxy-manager": "~0.4|~1.0|~2.0", 1865 | "phpdocumentor/reflection-docblock": "^3.0", 1866 | "predis/predis": "~1.0", 1867 | "sensio/framework-extra-bundle": "^3.0.2", 1868 | "symfony/phpunit-bridge": "~3.2", 1869 | "symfony/polyfill-apcu": "~1.1", 1870 | "symfony/security-acl": "~2.8|~3.0" 1871 | }, 1872 | "type": "library", 1873 | "extra": { 1874 | "branch-alias": { 1875 | "dev-master": "3.2-dev" 1876 | } 1877 | }, 1878 | "autoload": { 1879 | "psr-4": { 1880 | "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/", 1881 | "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/", 1882 | "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/", 1883 | "Symfony\\Bridge\\Swiftmailer\\": "src/Symfony/Bridge/Swiftmailer/", 1884 | "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", 1885 | "Symfony\\Bundle\\": "src/Symfony/Bundle/", 1886 | "Symfony\\Component\\": "src/Symfony/Component/" 1887 | }, 1888 | "classmap": [ 1889 | "src/Symfony/Component/Intl/Resources/stubs" 1890 | ], 1891 | "exclude-from-classmap": [ 1892 | "**/Tests/" 1893 | ] 1894 | }, 1895 | "notification-url": "https://packagist.org/downloads/", 1896 | "license": [ 1897 | "MIT" 1898 | ], 1899 | "authors": [ 1900 | { 1901 | "name": "Fabien Potencier", 1902 | "email": "fabien@symfony.com" 1903 | }, 1904 | { 1905 | "name": "Symfony Community", 1906 | "homepage": "https://symfony.com/contributors" 1907 | } 1908 | ], 1909 | "description": "The Symfony PHP framework", 1910 | "homepage": "https://symfony.com", 1911 | "keywords": [ 1912 | "framework" 1913 | ], 1914 | "time": "2017-02-17T00:00:43+00:00" 1915 | }, 1916 | { 1917 | "name": "twig/twig", 1918 | "version": "v1.31.0", 1919 | "source": { 1920 | "type": "git", 1921 | "url": "https://github.com/twigphp/Twig.git", 1922 | "reference": "ddc9e3e20ee9c0b6908f401ac8353635b750eca7" 1923 | }, 1924 | "dist": { 1925 | "type": "zip", 1926 | "url": "https://api.github.com/repos/twigphp/Twig/zipball/ddc9e3e20ee9c0b6908f401ac8353635b750eca7", 1927 | "reference": "ddc9e3e20ee9c0b6908f401ac8353635b750eca7", 1928 | "shasum": "" 1929 | }, 1930 | "require": { 1931 | "php": ">=5.2.7" 1932 | }, 1933 | "require-dev": { 1934 | "symfony/debug": "~2.7", 1935 | "symfony/phpunit-bridge": "~3.2" 1936 | }, 1937 | "type": "library", 1938 | "extra": { 1939 | "branch-alias": { 1940 | "dev-master": "1.31-dev" 1941 | } 1942 | }, 1943 | "autoload": { 1944 | "psr-0": { 1945 | "Twig_": "lib/" 1946 | } 1947 | }, 1948 | "notification-url": "https://packagist.org/downloads/", 1949 | "license": [ 1950 | "BSD-3-Clause" 1951 | ], 1952 | "authors": [ 1953 | { 1954 | "name": "Fabien Potencier", 1955 | "email": "fabien@symfony.com", 1956 | "homepage": "http://fabien.potencier.org", 1957 | "role": "Lead Developer" 1958 | }, 1959 | { 1960 | "name": "Armin Ronacher", 1961 | "email": "armin.ronacher@active-4.com", 1962 | "role": "Project Founder" 1963 | }, 1964 | { 1965 | "name": "Twig Team", 1966 | "homepage": "http://twig.sensiolabs.org/contributors", 1967 | "role": "Contributors" 1968 | } 1969 | ], 1970 | "description": "Twig, the flexible, fast, and secure template language for PHP", 1971 | "homepage": "http://twig.sensiolabs.org", 1972 | "keywords": [ 1973 | "templating" 1974 | ], 1975 | "time": "2017-01-11T19:36:15+00:00" 1976 | } 1977 | ], 1978 | "packages-dev": [ 1979 | { 1980 | "name": "sensio/generator-bundle", 1981 | "version": "v3.1.2", 1982 | "source": { 1983 | "type": "git", 1984 | "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", 1985 | "reference": "ec278c0bd530edf155c4a00900577b5cb80f559e" 1986 | }, 1987 | "dist": { 1988 | "type": "zip", 1989 | "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/ec278c0bd530edf155c4a00900577b5cb80f559e", 1990 | "reference": "ec278c0bd530edf155c4a00900577b5cb80f559e", 1991 | "shasum": "" 1992 | }, 1993 | "require": { 1994 | "symfony/console": "~2.7|~3.0", 1995 | "symfony/framework-bundle": "~2.7|~3.0", 1996 | "symfony/process": "~2.7|~3.0", 1997 | "symfony/yaml": "~2.7|~3.0", 1998 | "twig/twig": "^1.28.2|^2.0" 1999 | }, 2000 | "require-dev": { 2001 | "doctrine/orm": "~2.4", 2002 | "symfony/doctrine-bridge": "~2.7|~3.0" 2003 | }, 2004 | "type": "symfony-bundle", 2005 | "extra": { 2006 | "branch-alias": { 2007 | "dev-master": "3.1.x-dev" 2008 | } 2009 | }, 2010 | "autoload": { 2011 | "psr-4": { 2012 | "Sensio\\Bundle\\GeneratorBundle\\": "" 2013 | }, 2014 | "exclude-from-classmap": [ 2015 | "/Tests/" 2016 | ] 2017 | }, 2018 | "notification-url": "https://packagist.org/downloads/", 2019 | "license": [ 2020 | "MIT" 2021 | ], 2022 | "authors": [ 2023 | { 2024 | "name": "Fabien Potencier", 2025 | "email": "fabien@symfony.com" 2026 | } 2027 | ], 2028 | "description": "This bundle generates code for you", 2029 | "time": "2016-12-05T16:01:19+00:00" 2030 | }, 2031 | { 2032 | "name": "symfony/phpunit-bridge", 2033 | "version": "v3.2.4", 2034 | "source": { 2035 | "type": "git", 2036 | "url": "https://github.com/symfony/phpunit-bridge.git", 2037 | "reference": "996374975357b569ea319ec1c98c5ca0f7dda610" 2038 | }, 2039 | "dist": { 2040 | "type": "zip", 2041 | "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/996374975357b569ea319ec1c98c5ca0f7dda610", 2042 | "reference": "996374975357b569ea319ec1c98c5ca0f7dda610", 2043 | "shasum": "" 2044 | }, 2045 | "require": { 2046 | "php": ">=5.3.3" 2047 | }, 2048 | "suggest": { 2049 | "ext-zip": "Zip support is required when using bin/simple-phpunit", 2050 | "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" 2051 | }, 2052 | "bin": [ 2053 | "bin/simple-phpunit" 2054 | ], 2055 | "type": "symfony-bridge", 2056 | "extra": { 2057 | "branch-alias": { 2058 | "dev-master": "3.2-dev" 2059 | } 2060 | }, 2061 | "autoload": { 2062 | "files": [ 2063 | "bootstrap.php" 2064 | ], 2065 | "psr-4": { 2066 | "Symfony\\Bridge\\PhpUnit\\": "" 2067 | }, 2068 | "exclude-from-classmap": [ 2069 | "/Tests/" 2070 | ] 2071 | }, 2072 | "notification-url": "https://packagist.org/downloads/", 2073 | "license": [ 2074 | "MIT" 2075 | ], 2076 | "authors": [ 2077 | { 2078 | "name": "Nicolas Grekas", 2079 | "email": "p@tchwork.com" 2080 | }, 2081 | { 2082 | "name": "Symfony Community", 2083 | "homepage": "https://symfony.com/contributors" 2084 | } 2085 | ], 2086 | "description": "Symfony PHPUnit Bridge", 2087 | "homepage": "https://symfony.com", 2088 | "time": "2017-01-21T17:06:35+00:00" 2089 | } 2090 | ], 2091 | "aliases": [], 2092 | "minimum-stability": "stable", 2093 | "stability-flags": [], 2094 | "prefer-stable": false, 2095 | "prefer-lowest": false, 2096 | "platform": { 2097 | "php": ">=5.5.9" 2098 | }, 2099 | "platform-dev": [], 2100 | "platform-overrides": { 2101 | "php": "5.5.9" 2102 | } 2103 | } 2104 | -------------------------------------------------------------------------------- /frontend/components/App.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import {connect} from 'react-redux' 4 | import Greetings from './Greetings'; 5 | 6 | 7 | const mapStateToProps = (state) => { 8 | return state; 9 | } 10 | 11 | const mapDispatchToProps = (dispatch) => { 12 | return { 13 | onMount: () => { 14 | fetch("/greetings/1").then((response) => { 15 | return response.json(); 16 | }).then((json) => { 17 | dispatch({type: 'FETCH_GREETING', text: json.greeting}) 18 | }); 19 | } 20 | } 21 | } 22 | 23 | export default connect(mapStateToProps, mapDispatchToProps)(Greetings); -------------------------------------------------------------------------------- /frontend/components/Greetings.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | export interface GreetingsProps { 4 | text: string; 5 | isReady: boolean; 6 | onMount(); 7 | } 8 | 9 | class Greetings extends React.Component { 10 | 11 | componentDidMount() { 12 | this.props.onMount(); 13 | } 14 | 15 | render() { 16 | return ( 17 |

{this.props.text}

18 | ); 19 | } 20 | } 21 | 22 | export default Greetings; -------------------------------------------------------------------------------- /frontend/global.d.ts: -------------------------------------------------------------------------------- 1 | declare function fetch(string); -------------------------------------------------------------------------------- /frontend/index.tsx: -------------------------------------------------------------------------------- 1 | // подгружает стили bootstrap 2 | import 'bootstrap-sass/assets/stylesheets/_bootstrap.scss'; 3 | 4 | import * as React from 'react'; 5 | import * as ReactDOM from "react-dom"; 6 | import {Provider} from 'react-redux'; 7 | import App from './components/App'; 8 | import {createStore} from 'redux'; 9 | 10 | const app = (state = {isReady: false, text: ''}, action) => { 11 | switch (action.type) { 12 | case 'FETCH_GREETING': 13 | return Object.assign({}, state, {isReady: true, text: action.text}); 14 | } 15 | return state; 16 | } 17 | 18 | const store = createStore(app); 19 | 20 | ReactDOM.render( 21 | 22 | 23 | , 24 | 25 | document.getElementById("root") 26 | ); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "helloworldphp", 3 | "version": "1.0.0", 4 | "description": "Symfony Standard Edition ========================", 5 | "main": "webpack.config.js", 6 | "directories": { 7 | "test": "tests" 8 | }, 9 | "scripts": { 10 | "test": "echo \"Error: no test specified\" && exit 1" 11 | }, 12 | "author": "", 13 | "license": "ISC", 14 | "dependencies": { 15 | "@types/react": "^15.0.11", 16 | "@types/react-dom": "^0.14.23", 17 | "babel-core": "^6.23.1", 18 | "babel-loader": "^6.3.2", 19 | "babel-preset-es2015": "^6.22.0", 20 | "babel-preset-react": "^6.23.0", 21 | "bootstrap-sass": "^3.3.7", 22 | "css-loader": "^0.26.1", 23 | "node-sass": "^4.5.0", 24 | "react": "^15.4.2", 25 | "react-dom": "^15.4.2", 26 | "react-redux": "^5.0.2", 27 | "redux": "^3.6.0", 28 | "resolve-url-loader": "^2.0.0", 29 | "sass-loader": "^6.0.1", 30 | "style-loader": "^0.13.1", 31 | "ts-loader": "^2.0.0", 32 | "typescript": "^2.1.6", 33 | "url-loader": "^0.5.7", 34 | "webpack": "^2.2.1", 35 | "@types/node": "^7.0.5" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | tests 18 | 19 | 20 | 21 | 22 | 23 | src 24 | 25 | src/*Bundle/Resources 26 | src/*/*Bundle/Resources 27 | src/*/Bundle/*Bundle/Resources 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Order deny,allow 6 | Deny from all 7 | 8 | -------------------------------------------------------------------------------- /src/AppBundle/AppBundle.php: -------------------------------------------------------------------------------- 1 | render('default/index.html.twig', [ 19 | 'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR, 20 | ]); 21 | } 22 | 23 | /** 24 | * @Route("/greetings/{id}") 25 | */ 26 | public function greetings($id) 27 | { 28 | $greeting = $this->getDoctrine()->getRepository("AppBundle:Greeting")->find($id); 29 | return new JsonResponse(['greeting' => $greeting->getGreeting()]); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/AppBundle/Entity/Greeting.php: -------------------------------------------------------------------------------- 1 | id; 31 | } 32 | 33 | /** 34 | * @return mixed 35 | */ 36 | public function getGreeting() 37 | { 38 | return $this->greeting; 39 | } 40 | } -------------------------------------------------------------------------------- /tests/AppBundle/Controller/DefaultControllerTest.php: -------------------------------------------------------------------------------- 1 | request('GET', '/'); 14 | 15 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); 16 | $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "es6", 4 | "moduleResolution": "node", 5 | "sourceMap": false, 6 | "target": "esnext", 7 | "outDir": "web/ts", 8 | "lib": [ 9 | "dom", 10 | "scripthost", 11 | "es5", 12 | "es6", 13 | "es7" 14 | ], 15 | "jsx": "react" 16 | }, 17 | "include": [ 18 | "frontend/**/*.ts", 19 | "frontend/**/*.tsx" 20 | ] 21 | } -------------------------------------------------------------------------------- /var/SymfonyRequirements.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /* 13 | * Users of PHP 5.2 should be able to run the requirements checks. 14 | * This is why the file and all classes must be compatible with PHP 5.2+ 15 | * (e.g. not using namespaces and closures). 16 | * 17 | * ************** CAUTION ************** 18 | * 19 | * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of 20 | * the installation/update process. The original file resides in the 21 | * SensioDistributionBundle. 22 | * 23 | * ************** CAUTION ************** 24 | */ 25 | 26 | /** 27 | * Represents a single PHP requirement, e.g. an installed extension. 28 | * It can be a mandatory requirement or an optional recommendation. 29 | * There is a special subclass, named PhpIniRequirement, to check a php.ini configuration. 30 | * 31 | * @author Tobias Schultze 32 | */ 33 | class Requirement 34 | { 35 | private $fulfilled; 36 | private $testMessage; 37 | private $helpText; 38 | private $helpHtml; 39 | private $optional; 40 | 41 | /** 42 | * Constructor that initializes the requirement. 43 | * 44 | * @param bool $fulfilled Whether the requirement is fulfilled 45 | * @param string $testMessage The message for testing the requirement 46 | * @param string $helpHtml The help text formatted in HTML for resolving the problem 47 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 48 | * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement 49 | */ 50 | public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false) 51 | { 52 | $this->fulfilled = (bool) $fulfilled; 53 | $this->testMessage = (string) $testMessage; 54 | $this->helpHtml = (string) $helpHtml; 55 | $this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText; 56 | $this->optional = (bool) $optional; 57 | } 58 | 59 | /** 60 | * Returns whether the requirement is fulfilled. 61 | * 62 | * @return bool true if fulfilled, otherwise false 63 | */ 64 | public function isFulfilled() 65 | { 66 | return $this->fulfilled; 67 | } 68 | 69 | /** 70 | * Returns the message for testing the requirement. 71 | * 72 | * @return string The test message 73 | */ 74 | public function getTestMessage() 75 | { 76 | return $this->testMessage; 77 | } 78 | 79 | /** 80 | * Returns the help text for resolving the problem. 81 | * 82 | * @return string The help text 83 | */ 84 | public function getHelpText() 85 | { 86 | return $this->helpText; 87 | } 88 | 89 | /** 90 | * Returns the help text formatted in HTML. 91 | * 92 | * @return string The HTML help 93 | */ 94 | public function getHelpHtml() 95 | { 96 | return $this->helpHtml; 97 | } 98 | 99 | /** 100 | * Returns whether this is only an optional recommendation and not a mandatory requirement. 101 | * 102 | * @return bool true if optional, false if mandatory 103 | */ 104 | public function isOptional() 105 | { 106 | return $this->optional; 107 | } 108 | } 109 | 110 | /** 111 | * Represents a PHP requirement in form of a php.ini configuration. 112 | * 113 | * @author Tobias Schultze 114 | */ 115 | class PhpIniRequirement extends Requirement 116 | { 117 | /** 118 | * Constructor that initializes the requirement. 119 | * 120 | * @param string $cfgName The configuration name used for ini_get() 121 | * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, 122 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement 123 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. 124 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. 125 | * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. 126 | * @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) 127 | * @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) 128 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 129 | * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement 130 | */ 131 | public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false) 132 | { 133 | $cfgValue = ini_get($cfgName); 134 | 135 | if (is_callable($evaluation)) { 136 | if (null === $testMessage || null === $helpHtml) { 137 | throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.'); 138 | } 139 | 140 | $fulfilled = call_user_func($evaluation, $cfgValue); 141 | } else { 142 | if (null === $testMessage) { 143 | $testMessage = sprintf('%s %s be %s in php.ini', 144 | $cfgName, 145 | $optional ? 'should' : 'must', 146 | $evaluation ? 'enabled' : 'disabled' 147 | ); 148 | } 149 | 150 | if (null === $helpHtml) { 151 | $helpHtml = sprintf('Set %s to %s in php.ini*.', 152 | $cfgName, 153 | $evaluation ? 'on' : 'off' 154 | ); 155 | } 156 | 157 | $fulfilled = $evaluation == $cfgValue; 158 | } 159 | 160 | parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional); 161 | } 162 | } 163 | 164 | /** 165 | * A RequirementCollection represents a set of Requirement instances. 166 | * 167 | * @author Tobias Schultze 168 | */ 169 | class RequirementCollection implements IteratorAggregate 170 | { 171 | /** 172 | * @var Requirement[] 173 | */ 174 | private $requirements = array(); 175 | 176 | /** 177 | * Gets the current RequirementCollection as an Iterator. 178 | * 179 | * @return Traversable A Traversable interface 180 | */ 181 | public function getIterator() 182 | { 183 | return new ArrayIterator($this->requirements); 184 | } 185 | 186 | /** 187 | * Adds a Requirement. 188 | * 189 | * @param Requirement $requirement A Requirement instance 190 | */ 191 | public function add(Requirement $requirement) 192 | { 193 | $this->requirements[] = $requirement; 194 | } 195 | 196 | /** 197 | * Adds a mandatory requirement. 198 | * 199 | * @param bool $fulfilled Whether the requirement is fulfilled 200 | * @param string $testMessage The message for testing the requirement 201 | * @param string $helpHtml The help text formatted in HTML for resolving the problem 202 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 203 | */ 204 | public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null) 205 | { 206 | $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false)); 207 | } 208 | 209 | /** 210 | * Adds an optional recommendation. 211 | * 212 | * @param bool $fulfilled Whether the recommendation is fulfilled 213 | * @param string $testMessage The message for testing the recommendation 214 | * @param string $helpHtml The help text formatted in HTML for resolving the problem 215 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 216 | */ 217 | public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null) 218 | { 219 | $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true)); 220 | } 221 | 222 | /** 223 | * Adds a mandatory requirement in form of a php.ini configuration. 224 | * 225 | * @param string $cfgName The configuration name used for ini_get() 226 | * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. 230 | * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. 231 | * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) 232 | * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) 233 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 234 | */ 235 | public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) 236 | { 237 | $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false)); 238 | } 239 | 240 | /** 241 | * Adds an optional recommendation in form of a php.ini configuration. 242 | * 243 | * @param string $cfgName The configuration name used for ini_get() 244 | * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. 248 | * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. 249 | * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) 250 | * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) 251 | * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) 252 | */ 253 | public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) 254 | { 255 | $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true)); 256 | } 257 | 258 | /** 259 | * Adds a requirement collection to the current set of requirements. 260 | * 261 | * @param RequirementCollection $collection A RequirementCollection instance 262 | */ 263 | public function addCollection(RequirementCollection $collection) 264 | { 265 | $this->requirements = array_merge($this->requirements, $collection->all()); 266 | } 267 | 268 | /** 269 | * Returns both requirements and recommendations. 270 | * 271 | * @return Requirement[] 272 | */ 273 | public function all() 274 | { 275 | return $this->requirements; 276 | } 277 | 278 | /** 279 | * Returns all mandatory requirements. 280 | * 281 | * @return Requirement[] 282 | */ 283 | public function getRequirements() 284 | { 285 | $array = array(); 286 | foreach ($this->requirements as $req) { 287 | if (!$req->isOptional()) { 288 | $array[] = $req; 289 | } 290 | } 291 | 292 | return $array; 293 | } 294 | 295 | /** 296 | * Returns the mandatory requirements that were not met. 297 | * 298 | * @return Requirement[] 299 | */ 300 | public function getFailedRequirements() 301 | { 302 | $array = array(); 303 | foreach ($this->requirements as $req) { 304 | if (!$req->isFulfilled() && !$req->isOptional()) { 305 | $array[] = $req; 306 | } 307 | } 308 | 309 | return $array; 310 | } 311 | 312 | /** 313 | * Returns all optional recommendations. 314 | * 315 | * @return Requirement[] 316 | */ 317 | public function getRecommendations() 318 | { 319 | $array = array(); 320 | foreach ($this->requirements as $req) { 321 | if ($req->isOptional()) { 322 | $array[] = $req; 323 | } 324 | } 325 | 326 | return $array; 327 | } 328 | 329 | /** 330 | * Returns the recommendations that were not met. 331 | * 332 | * @return Requirement[] 333 | */ 334 | public function getFailedRecommendations() 335 | { 336 | $array = array(); 337 | foreach ($this->requirements as $req) { 338 | if (!$req->isFulfilled() && $req->isOptional()) { 339 | $array[] = $req; 340 | } 341 | } 342 | 343 | return $array; 344 | } 345 | 346 | /** 347 | * Returns whether a php.ini configuration is not correct. 348 | * 349 | * @return bool php.ini configuration problem? 350 | */ 351 | public function hasPhpIniConfigIssue() 352 | { 353 | foreach ($this->requirements as $req) { 354 | if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) { 355 | return true; 356 | } 357 | } 358 | 359 | return false; 360 | } 361 | 362 | /** 363 | * Returns the PHP configuration file (php.ini) path. 364 | * 365 | * @return string|false php.ini file path 366 | */ 367 | public function getPhpIniConfigPath() 368 | { 369 | return get_cfg_var('cfg_file_path'); 370 | } 371 | } 372 | 373 | /** 374 | * This class specifies all requirements and optional recommendations that 375 | * are necessary to run the Symfony Standard Edition. 376 | * 377 | * @author Tobias Schultze 378 | * @author Fabien Potencier 379 | */ 380 | class SymfonyRequirements extends RequirementCollection 381 | { 382 | const LEGACY_REQUIRED_PHP_VERSION = '5.3.3'; 383 | const REQUIRED_PHP_VERSION = '5.5.9'; 384 | 385 | /** 386 | * Constructor that initializes the requirements. 387 | */ 388 | public function __construct() 389 | { 390 | /* mandatory requirements follow */ 391 | 392 | $installedPhpVersion = phpversion(); 393 | $requiredPhpVersion = $this->getPhpRequiredVersion(); 394 | 395 | $this->addRecommendation( 396 | $requiredPhpVersion, 397 | 'Vendors should be installed in order to check all requirements.', 398 | 'Run the composer install command.', 399 | 'Run the "composer install" command.' 400 | ); 401 | 402 | if (false !== $requiredPhpVersion) { 403 | $this->addRequirement( 404 | version_compare($installedPhpVersion, $requiredPhpVersion, '>='), 405 | sprintf('PHP version must be at least %s (%s installed)', $requiredPhpVersion, $installedPhpVersion), 406 | sprintf('You are running PHP version "%s", but Symfony needs at least PHP "%s" to run. 407 | Before using Symfony, upgrade your PHP installation, preferably to the latest version.', 408 | $installedPhpVersion, $requiredPhpVersion), 409 | sprintf('Install PHP %s or newer (installed version is %s)', $requiredPhpVersion, $installedPhpVersion) 410 | ); 411 | } 412 | 413 | $this->addRequirement( 414 | version_compare($installedPhpVersion, '5.3.16', '!='), 415 | 'PHP version must not be 5.3.16 as Symfony won\'t work properly with it', 416 | 'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)' 417 | ); 418 | 419 | $this->addRequirement( 420 | is_dir(__DIR__.'/../vendor/composer'), 421 | 'Vendor libraries must be installed', 422 | 'Vendor libraries are missing. Install composer following instructions from http://getcomposer.org/. '. 423 | 'Then run "php composer.phar install" to install them.' 424 | ); 425 | 426 | $cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache'; 427 | 428 | $this->addRequirement( 429 | is_writable($cacheDir), 430 | 'app/cache/ or var/cache/ directory must be writable', 431 | 'Change the permissions of either "app/cache/" or "var/cache/" directory so that the web server can write into it.' 432 | ); 433 | 434 | $logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs'; 435 | 436 | $this->addRequirement( 437 | is_writable($logsDir), 438 | 'app/logs/ or var/logs/ directory must be writable', 439 | 'Change the permissions of either "app/logs/" or "var/logs/" directory so that the web server can write into it.' 440 | ); 441 | 442 | if (version_compare($installedPhpVersion, '7.0.0', '<')) { 443 | $this->addPhpIniRequirement( 444 | 'date.timezone', true, false, 445 | 'date.timezone setting must be set', 446 | 'Set the "date.timezone" setting in php.ini* (like Europe/Paris).' 447 | ); 448 | } 449 | 450 | if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { 451 | $timezones = array(); 452 | foreach (DateTimeZone::listAbbreviations() as $abbreviations) { 453 | foreach ($abbreviations as $abbreviation) { 454 | $timezones[$abbreviation['timezone_id']] = true; 455 | } 456 | } 457 | 458 | $this->addRequirement( 459 | isset($timezones[@date_default_timezone_get()]), 460 | sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), 461 | 'Your default timezone is not supported by PHP. Check for typos in your php.ini file and have a look at the list of deprecated timezones at http://php.net/manual/en/timezones.others.php.' 462 | ); 463 | } 464 | 465 | $this->addRequirement( 466 | function_exists('iconv'), 467 | 'iconv() must be available', 468 | 'Install and enable the iconv extension.' 469 | ); 470 | 471 | $this->addRequirement( 472 | function_exists('json_encode'), 473 | 'json_encode() must be available', 474 | 'Install and enable the JSON extension.' 475 | ); 476 | 477 | $this->addRequirement( 478 | function_exists('session_start'), 479 | 'session_start() must be available', 480 | 'Install and enable the session extension.' 481 | ); 482 | 483 | $this->addRequirement( 484 | function_exists('ctype_alpha'), 485 | 'ctype_alpha() must be available', 486 | 'Install and enable the ctype extension.' 487 | ); 488 | 489 | $this->addRequirement( 490 | function_exists('token_get_all'), 491 | 'token_get_all() must be available', 492 | 'Install and enable the Tokenizer extension.' 493 | ); 494 | 495 | $this->addRequirement( 496 | function_exists('simplexml_import_dom'), 497 | 'simplexml_import_dom() must be available', 498 | 'Install and enable the SimpleXML extension.' 499 | ); 500 | 501 | if (function_exists('apc_store') && ini_get('apc.enabled')) { 502 | if (version_compare($installedPhpVersion, '5.4.0', '>=')) { 503 | $this->addRequirement( 504 | version_compare(phpversion('apc'), '3.1.13', '>='), 505 | 'APC version must be at least 3.1.13 when using PHP 5.4', 506 | 'Upgrade your APC extension (3.1.13+).' 507 | ); 508 | } else { 509 | $this->addRequirement( 510 | version_compare(phpversion('apc'), '3.0.17', '>='), 511 | 'APC version must be at least 3.0.17', 512 | 'Upgrade your APC extension (3.0.17+).' 513 | ); 514 | } 515 | } 516 | 517 | $this->addPhpIniRequirement('detect_unicode', false); 518 | 519 | if (extension_loaded('suhosin')) { 520 | $this->addPhpIniRequirement( 521 | 'suhosin.executor.include.whitelist', 522 | create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'), 523 | false, 524 | 'suhosin.executor.include.whitelist must be configured correctly in php.ini', 525 | 'Add "phar" to suhosin.executor.include.whitelist in php.ini*.' 526 | ); 527 | } 528 | 529 | if (extension_loaded('xdebug')) { 530 | $this->addPhpIniRequirement( 531 | 'xdebug.show_exception_trace', false, true 532 | ); 533 | 534 | $this->addPhpIniRequirement( 535 | 'xdebug.scream', false, true 536 | ); 537 | 538 | $this->addPhpIniRecommendation( 539 | 'xdebug.max_nesting_level', 540 | create_function('$cfgValue', 'return $cfgValue > 100;'), 541 | true, 542 | 'xdebug.max_nesting_level should be above 100 in php.ini', 543 | 'Set "xdebug.max_nesting_level" to e.g. "250" in php.ini* to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.' 544 | ); 545 | } 546 | 547 | $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null; 548 | 549 | $this->addRequirement( 550 | null !== $pcreVersion, 551 | 'PCRE extension must be available', 552 | 'Install the PCRE extension (version 8.0+).' 553 | ); 554 | 555 | if (extension_loaded('mbstring')) { 556 | $this->addPhpIniRequirement( 557 | 'mbstring.func_overload', 558 | create_function('$cfgValue', 'return (int) $cfgValue === 0;'), 559 | true, 560 | 'string functions should not be overloaded', 561 | 'Set "mbstring.func_overload" to 0 in php.ini* to disable function overloading by the mbstring extension.' 562 | ); 563 | } 564 | 565 | /* optional recommendations follow */ 566 | 567 | if (file_exists(__DIR__.'/../vendor/composer')) { 568 | require_once __DIR__.'/../vendor/autoload.php'; 569 | 570 | try { 571 | $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); 572 | 573 | $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); 574 | } catch (ReflectionException $e) { 575 | $contents = ''; 576 | } 577 | $this->addRecommendation( 578 | file_get_contents(__FILE__) === $contents, 579 | 'Requirements file should be up-to-date', 580 | 'Your requirements file is outdated. Run composer install and re-check your configuration.' 581 | ); 582 | } 583 | 584 | $this->addRecommendation( 585 | version_compare($installedPhpVersion, '5.3.4', '>='), 586 | 'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions', 587 | 'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.' 588 | ); 589 | 590 | $this->addRecommendation( 591 | version_compare($installedPhpVersion, '5.3.8', '>='), 592 | 'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156', 593 | 'Install PHP 5.3.8 or newer if your project uses annotations.' 594 | ); 595 | 596 | $this->addRecommendation( 597 | version_compare($installedPhpVersion, '5.4.0', '!='), 598 | 'You should not use PHP 5.4.0 due to the PHP bug #61453', 599 | 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.' 600 | ); 601 | 602 | $this->addRecommendation( 603 | version_compare($installedPhpVersion, '5.4.11', '>='), 604 | 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', 605 | 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' 606 | ); 607 | 608 | $this->addRecommendation( 609 | (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) 610 | || 611 | version_compare($installedPhpVersion, '5.4.8', '>='), 612 | 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', 613 | 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' 614 | ); 615 | 616 | if (null !== $pcreVersion) { 617 | $this->addRecommendation( 618 | $pcreVersion >= 8.0, 619 | sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion), 620 | 'PCRE 8.0+ is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.' 621 | ); 622 | } 623 | 624 | $this->addRecommendation( 625 | class_exists('DomDocument'), 626 | 'PHP-DOM and PHP-XML modules should be installed', 627 | 'Install and enable the PHP-DOM and the PHP-XML modules.' 628 | ); 629 | 630 | $this->addRecommendation( 631 | function_exists('mb_strlen'), 632 | 'mb_strlen() should be available', 633 | 'Install and enable the mbstring extension.' 634 | ); 635 | 636 | $this->addRecommendation( 637 | function_exists('iconv'), 638 | 'iconv() should be available', 639 | 'Install and enable the iconv extension.' 640 | ); 641 | 642 | $this->addRecommendation( 643 | function_exists('utf8_decode'), 644 | 'utf8_decode() should be available', 645 | 'Install and enable the XML extension.' 646 | ); 647 | 648 | $this->addRecommendation( 649 | function_exists('filter_var'), 650 | 'filter_var() should be available', 651 | 'Install and enable the filter extension.' 652 | ); 653 | 654 | if (!defined('PHP_WINDOWS_VERSION_BUILD')) { 655 | $this->addRecommendation( 656 | function_exists('posix_isatty'), 657 | 'posix_isatty() should be available', 658 | 'Install and enable the php_posix extension (used to colorize the CLI output).' 659 | ); 660 | } 661 | 662 | $this->addRecommendation( 663 | extension_loaded('intl'), 664 | 'intl extension should be available', 665 | 'Install and enable the intl extension (used for validators).' 666 | ); 667 | 668 | if (extension_loaded('intl')) { 669 | // in some WAMP server installations, new Collator() returns null 670 | $this->addRecommendation( 671 | null !== new Collator('fr_FR'), 672 | 'intl extension should be correctly configured', 673 | 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' 674 | ); 675 | 676 | // check for compatible ICU versions (only done when you have the intl extension) 677 | if (defined('INTL_ICU_VERSION')) { 678 | $version = INTL_ICU_VERSION; 679 | } else { 680 | $reflector = new ReflectionExtension('intl'); 681 | 682 | ob_start(); 683 | $reflector->info(); 684 | $output = strip_tags(ob_get_clean()); 685 | 686 | preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); 687 | $version = $matches[1]; 688 | } 689 | 690 | $this->addRecommendation( 691 | version_compare($version, '4.0', '>='), 692 | 'intl ICU version should be at least 4+', 693 | 'Upgrade your intl extension with a newer ICU version (4+).' 694 | ); 695 | 696 | if (class_exists('Symfony\Component\Intl\Intl')) { 697 | $this->addRecommendation( 698 | \Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion(), 699 | sprintf('intl ICU version installed on your system is outdated (%s) and does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), 700 | 'To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.' 701 | ); 702 | if (\Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion()) { 703 | $this->addRecommendation( 704 | \Symfony\Component\Intl\Intl::getIcuDataVersion() === \Symfony\Component\Intl\Intl::getIcuVersion(), 705 | sprintf('intl ICU version installed on your system (%s) does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), 706 | 'To avoid internationalization data inconsistencies upgrade the symfony/intl component.' 707 | ); 708 | } 709 | } 710 | 711 | $this->addPhpIniRecommendation( 712 | 'intl.error_level', 713 | create_function('$cfgValue', 'return (int) $cfgValue === 0;'), 714 | true, 715 | 'intl.error_level should be 0 in php.ini', 716 | 'Set "intl.error_level" to "0" in php.ini* to inhibit the messages when an error occurs in ICU functions.' 717 | ); 718 | } 719 | 720 | $accelerator = 721 | (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) 722 | || 723 | (extension_loaded('apc') && ini_get('apc.enabled')) 724 | || 725 | (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) 726 | || 727 | (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) 728 | || 729 | (extension_loaded('xcache') && ini_get('xcache.cacher')) 730 | || 731 | (extension_loaded('wincache') && ini_get('wincache.ocenabled')) 732 | ; 733 | 734 | $this->addRecommendation( 735 | $accelerator, 736 | 'a PHP accelerator should be installed', 737 | 'Install and/or enable a PHP accelerator (highly recommended).' 738 | ); 739 | 740 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { 741 | $this->addRecommendation( 742 | $this->getRealpathCacheSize() >= 5 * 1024 * 1024, 743 | 'realpath_cache_size should be at least 5M in php.ini', 744 | 'Setting "realpath_cache_size" to e.g. "5242880" or "5M" in php.ini* may improve performance on Windows significantly in some cases.' 745 | ); 746 | } 747 | 748 | $this->addPhpIniRecommendation('short_open_tag', false); 749 | 750 | $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); 751 | 752 | $this->addPhpIniRecommendation('register_globals', false, true); 753 | 754 | $this->addPhpIniRecommendation('session.auto_start', false); 755 | 756 | $this->addRecommendation( 757 | class_exists('PDO'), 758 | 'PDO should be installed', 759 | 'Install PDO (mandatory for Doctrine).' 760 | ); 761 | 762 | if (class_exists('PDO')) { 763 | $drivers = PDO::getAvailableDrivers(); 764 | $this->addRecommendation( 765 | count($drivers) > 0, 766 | sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), 767 | 'Install PDO drivers (mandatory for Doctrine).' 768 | ); 769 | } 770 | } 771 | 772 | /** 773 | * Loads realpath_cache_size from php.ini and converts it to int. 774 | * 775 | * (e.g. 16k is converted to 16384 int) 776 | * 777 | * @return int 778 | */ 779 | protected function getRealpathCacheSize() 780 | { 781 | $size = ini_get('realpath_cache_size'); 782 | $size = trim($size); 783 | $unit = ''; 784 | if (!ctype_digit($size)) { 785 | $unit = strtolower(substr($size, -1, 1)); 786 | $size = (int) substr($size, 0, -1); 787 | } 788 | switch ($unit) { 789 | case 'g': 790 | return $size * 1024 * 1024 * 1024; 791 | case 'm': 792 | return $size * 1024 * 1024; 793 | case 'k': 794 | return $size * 1024; 795 | default: 796 | return (int) $size; 797 | } 798 | } 799 | 800 | /** 801 | * Defines PHP required version from Symfony version. 802 | * 803 | * @return string|false The PHP required version or false if it could not be guessed 804 | */ 805 | protected function getPhpRequiredVersion() 806 | { 807 | if (!file_exists($path = __DIR__.'/../composer.lock')) { 808 | return false; 809 | } 810 | 811 | $composerLock = json_decode(file_get_contents($path), true); 812 | foreach ($composerLock['packages'] as $package) { 813 | $name = $package['name']; 814 | if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { 815 | continue; 816 | } 817 | 818 | return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; 819 | } 820 | 821 | return false; 822 | } 823 | } 824 | -------------------------------------------------------------------------------- /var/cache/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anton-okolelov/helloworldphp/20cb11ad93801c2e1ec682e5f71037ca6d822564/var/cache/.gitkeep -------------------------------------------------------------------------------- /var/logs/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anton-okolelov/helloworldphp/20cb11ad93801c2e1ec682e5f71037ca6d822564/var/logs/.gitkeep -------------------------------------------------------------------------------- /var/sessions/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anton-okolelov/helloworldphp/20cb11ad93801c2e1ec682e5f71037ca6d822564/var/sessions/.gitkeep -------------------------------------------------------------------------------- /web/.htaccess: -------------------------------------------------------------------------------- 1 | # Use the front controller as index file. It serves as a fallback solution when 2 | # every other rewrite/redirect fails (e.g. in an aliased environment without 3 | # mod_rewrite). Additionally, this reduces the matching process for the 4 | # start page (path "/") because otherwise Apache will apply the rewriting rules 5 | # to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). 6 | DirectoryIndex app.php 7 | 8 | # By default, Apache does not evaluate symbolic links if you did not enable this 9 | # feature in your server configuration. Uncomment the following line if you 10 | # install assets as symlinks or if you experience problems related to symlinks 11 | # when compiling LESS/Sass/CoffeScript assets. 12 | # Options FollowSymlinks 13 | 14 | # Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve 15 | # to the front controller "/app.php" but be rewritten to "/app.php/app". 16 | 17 | Options -MultiViews 18 | 19 | 20 | 21 | RewriteEngine On 22 | 23 | # Determine the RewriteBase automatically and set it as environment variable. 24 | # If you are using Apache aliases to do mass virtual hosting or installed the 25 | # project in a subdirectory, the base path will be prepended to allow proper 26 | # resolution of the app.php file and to redirect to the correct URI. It will 27 | # work in environments without path prefix as well, providing a safe, one-size 28 | # fits all solution. But as you do not need it in this case, you can comment 29 | # the following 2 lines to eliminate the overhead. 30 | RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ 31 | RewriteRule ^(.*) - [E=BASE:%1] 32 | 33 | # Sets the HTTP_AUTHORIZATION header removed by Apache 34 | RewriteCond %{HTTP:Authorization} . 35 | RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 36 | 37 | # Redirect to URI without front controller to prevent duplicate content 38 | # (with and without `/app.php`). Only do this redirect on the initial 39 | # rewrite by Apache and not on subsequent cycles. Otherwise we would get an 40 | # endless redirect loop (request -> rewrite to front controller -> 41 | # redirect -> request -> ...). 42 | # So in case you get a "too many redirects" error or you always get redirected 43 | # to the start page because your Apache does not expose the REDIRECT_STATUS 44 | # environment variable, you have 2 choices: 45 | # - disable this feature by commenting the following 2 lines or 46 | # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the 47 | # following RewriteCond (best solution) 48 | RewriteCond %{ENV:REDIRECT_STATUS} ^$ 49 | RewriteRule ^app\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] 50 | 51 | # If the requested filename exists, simply serve it. 52 | # We only want to let Apache serve files and not directories. 53 | RewriteCond %{REQUEST_FILENAME} -f 54 | RewriteRule ^ - [L] 55 | 56 | # Rewrite all other queries to the front controller. 57 | RewriteRule ^ %{ENV:BASE}/app.php [L] 58 | 59 | 60 | 61 | 62 | # When mod_rewrite is not available, we instruct a temporary redirect of 63 | # the start page to the front controller explicitly so that the website 64 | # and the generated links can still be used. 65 | RedirectMatch 302 ^/$ /app.php/ 66 | # RedirectTemp cannot be used instead 67 | 68 | 69 | -------------------------------------------------------------------------------- /web/app.php: -------------------------------------------------------------------------------- 1 | loadClassCache(); 11 | //$kernel = new AppCache($kernel); 12 | 13 | // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter 14 | //Request::enableHttpMethodParameterOverride(); 15 | $request = Request::createFromGlobals(); 16 | $response = $kernel->handle($request); 17 | $response->send(); 18 | $kernel->terminate($request, $response); 19 | -------------------------------------------------------------------------------- /web/app_dev.php: -------------------------------------------------------------------------------- 1 | loadClassCache(); 27 | $request = Request::createFromGlobals(); 28 | $response = $kernel->handle($request); 29 | $response->send(); 30 | $kernel->terminate($request, $response); 31 | -------------------------------------------------------------------------------- /web/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anton-okolelov/helloworldphp/20cb11ad93801c2e1ec682e5f71037ca6d822564/web/apple-touch-icon.png -------------------------------------------------------------------------------- /web/config.php: -------------------------------------------------------------------------------- 1 | getFailedRequirements(); 30 | $minorProblems = $symfonyRequirements->getFailedRecommendations(); 31 | $hasMajorProblems = (bool) count($majorProblems); 32 | $hasMinorProblems = (bool) count($minorProblems); 33 | 34 | ?> 35 | 36 | 37 | 38 | 39 | 40 | Symfony Configuration Checker 41 | 331 | 332 | 333 |
334 |
335 | 338 | 339 | 359 |
360 | 361 |
362 |
363 |
364 |

Configuration Checker

365 |

366 | This script analyzes your system to check whether is 367 | ready to run Symfony applications. 368 |

369 | 370 | 371 |

Major problems

372 |

Major problems have been detected and must be fixed before continuing:

373 |
    374 | 375 |
  1. getTestMessage() ?> 376 |

    getHelpHtml() ?>

    377 |
  2. 378 | 379 |
380 | 381 | 382 | 383 |

Recommendations

384 |

385 | Additionally, toTo enhance your Symfony experience, 386 | it’s recommended that you fix the following: 387 |

388 |
    389 | 390 |
  1. getTestMessage() ?> 391 |

    getHelpHtml() ?>

    392 |
  2. 393 | 394 |
395 | 396 | 397 | hasPhpIniConfigIssue()): ?> 398 |

* 399 | getPhpIniConfigPath()): ?> 400 | Changes to the php.ini file must be done in "getPhpIniConfigPath() ?>". 401 | 402 | To change settings, create a "php.ini". 403 | 404 |

405 | 406 | 407 | 408 |

All checks passed successfully. Your system is ready to run Symfony applications.

409 | 410 | 411 | 416 |
417 |
418 |
419 |
Symfony Standard Edition
420 |
421 | 422 | 423 | -------------------------------------------------------------------------------- /web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anton-okolelov/helloworldphp/20cb11ad93801c2e1ec682e5f71037ca6d822564/web/favicon.ico -------------------------------------------------------------------------------- /web/robots.txt: -------------------------------------------------------------------------------- 1 | # www.robotstxt.org/ 2 | # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 3 | 4 | User-agent: * 5 | Disallow: 6 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require('webpack'); 2 | const path = require('path'); 3 | const ENVIRONMENT = process.env.NODE_ENV || 'development'; 4 | 5 | let config = { 6 | context: path.resolve(__dirname, "frontend"), 7 | entry: './index.tsx', 8 | output: { 9 | filename: 'bundle.js', 10 | path: path.resolve(__dirname, "web/js") 11 | }, 12 | resolve: { 13 | extensions: [ ".js", ".jsx", '.ts', '.tsx'] 14 | }, 15 | module: { 16 | rules: [ 17 | { 18 | test: /\.tsx?$/, 19 | use: [{ 20 | loader: 'babel-loader', 21 | query: { 22 | presets: ['es2015', 'react'] 23 | } 24 | }, { 25 | loader: 'ts-loader' 26 | }] 27 | }, 28 | 29 | { 30 | test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/, 31 | loader: 'url-loader' 32 | }, 33 | 34 | { 35 | test: /\.scss$/, 36 | use: [ 37 | { 38 | loader: "style-loader" 39 | }, 40 | { 41 | loader: "css-loader" 42 | }, 43 | { 44 | loader: "resolve-url-loader" 45 | }, 46 | { 47 | loader: "sass-loader" 48 | } 49 | ] 50 | } 51 | ] 52 | }, 53 | plugins: [ 54 | new webpack.DefinePlugin({ 55 | 'process.env.NODE_ENV': JSON.stringify(ENVIRONMENT) 56 | }) 57 | ], 58 | node: { 59 | process: false 60 | } 61 | }; 62 | 63 | if (ENVIRONMENT == 'production') { 64 | config.plugins.push( 65 | new webpack.optimize.UglifyJsPlugin({ 66 | compress: { 67 | drop_console: false, 68 | warnings: false 69 | } 70 | }) 71 | ); 72 | } 73 | 74 | module.exports = config; 75 | 76 | --------------------------------------------------------------------------------