├── .gitignore ├── Dockerfile ├── README.md ├── app ├── .htaccess ├── AppCache.php ├── AppKernel.php ├── Resources │ └── views │ │ ├── base.html.twig │ │ └── default │ │ └── index.html.twig └── 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 ├── build.sh ├── composer.json ├── composer.lock ├── docker └── app │ ├── install-composer.sh │ ├── php.ini │ └── run-pm.sh ├── phpunit.xml.dist ├── ppm.json ├── src ├── .htaccess └── AppBundle │ ├── AppBundle.php │ └── Controller │ └── DefaultController.php ├── start.sh ├── tests └── AppBundle │ └── Controller │ └── DefaultControllerTest.php ├── var ├── SymfonyRequirements.php ├── cache │ └── .gitkeep ├── logs │ └── .gitkeep └── sessions │ └── .gitkeep └── web ├── .htaccess ├── app.php ├── app_dev.php ├── apple-touch-icon.png ├── config.php ├── favicon.ico └── robots.txt /.gitignore: -------------------------------------------------------------------------------- 1 | /.web-server-pid 2 | /app/config/parameters.yml 3 | /build/ 4 | /phpunit.xml 5 | /var/* 6 | !/var/cache 7 | /var/cache/* 8 | !var/cache/.gitkeep 9 | !/var/logs 10 | /var/logs/* 11 | !var/logs/.gitkeep 12 | !/var/sessions 13 | /var/sessions/* 14 | !var/sessions/.gitkeep 15 | !var/SymfonyRequirements.php 16 | /vendor/ 17 | /web/bundles/ 18 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:stretch 2 | 3 | # some base setup 4 | RUN apt-get update \ 5 | && apt-get -y install wget apt-transport-https lsb-release ca-certificates \ 6 | && wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \ 7 | && echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list \ 8 | && apt-get update \ 9 | && apt-get -y install readline-common git zlib1g-dev php7.1 php7.1-cgi php7.1-zip php7.1-curl php7.1-opcache php7.1-xml php7.1-mbstring php7.1-imagick php7.1-gd 10 | 11 | # copy the defined settings to conf.d, most importantly to set disable_functions to null to allow PPM to run 12 | COPY docker/app/php.ini /etc/php/7.1/cgi/conf.d/99-phppm.ini 13 | COPY docker/app/php.ini /etc/php/7.1/cli/conf.d/99-phppm.ini 14 | 15 | # install composer and run package installs to speed up final composer install 16 | COPY docker/app/install-composer.sh /usr/local/bin/docker-app-install-composer 17 | RUN chmod +x /usr/local/bin/docker-app-install-composer 18 | 19 | RUN set -xe \ 20 | && docker-app-install-composer \ 21 | && mv composer.phar /usr/local/bin/composer 22 | 23 | ENV COMPOSER_ALLOW_SUPERUSER 1 24 | 25 | RUN composer global require "hirak/prestissimo:^0.3" --prefer-dist --no-progress --no-suggest --optimize-autoloader --classmap-authoritative \ 26 | && composer clear-cache 27 | 28 | # copy files to main dir 29 | WORKDIR /srv/app 30 | COPY . . 31 | 32 | # run composer install 33 | RUN mkdir -p var/cache var/logs var/sessions \ 34 | && composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader --classmap-authoritative --no-interaction \ 35 | && composer clear-cache \ 36 | && chown -R www-data var 37 | 38 | # install php-pm to directory 39 | RUN git clone https://github.com/php-pm/php-pm.git \ 40 | && cd php-pm \ 41 | && composer install \ 42 | && ln -s `pwd`/bin/ppm /usr/local/bin/ppm \ 43 | && composer require php-pm/httpkernel-adapter:dev-master 44 | 45 | # run ppm, note that it will use ppm.json settings by default 46 | CMD ["php","/usr/local/bin/ppm","start"] 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | PHP-PM Docker with Symfony example 2 | =========== 3 | 4 | This is an attempt to run [PHP-PM](https://github.com/php-pm/php-pm) in a Docker image. 5 | The aim is to enable running compatible PHP apps with high performance and no need 6 | for a separate web server (like Nginx or Apache). This would be inline with running 7 | Node.js or Golang apps in containers. 8 | 9 | More information in this article: [Running Symfony without a web server on Docker using PHP-PM](https://symfony.fi/entry/running-symfony-without-a-web-server-on-docker-using-php-pm) 10 | 11 | ## Installation 12 | 13 | Make sure you've got Docker installed and working as expected. 14 | 15 | Build the image (see [Dockerfile](./Dockerfile) for details): 16 | 17 | ``` 18 | $ docker build --tag=ppmtest . 19 | ``` 20 | 21 | This will take some time, but once you've got it running you can run it as follows: 22 | 23 | ``` 24 | $ docker run -p 8080:8080 ppmtest:latest 25 | ``` 26 | -------------------------------------------------------------------------------- /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 | 26 | if ('dev' === $this->getEnvironment()) { 27 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); 28 | $bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle(); 29 | } 30 | } 31 | 32 | return $bundles; 33 | } 34 | 35 | public function getRootDir() 36 | { 37 | return __DIR__; 38 | } 39 | 40 | public function getCacheDir() 41 | { 42 | return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); 43 | } 44 | 45 | public function getLogDir() 46 | { 47 | return dirname(__DIR__).'/var/logs'; 48 | } 49 | 50 | public function registerContainerConfiguration(LoaderInterface $loader) 51 | { 52 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /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 | {% extends 'base.html.twig' %} 2 | 3 | {% block body %} 4 |
5 |
6 |
7 |

Welcome to Symfony {{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}

8 |
9 | 10 |
11 |

12 | 13 | 14 | Your application is now ready. You can start working on it at: 15 | {{ base_dir }} 16 |

17 |
18 | 19 | 44 | 45 |
46 |
47 | {% endblock %} 48 | 49 | {% block stylesheets %} 50 | 76 | {% endblock %} 77 | -------------------------------------------------------------------------------- /app/config/config.yml: -------------------------------------------------------------------------------- 1 | imports: 2 | - { resource: parameters.yml } 3 | - { resource: security.yml } 4 | - { resource: services.yml } 5 | 6 | # Put parameters here that don't need to change on each machine where the app is deployed 7 | # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration 8 | parameters: 9 | locale: en 10 | 11 | framework: 12 | #esi: ~ 13 | #translator: { fallbacks: ['%locale%'] } 14 | secret: '%secret%' 15 | router: 16 | resource: '%kernel.project_dir%/app/config/routing.yml' 17 | strict_requirements: ~ 18 | form: ~ 19 | csrf_protection: ~ 20 | validation: { enable_annotations: true } 21 | #serializer: { enable_annotations: true } 22 | default_locale: '%locale%' 23 | trusted_hosts: ~ 24 | session: 25 | # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id 26 | handler_id: session.handler.native_file 27 | save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%' 28 | fragments: ~ 29 | http_method_override: true 30 | assets: ~ 31 | php_errors: 32 | log: true 33 | 34 | # Twig Configuration 35 | twig: 36 | debug: '%kernel.debug%' 37 | strict_variables: '%kernel.debug%' 38 | 39 | # Doctrine Configuration 40 | doctrine: 41 | dbal: 42 | driver: pdo_mysql 43 | host: '%database_host%' 44 | port: '%database_port%' 45 | dbname: '%database_name%' 46 | user: '%database_user%' 47 | password: '%database_password%' 48 | charset: UTF8 49 | # if using pdo_sqlite as your database driver: 50 | # 1. add the path in parameters.yml 51 | # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite' 52 | # 2. Uncomment database_path in parameters.yml.dist 53 | # 3. Uncomment next line: 54 | #path: '%database_path%' 55 | 56 | orm: 57 | auto_generate_proxy_classes: '%kernel.debug%' 58 | naming_strategy: doctrine.orm.naming_strategy.underscore 59 | auto_mapping: true 60 | 61 | # Swiftmailer Configuration 62 | swiftmailer: 63 | transport: '%mailer_transport%' 64 | host: '%mailer_host%' 65 | username: '%mailer_user%' 66 | password: '%mailer_password%' 67 | spool: { type: memory } 68 | -------------------------------------------------------------------------------- /app/config/config_dev.yml: -------------------------------------------------------------------------------- 1 | imports: 2 | - { resource: config.yml } 3 | 4 | framework: 5 | router: 6 | resource: '%kernel.project_dir%/app/config/routing_dev.yml' 7 | strict_requirements: true 8 | profiler: { only_exceptions: false } 9 | 10 | web_profiler: 11 | toolbar: true 12 | intercept_redirects: false 13 | 14 | monolog: 15 | handlers: 16 | main: 17 | type: stream 18 | path: '%kernel.logs_dir%/%kernel.environment%.log' 19 | level: debug 20 | channels: ['!event'] 21 | console: 22 | type: console 23 | process_psr_3_messages: false 24 | channels: ['!event', '!doctrine', '!console'] 25 | # To follow logs in real time, execute the following command: 26 | # `bin/console server:log -vv` 27 | server_log: 28 | type: server_log 29 | process_psr_3_messages: false 30 | host: 127.0.0.1:9911 31 | # uncomment to get logging in your browser 32 | # you may have to allow bigger header sizes in your Web server configuration 33 | #firephp: 34 | # type: firephp 35 | # level: info 36 | #chromephp: 37 | # type: chromephp 38 | # level: info 39 | 40 | #swiftmailer: 41 | # delivery_addresses: ['me@example.com'] 42 | -------------------------------------------------------------------------------- /app/config/config_prod.yml: -------------------------------------------------------------------------------- 1 | imports: 2 | - { resource: config.yml } 3 | 4 | #doctrine: 5 | # orm: 6 | # metadata_cache_driver: apc 7 | # result_cache_driver: apc 8 | # query_cache_driver: apc 9 | 10 | monolog: 11 | handlers: 12 | main: 13 | type: fingers_crossed 14 | action_level: error 15 | handler: nested 16 | nested: 17 | type: stream 18 | path: '%kernel.logs_dir%/%kernel.environment%.log' 19 | level: debug 20 | console: 21 | type: console 22 | process_psr_3_messages: false 23 | -------------------------------------------------------------------------------- /app/config/config_test.yml: -------------------------------------------------------------------------------- 1 | imports: 2 | - { resource: config_dev.yml } 3 | 4 | framework: 5 | test: ~ 6 | session: 7 | storage_id: session.storage.mock_file 8 | profiler: 9 | collect: false 10 | 11 | web_profiler: 12 | toolbar: false 13 | intercept_redirects: false 14 | 15 | swiftmailer: 16 | disable_delivery: true 17 | -------------------------------------------------------------------------------- /app/config/parameters.yml.dist: -------------------------------------------------------------------------------- 1 | # This file is a "template" of what your parameters.yml file should look like 2 | # Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. 3 | # https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration 4 | parameters: 5 | database_host: 127.0.0.1 6 | database_port: ~ 7 | database_name: symfony 8 | database_user: root 9 | database_password: ~ 10 | # You should uncomment this if you want to use pdo_sqlite 11 | #database_path: '%kernel.project_dir%/var/data/data.sqlite' 12 | 13 | mailer_transport: smtp 14 | mailer_host: 127.0.0.1 15 | mailer_user: ~ 16 | mailer_password: ~ 17 | 18 | # A secret key that's used to generate certain security-related tokens 19 | secret: ThisTokenIsNotSoSecretChangeIt 20 | -------------------------------------------------------------------------------- /app/config/routing.yml: -------------------------------------------------------------------------------- 1 | app: 2 | resource: '@AppBundle/Controller/' 3 | type: annotation 4 | -------------------------------------------------------------------------------- /app/config/routing_dev.yml: -------------------------------------------------------------------------------- 1 | _wdt: 2 | resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' 3 | prefix: /_wdt 4 | 5 | _profiler: 6 | resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' 7 | prefix: /_profiler 8 | 9 | _errors: 10 | resource: '@TwigBundle/Resources/config/routing/errors.xml' 11 | prefix: /_error 12 | 13 | _main: 14 | resource: routing.yml 15 | -------------------------------------------------------------------------------- /app/config/security.yml: -------------------------------------------------------------------------------- 1 | # To get started with security, check out the documentation: 2 | # https://symfony.com/doc/current/security.html 3 | security: 4 | 5 | # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded 6 | providers: 7 | in_memory: 8 | memory: ~ 9 | 10 | firewalls: 11 | # disables authentication for assets and the profiler, adapt it according to your needs 12 | dev: 13 | pattern: ^/(_(profiler|wdt)|css|images|js)/ 14 | security: false 15 | 16 | main: 17 | anonymous: ~ 18 | # activate different ways to authenticate 19 | 20 | # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate 21 | #http_basic: ~ 22 | 23 | # https://symfony.com/doc/current/security/form_login_setup.html 24 | #form_login: ~ 25 | -------------------------------------------------------------------------------- /app/config/services.yml: -------------------------------------------------------------------------------- 1 | # Learn more about services, parameters and containers at 2 | # https://symfony.com/doc/current/service_container.html 3 | parameters: 4 | #parameter_name: value 5 | 6 | services: 7 | # default configuration for services in *this* file 8 | _defaults: 9 | # automatically injects dependencies in your services 10 | autowire: true 11 | # automatically registers your services as commands, event subscribers, etc. 12 | autoconfigure: true 13 | # this means you cannot fetch services directly from the container via $container->get() 14 | # if you need to do this, you can override this setting on individual services 15 | public: false 16 | 17 | # makes classes in src/AppBundle available to be used as services 18 | # this creates a service per class whose id is the fully-qualified class name 19 | AppBundle\: 20 | resource: '../../src/AppBundle/*' 21 | # you can exclude directories or files 22 | # but if a service is unused, it's removed anyway 23 | exclude: '../../src/AppBundle/{Entity,Repository,Tests}' 24 | 25 | # controllers are imported separately to make sure they're public 26 | # and have a tag that allows actions to type-hint services 27 | AppBundle\Controller\: 28 | resource: '../../src/AppBundle/Controller' 29 | public: true 30 | tags: ['controller.service_arguments'] 31 | 32 | # add more services, or override services that need manual wiring 33 | # AppBundle\Service\ExampleService: 34 | # arguments: 35 | # $someArgument: 'some_value' 36 | -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); 19 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; 20 | 21 | if ($debug) { 22 | Debug::enable(); 23 | } 24 | 25 | $kernel = new AppKernel($env, $debug); 26 | $application = new Application($kernel); 27 | $application->run($input); 28 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | docker build --tag=ppmtest . 2 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "janit/symfony-ppm", 3 | "license": "proprietary", 4 | "type": "project", 5 | "autoload": { 6 | "psr-4": { 7 | "AppBundle\\": "src/AppBundle" 8 | }, 9 | "classmap": [ 10 | "app/AppKernel.php", 11 | "app/AppCache.php" 12 | ] 13 | }, 14 | "autoload-dev": { 15 | "psr-4": { 16 | "Tests\\": "tests/" 17 | }, 18 | "files": [ 19 | "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" 20 | ] 21 | }, 22 | "require": { 23 | "php": ">=5.5.9", 24 | "doctrine/doctrine-bundle": "^1.6", 25 | "doctrine/orm": "^2.5", 26 | "incenteev/composer-parameter-handler": "^2.0", 27 | "sensio/distribution-bundle": "^5.0.19", 28 | "sensio/framework-extra-bundle": "^5.0.0", 29 | "symfony/monolog-bundle": "^3.1.0", 30 | "symfony/polyfill-apcu": "^1.0", 31 | "symfony/swiftmailer-bundle": "^2.6.4", 32 | "symfony/symfony": "3.4.0-BETA1", 33 | "twig/twig": "^1.0||^2.0" 34 | }, 35 | "require-dev": { 36 | "sensio/generator-bundle": "^3.0", 37 | "symfony/phpunit-bridge": "^3.0" 38 | }, 39 | "scripts": { 40 | "symfony-scripts": [ 41 | "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 42 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 43 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 44 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 45 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 46 | "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" 47 | ], 48 | "post-install-cmd": [ 49 | "@symfony-scripts" 50 | ], 51 | "post-update-cmd": [ 52 | "@symfony-scripts" 53 | ] 54 | }, 55 | "config": { 56 | "sort-packages": true 57 | }, 58 | "extra": { 59 | "symfony-app-dir": "app", 60 | "symfony-bin-dir": "bin", 61 | "symfony-var-dir": "var", 62 | "symfony-web-dir": "web", 63 | "symfony-tests-dir": "tests", 64 | "symfony-assets-install": "relative", 65 | "incenteev-parameters": { 66 | "file": "app/config/parameters.yml" 67 | }, 68 | "branch-alias": null 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /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": "a758462dfa34af0ee2728a31b5754a9e", 8 | "packages": [ 9 | { 10 | "name": "composer/ca-bundle", 11 | "version": "1.0.8", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/composer/ca-bundle.git", 15 | "reference": "9dd73a03951357922d8aee6cc084500de93e2343" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/composer/ca-bundle/zipball/9dd73a03951357922d8aee6cc084500de93e2343", 20 | "reference": "9dd73a03951357922d8aee6cc084500de93e2343", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "ext-openssl": "*", 25 | "ext-pcre": "*", 26 | "php": "^5.3.2 || ^7.0" 27 | }, 28 | "require-dev": { 29 | "phpunit/phpunit": "^4.5", 30 | "psr/log": "^1.0", 31 | "symfony/process": "^2.5 || ^3.0" 32 | }, 33 | "suggest": { 34 | "symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+" 35 | }, 36 | "type": "library", 37 | "extra": { 38 | "branch-alias": { 39 | "dev-master": "1.x-dev" 40 | } 41 | }, 42 | "autoload": { 43 | "psr-4": { 44 | "Composer\\CaBundle\\": "src" 45 | } 46 | }, 47 | "notification-url": "https://packagist.org/downloads/", 48 | "license": [ 49 | "MIT" 50 | ], 51 | "authors": [ 52 | { 53 | "name": "Jordi Boggiano", 54 | "email": "j.boggiano@seld.be", 55 | "homepage": "http://seld.be" 56 | } 57 | ], 58 | "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", 59 | "keywords": [ 60 | "cabundle", 61 | "cacert", 62 | "certificate", 63 | "ssl", 64 | "tls" 65 | ], 66 | "time": "2017-09-11T07:24:36+00:00" 67 | }, 68 | { 69 | "name": "doctrine/annotations", 70 | "version": "v1.5.0", 71 | "source": { 72 | "type": "git", 73 | "url": "https://github.com/doctrine/annotations.git", 74 | "reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f" 75 | }, 76 | "dist": { 77 | "type": "zip", 78 | "url": "https://api.github.com/repos/doctrine/annotations/zipball/5beebb01b025c94e93686b7a0ed3edae81fe3e7f", 79 | "reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f", 80 | "shasum": "" 81 | }, 82 | "require": { 83 | "doctrine/lexer": "1.*", 84 | "php": "^7.1" 85 | }, 86 | "require-dev": { 87 | "doctrine/cache": "1.*", 88 | "phpunit/phpunit": "^5.7" 89 | }, 90 | "type": "library", 91 | "extra": { 92 | "branch-alias": { 93 | "dev-master": "1.5.x-dev" 94 | } 95 | }, 96 | "autoload": { 97 | "psr-4": { 98 | "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" 99 | } 100 | }, 101 | "notification-url": "https://packagist.org/downloads/", 102 | "license": [ 103 | "MIT" 104 | ], 105 | "authors": [ 106 | { 107 | "name": "Roman Borschel", 108 | "email": "roman@code-factory.org" 109 | }, 110 | { 111 | "name": "Benjamin Eberlei", 112 | "email": "kontakt@beberlei.de" 113 | }, 114 | { 115 | "name": "Guilherme Blanco", 116 | "email": "guilhermeblanco@gmail.com" 117 | }, 118 | { 119 | "name": "Jonathan Wage", 120 | "email": "jonwage@gmail.com" 121 | }, 122 | { 123 | "name": "Johannes Schmitt", 124 | "email": "schmittjoh@gmail.com" 125 | } 126 | ], 127 | "description": "Docblock Annotations Parser", 128 | "homepage": "http://www.doctrine-project.org", 129 | "keywords": [ 130 | "annotations", 131 | "docblock", 132 | "parser" 133 | ], 134 | "time": "2017-07-22T10:58:02+00:00" 135 | }, 136 | { 137 | "name": "doctrine/cache", 138 | "version": "v1.7.1", 139 | "source": { 140 | "type": "git", 141 | "url": "https://github.com/doctrine/cache.git", 142 | "reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a" 143 | }, 144 | "dist": { 145 | "type": "zip", 146 | "url": "https://api.github.com/repos/doctrine/cache/zipball/b3217d58609e9c8e661cd41357a54d926c4a2a1a", 147 | "reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a", 148 | "shasum": "" 149 | }, 150 | "require": { 151 | "php": "~7.1" 152 | }, 153 | "conflict": { 154 | "doctrine/common": ">2.2,<2.4" 155 | }, 156 | "require-dev": { 157 | "alcaeus/mongo-php-adapter": "^1.1", 158 | "mongodb/mongodb": "^1.1", 159 | "phpunit/phpunit": "^5.7", 160 | "predis/predis": "~1.0" 161 | }, 162 | "suggest": { 163 | "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" 164 | }, 165 | "type": "library", 166 | "extra": { 167 | "branch-alias": { 168 | "dev-master": "1.7.x-dev" 169 | } 170 | }, 171 | "autoload": { 172 | "psr-4": { 173 | "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" 174 | } 175 | }, 176 | "notification-url": "https://packagist.org/downloads/", 177 | "license": [ 178 | "MIT" 179 | ], 180 | "authors": [ 181 | { 182 | "name": "Roman Borschel", 183 | "email": "roman@code-factory.org" 184 | }, 185 | { 186 | "name": "Benjamin Eberlei", 187 | "email": "kontakt@beberlei.de" 188 | }, 189 | { 190 | "name": "Guilherme Blanco", 191 | "email": "guilhermeblanco@gmail.com" 192 | }, 193 | { 194 | "name": "Jonathan Wage", 195 | "email": "jonwage@gmail.com" 196 | }, 197 | { 198 | "name": "Johannes Schmitt", 199 | "email": "schmittjoh@gmail.com" 200 | } 201 | ], 202 | "description": "Caching library offering an object-oriented API for many cache backends", 203 | "homepage": "http://www.doctrine-project.org", 204 | "keywords": [ 205 | "cache", 206 | "caching" 207 | ], 208 | "time": "2017-08-25T07:02:50+00:00" 209 | }, 210 | { 211 | "name": "doctrine/collections", 212 | "version": "v1.5.0", 213 | "source": { 214 | "type": "git", 215 | "url": "https://github.com/doctrine/collections.git", 216 | "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf" 217 | }, 218 | "dist": { 219 | "type": "zip", 220 | "url": "https://api.github.com/repos/doctrine/collections/zipball/a01ee38fcd999f34d9bfbcee59dbda5105449cbf", 221 | "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf", 222 | "shasum": "" 223 | }, 224 | "require": { 225 | "php": "^7.1" 226 | }, 227 | "require-dev": { 228 | "doctrine/coding-standard": "~0.1@dev", 229 | "phpunit/phpunit": "^5.7" 230 | }, 231 | "type": "library", 232 | "extra": { 233 | "branch-alias": { 234 | "dev-master": "1.3.x-dev" 235 | } 236 | }, 237 | "autoload": { 238 | "psr-0": { 239 | "Doctrine\\Common\\Collections\\": "lib/" 240 | } 241 | }, 242 | "notification-url": "https://packagist.org/downloads/", 243 | "license": [ 244 | "MIT" 245 | ], 246 | "authors": [ 247 | { 248 | "name": "Roman Borschel", 249 | "email": "roman@code-factory.org" 250 | }, 251 | { 252 | "name": "Benjamin Eberlei", 253 | "email": "kontakt@beberlei.de" 254 | }, 255 | { 256 | "name": "Guilherme Blanco", 257 | "email": "guilhermeblanco@gmail.com" 258 | }, 259 | { 260 | "name": "Jonathan Wage", 261 | "email": "jonwage@gmail.com" 262 | }, 263 | { 264 | "name": "Johannes Schmitt", 265 | "email": "schmittjoh@gmail.com" 266 | } 267 | ], 268 | "description": "Collections Abstraction library", 269 | "homepage": "http://www.doctrine-project.org", 270 | "keywords": [ 271 | "array", 272 | "collections", 273 | "iterator" 274 | ], 275 | "time": "2017-07-22T10:37:32+00:00" 276 | }, 277 | { 278 | "name": "doctrine/common", 279 | "version": "v2.8.1", 280 | "source": { 281 | "type": "git", 282 | "url": "https://github.com/doctrine/common.git", 283 | "reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66" 284 | }, 285 | "dist": { 286 | "type": "zip", 287 | "url": "https://api.github.com/repos/doctrine/common/zipball/f68c297ce6455e8fd794aa8ffaf9fa458f6ade66", 288 | "reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66", 289 | "shasum": "" 290 | }, 291 | "require": { 292 | "doctrine/annotations": "1.*", 293 | "doctrine/cache": "1.*", 294 | "doctrine/collections": "1.*", 295 | "doctrine/inflector": "1.*", 296 | "doctrine/lexer": "1.*", 297 | "php": "~7.1" 298 | }, 299 | "require-dev": { 300 | "phpunit/phpunit": "^5.7" 301 | }, 302 | "type": "library", 303 | "extra": { 304 | "branch-alias": { 305 | "dev-master": "2.8.x-dev" 306 | } 307 | }, 308 | "autoload": { 309 | "psr-4": { 310 | "Doctrine\\Common\\": "lib/Doctrine/Common" 311 | } 312 | }, 313 | "notification-url": "https://packagist.org/downloads/", 314 | "license": [ 315 | "MIT" 316 | ], 317 | "authors": [ 318 | { 319 | "name": "Roman Borschel", 320 | "email": "roman@code-factory.org" 321 | }, 322 | { 323 | "name": "Benjamin Eberlei", 324 | "email": "kontakt@beberlei.de" 325 | }, 326 | { 327 | "name": "Guilherme Blanco", 328 | "email": "guilhermeblanco@gmail.com" 329 | }, 330 | { 331 | "name": "Jonathan Wage", 332 | "email": "jonwage@gmail.com" 333 | }, 334 | { 335 | "name": "Johannes Schmitt", 336 | "email": "schmittjoh@gmail.com" 337 | } 338 | ], 339 | "description": "Common Library for Doctrine projects", 340 | "homepage": "http://www.doctrine-project.org", 341 | "keywords": [ 342 | "annotations", 343 | "collections", 344 | "eventmanager", 345 | "persistence", 346 | "spl" 347 | ], 348 | "time": "2017-08-31T08:43:38+00:00" 349 | }, 350 | { 351 | "name": "doctrine/dbal", 352 | "version": "v2.6.2", 353 | "source": { 354 | "type": "git", 355 | "url": "https://github.com/doctrine/dbal.git", 356 | "reference": "1a4ee83a5a709555f2c6f9057a3aacf892451c7e" 357 | }, 358 | "dist": { 359 | "type": "zip", 360 | "url": "https://api.github.com/repos/doctrine/dbal/zipball/1a4ee83a5a709555f2c6f9057a3aacf892451c7e", 361 | "reference": "1a4ee83a5a709555f2c6f9057a3aacf892451c7e", 362 | "shasum": "" 363 | }, 364 | "require": { 365 | "doctrine/common": "^2.7.1", 366 | "ext-pdo": "*", 367 | "php": "^7.1" 368 | }, 369 | "require-dev": { 370 | "phpunit/phpunit": "^5.4.6", 371 | "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", 372 | "symfony/console": "2.*||^3.0" 373 | }, 374 | "suggest": { 375 | "symfony/console": "For helpful console commands such as SQL execution and import of files." 376 | }, 377 | "bin": [ 378 | "bin/doctrine-dbal" 379 | ], 380 | "type": "library", 381 | "extra": { 382 | "branch-alias": { 383 | "dev-master": "2.6.x-dev" 384 | } 385 | }, 386 | "autoload": { 387 | "psr-0": { 388 | "Doctrine\\DBAL\\": "lib/" 389 | } 390 | }, 391 | "notification-url": "https://packagist.org/downloads/", 392 | "license": [ 393 | "MIT" 394 | ], 395 | "authors": [ 396 | { 397 | "name": "Roman Borschel", 398 | "email": "roman@code-factory.org" 399 | }, 400 | { 401 | "name": "Benjamin Eberlei", 402 | "email": "kontakt@beberlei.de" 403 | }, 404 | { 405 | "name": "Guilherme Blanco", 406 | "email": "guilhermeblanco@gmail.com" 407 | }, 408 | { 409 | "name": "Jonathan Wage", 410 | "email": "jonwage@gmail.com" 411 | } 412 | ], 413 | "description": "Database Abstraction Layer", 414 | "homepage": "http://www.doctrine-project.org", 415 | "keywords": [ 416 | "database", 417 | "dbal", 418 | "persistence", 419 | "queryobject" 420 | ], 421 | "time": "2017-08-28T11:02:56+00:00" 422 | }, 423 | { 424 | "name": "doctrine/doctrine-bundle", 425 | "version": "1.7.1", 426 | "source": { 427 | "type": "git", 428 | "url": "https://github.com/doctrine/DoctrineBundle.git", 429 | "reference": "f8bff22d608224ed88e90b24e9d884cb10b389bb" 430 | }, 431 | "dist": { 432 | "type": "zip", 433 | "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/f8bff22d608224ed88e90b24e9d884cb10b389bb", 434 | "reference": "f8bff22d608224ed88e90b24e9d884cb10b389bb", 435 | "shasum": "" 436 | }, 437 | "require": { 438 | "doctrine/dbal": "^2.5.12", 439 | "doctrine/doctrine-cache-bundle": "~1.2", 440 | "jdorn/sql-formatter": "~1.1", 441 | "php": "^7.1", 442 | "symfony/console": "~2.7|~3.0|~4.0", 443 | "symfony/dependency-injection": "~2.7|~3.0|~4.0", 444 | "symfony/doctrine-bridge": "~2.7|~3.0|~4.0", 445 | "symfony/framework-bundle": "~2.7|~3.0|~4.0" 446 | }, 447 | "require-dev": { 448 | "doctrine/orm": "~2.3", 449 | "phpunit/phpunit": "^6.1", 450 | "satooshi/php-coveralls": "^1.0", 451 | "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", 452 | "symfony/property-info": "~2.8|~3.0|~4.0", 453 | "symfony/validator": "~2.7|~3.0|~4.0", 454 | "symfony/yaml": "~2.7|~3.0|~4.0", 455 | "twig/twig": "~1.12|~2.0" 456 | }, 457 | "suggest": { 458 | "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", 459 | "symfony/web-profiler-bundle": "To use the data collector." 460 | }, 461 | "type": "symfony-bundle", 462 | "extra": { 463 | "branch-alias": { 464 | "dev-master": "1.7.x-dev" 465 | } 466 | }, 467 | "autoload": { 468 | "psr-4": { 469 | "Doctrine\\Bundle\\DoctrineBundle\\": "" 470 | } 471 | }, 472 | "notification-url": "https://packagist.org/downloads/", 473 | "license": [ 474 | "MIT" 475 | ], 476 | "authors": [ 477 | { 478 | "name": "Symfony Community", 479 | "homepage": "http://symfony.com/contributors" 480 | }, 481 | { 482 | "name": "Benjamin Eberlei", 483 | "email": "kontakt@beberlei.de" 484 | }, 485 | { 486 | "name": "Doctrine Project", 487 | "homepage": "http://www.doctrine-project.org/" 488 | }, 489 | { 490 | "name": "Fabien Potencier", 491 | "email": "fabien@symfony.com" 492 | } 493 | ], 494 | "description": "Symfony DoctrineBundle", 495 | "homepage": "http://www.doctrine-project.org", 496 | "keywords": [ 497 | "database", 498 | "dbal", 499 | "orm", 500 | "persistence" 501 | ], 502 | "time": "2017-09-29T15:26:21+00:00" 503 | }, 504 | { 505 | "name": "doctrine/doctrine-cache-bundle", 506 | "version": "1.3.2", 507 | "source": { 508 | "type": "git", 509 | "url": "https://github.com/doctrine/DoctrineCacheBundle.git", 510 | "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1" 511 | }, 512 | "dist": { 513 | "type": "zip", 514 | "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", 515 | "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", 516 | "shasum": "" 517 | }, 518 | "require": { 519 | "doctrine/cache": "^1.4.2", 520 | "doctrine/inflector": "~1.0", 521 | "php": ">=5.3.2", 522 | "symfony/doctrine-bridge": "~2.2|~3.0|~4.0" 523 | }, 524 | "require-dev": { 525 | "instaclick/coding-standard": "~1.1", 526 | "instaclick/object-calisthenics-sniffs": "dev-master", 527 | "instaclick/symfony2-coding-standard": "dev-remaster", 528 | "phpunit/phpunit": "~4", 529 | "predis/predis": "~0.8", 530 | "satooshi/php-coveralls": "^1.0", 531 | "squizlabs/php_codesniffer": "~1.5", 532 | "symfony/console": "~2.2|~3.0|~4.0", 533 | "symfony/finder": "~2.2|~3.0|~4.0", 534 | "symfony/framework-bundle": "~2.2|~3.0|~4.0", 535 | "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", 536 | "symfony/security-acl": "~2.3|~3.0", 537 | "symfony/validator": "~2.2|~3.0|~4.0", 538 | "symfony/yaml": "~2.2|~3.0|~4.0" 539 | }, 540 | "suggest": { 541 | "symfony/security-acl": "For using this bundle to cache ACLs" 542 | }, 543 | "type": "symfony-bundle", 544 | "extra": { 545 | "branch-alias": { 546 | "dev-master": "1.3.x-dev" 547 | } 548 | }, 549 | "autoload": { 550 | "psr-4": { 551 | "Doctrine\\Bundle\\DoctrineCacheBundle\\": "" 552 | } 553 | }, 554 | "notification-url": "https://packagist.org/downloads/", 555 | "license": [ 556 | "MIT" 557 | ], 558 | "authors": [ 559 | { 560 | "name": "Symfony Community", 561 | "homepage": "http://symfony.com/contributors" 562 | }, 563 | { 564 | "name": "Benjamin Eberlei", 565 | "email": "kontakt@beberlei.de" 566 | }, 567 | { 568 | "name": "Fabio B. Silva", 569 | "email": "fabio.bat.silva@gmail.com" 570 | }, 571 | { 572 | "name": "Guilherme Blanco", 573 | "email": "guilhermeblanco@hotmail.com" 574 | }, 575 | { 576 | "name": "Doctrine Project", 577 | "homepage": "http://www.doctrine-project.org/" 578 | }, 579 | { 580 | "name": "Fabien Potencier", 581 | "email": "fabien@symfony.com" 582 | } 583 | ], 584 | "description": "Symfony Bundle for Doctrine Cache", 585 | "homepage": "http://www.doctrine-project.org", 586 | "keywords": [ 587 | "cache", 588 | "caching" 589 | ], 590 | "time": "2017-10-12T17:23:29+00:00" 591 | }, 592 | { 593 | "name": "doctrine/inflector", 594 | "version": "v1.2.0", 595 | "source": { 596 | "type": "git", 597 | "url": "https://github.com/doctrine/inflector.git", 598 | "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462" 599 | }, 600 | "dist": { 601 | "type": "zip", 602 | "url": "https://api.github.com/repos/doctrine/inflector/zipball/e11d84c6e018beedd929cff5220969a3c6d1d462", 603 | "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462", 604 | "shasum": "" 605 | }, 606 | "require": { 607 | "php": "^7.0" 608 | }, 609 | "require-dev": { 610 | "phpunit/phpunit": "^6.2" 611 | }, 612 | "type": "library", 613 | "extra": { 614 | "branch-alias": { 615 | "dev-master": "1.2.x-dev" 616 | } 617 | }, 618 | "autoload": { 619 | "psr-4": { 620 | "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" 621 | } 622 | }, 623 | "notification-url": "https://packagist.org/downloads/", 624 | "license": [ 625 | "MIT" 626 | ], 627 | "authors": [ 628 | { 629 | "name": "Roman Borschel", 630 | "email": "roman@code-factory.org" 631 | }, 632 | { 633 | "name": "Benjamin Eberlei", 634 | "email": "kontakt@beberlei.de" 635 | }, 636 | { 637 | "name": "Guilherme Blanco", 638 | "email": "guilhermeblanco@gmail.com" 639 | }, 640 | { 641 | "name": "Jonathan Wage", 642 | "email": "jonwage@gmail.com" 643 | }, 644 | { 645 | "name": "Johannes Schmitt", 646 | "email": "schmittjoh@gmail.com" 647 | } 648 | ], 649 | "description": "Common String Manipulations with regard to casing and singular/plural rules.", 650 | "homepage": "http://www.doctrine-project.org", 651 | "keywords": [ 652 | "inflection", 653 | "pluralize", 654 | "singularize", 655 | "string" 656 | ], 657 | "time": "2017-07-22T12:18:28+00:00" 658 | }, 659 | { 660 | "name": "doctrine/instantiator", 661 | "version": "1.1.0", 662 | "source": { 663 | "type": "git", 664 | "url": "https://github.com/doctrine/instantiator.git", 665 | "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" 666 | }, 667 | "dist": { 668 | "type": "zip", 669 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", 670 | "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", 671 | "shasum": "" 672 | }, 673 | "require": { 674 | "php": "^7.1" 675 | }, 676 | "require-dev": { 677 | "athletic/athletic": "~0.1.8", 678 | "ext-pdo": "*", 679 | "ext-phar": "*", 680 | "phpunit/phpunit": "^6.2.3", 681 | "squizlabs/php_codesniffer": "^3.0.2" 682 | }, 683 | "type": "library", 684 | "extra": { 685 | "branch-alias": { 686 | "dev-master": "1.2.x-dev" 687 | } 688 | }, 689 | "autoload": { 690 | "psr-4": { 691 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 692 | } 693 | }, 694 | "notification-url": "https://packagist.org/downloads/", 695 | "license": [ 696 | "MIT" 697 | ], 698 | "authors": [ 699 | { 700 | "name": "Marco Pivetta", 701 | "email": "ocramius@gmail.com", 702 | "homepage": "http://ocramius.github.com/" 703 | } 704 | ], 705 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 706 | "homepage": "https://github.com/doctrine/instantiator", 707 | "keywords": [ 708 | "constructor", 709 | "instantiate" 710 | ], 711 | "time": "2017-07-22T11:58:36+00:00" 712 | }, 713 | { 714 | "name": "doctrine/lexer", 715 | "version": "v1.0.1", 716 | "source": { 717 | "type": "git", 718 | "url": "https://github.com/doctrine/lexer.git", 719 | "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" 720 | }, 721 | "dist": { 722 | "type": "zip", 723 | "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", 724 | "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", 725 | "shasum": "" 726 | }, 727 | "require": { 728 | "php": ">=5.3.2" 729 | }, 730 | "type": "library", 731 | "extra": { 732 | "branch-alias": { 733 | "dev-master": "1.0.x-dev" 734 | } 735 | }, 736 | "autoload": { 737 | "psr-0": { 738 | "Doctrine\\Common\\Lexer\\": "lib/" 739 | } 740 | }, 741 | "notification-url": "https://packagist.org/downloads/", 742 | "license": [ 743 | "MIT" 744 | ], 745 | "authors": [ 746 | { 747 | "name": "Roman Borschel", 748 | "email": "roman@code-factory.org" 749 | }, 750 | { 751 | "name": "Guilherme Blanco", 752 | "email": "guilhermeblanco@gmail.com" 753 | }, 754 | { 755 | "name": "Johannes Schmitt", 756 | "email": "schmittjoh@gmail.com" 757 | } 758 | ], 759 | "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", 760 | "homepage": "http://www.doctrine-project.org", 761 | "keywords": [ 762 | "lexer", 763 | "parser" 764 | ], 765 | "time": "2014-09-09T13:34:57+00:00" 766 | }, 767 | { 768 | "name": "doctrine/orm", 769 | "version": "v2.5.11", 770 | "source": { 771 | "type": "git", 772 | "url": "https://github.com/doctrine/doctrine2.git", 773 | "reference": "249b737094f1e7cba4f0a8d19acf5be6cf3ed504" 774 | }, 775 | "dist": { 776 | "type": "zip", 777 | "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/249b737094f1e7cba4f0a8d19acf5be6cf3ed504", 778 | "reference": "249b737094f1e7cba4f0a8d19acf5be6cf3ed504", 779 | "shasum": "" 780 | }, 781 | "require": { 782 | "doctrine/cache": "~1.4", 783 | "doctrine/collections": "~1.2", 784 | "doctrine/common": ">=2.5-dev,<2.9-dev", 785 | "doctrine/dbal": ">=2.5-dev,<2.7-dev", 786 | "doctrine/instantiator": "^1.0.1", 787 | "ext-pdo": "*", 788 | "php": ">=5.4", 789 | "symfony/console": "~2.5|~3.0" 790 | }, 791 | "require-dev": { 792 | "phpunit/phpunit": "~4.0", 793 | "symfony/yaml": "~2.3|~3.0" 794 | }, 795 | "suggest": { 796 | "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" 797 | }, 798 | "bin": [ 799 | "bin/doctrine", 800 | "bin/doctrine.php" 801 | ], 802 | "type": "library", 803 | "extra": { 804 | "branch-alias": { 805 | "dev-master": "2.6.x-dev" 806 | } 807 | }, 808 | "autoload": { 809 | "psr-0": { 810 | "Doctrine\\ORM\\": "lib/" 811 | } 812 | }, 813 | "notification-url": "https://packagist.org/downloads/", 814 | "license": [ 815 | "MIT" 816 | ], 817 | "authors": [ 818 | { 819 | "name": "Roman Borschel", 820 | "email": "roman@code-factory.org" 821 | }, 822 | { 823 | "name": "Benjamin Eberlei", 824 | "email": "kontakt@beberlei.de" 825 | }, 826 | { 827 | "name": "Guilherme Blanco", 828 | "email": "guilhermeblanco@gmail.com" 829 | }, 830 | { 831 | "name": "Jonathan Wage", 832 | "email": "jonwage@gmail.com" 833 | } 834 | ], 835 | "description": "Object-Relational-Mapper for PHP", 836 | "homepage": "http://www.doctrine-project.org", 837 | "keywords": [ 838 | "database", 839 | "orm" 840 | ], 841 | "time": "2017-09-18T06:50:20+00:00" 842 | }, 843 | { 844 | "name": "fig/link-util", 845 | "version": "1.0.0", 846 | "source": { 847 | "type": "git", 848 | "url": "https://github.com/php-fig/link-util.git", 849 | "reference": "1a07821801a148be4add11ab0603e4af55a72fac" 850 | }, 851 | "dist": { 852 | "type": "zip", 853 | "url": "https://api.github.com/repos/php-fig/link-util/zipball/1a07821801a148be4add11ab0603e4af55a72fac", 854 | "reference": "1a07821801a148be4add11ab0603e4af55a72fac", 855 | "shasum": "" 856 | }, 857 | "require": { 858 | "php": ">=5.5.0", 859 | "psr/link": "~1.0@dev" 860 | }, 861 | "require-dev": { 862 | "phpunit/phpunit": "^5.1", 863 | "squizlabs/php_codesniffer": "^2.3.1" 864 | }, 865 | "type": "library", 866 | "extra": { 867 | "branch-alias": { 868 | "dev-master": "1.0.x-dev" 869 | } 870 | }, 871 | "autoload": { 872 | "psr-4": { 873 | "Fig\\Link\\": "src/" 874 | } 875 | }, 876 | "notification-url": "https://packagist.org/downloads/", 877 | "license": [ 878 | "MIT" 879 | ], 880 | "authors": [ 881 | { 882 | "name": "PHP-FIG", 883 | "homepage": "http://www.php-fig.org/" 884 | } 885 | ], 886 | "description": "Common utility implementations for HTTP links", 887 | "keywords": [ 888 | "http", 889 | "http-link", 890 | "link", 891 | "psr", 892 | "psr-13", 893 | "rest" 894 | ], 895 | "time": "2016-10-17T18:31:11+00:00" 896 | }, 897 | { 898 | "name": "incenteev/composer-parameter-handler", 899 | "version": "v2.1.2", 900 | "source": { 901 | "type": "git", 902 | "url": "https://github.com/Incenteev/ParameterHandler.git", 903 | "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" 904 | }, 905 | "dist": { 906 | "type": "zip", 907 | "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", 908 | "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", 909 | "shasum": "" 910 | }, 911 | "require": { 912 | "php": ">=5.3.3", 913 | "symfony/yaml": "~2.3|~3.0" 914 | }, 915 | "require-dev": { 916 | "composer/composer": "1.0.*@dev", 917 | "phpspec/prophecy-phpunit": "~1.0", 918 | "symfony/filesystem": "~2.2" 919 | }, 920 | "type": "library", 921 | "extra": { 922 | "branch-alias": { 923 | "dev-master": "2.1.x-dev" 924 | } 925 | }, 926 | "autoload": { 927 | "psr-4": { 928 | "Incenteev\\ParameterHandler\\": "" 929 | } 930 | }, 931 | "notification-url": "https://packagist.org/downloads/", 932 | "license": [ 933 | "MIT" 934 | ], 935 | "authors": [ 936 | { 937 | "name": "Christophe Coevoet", 938 | "email": "stof@notk.org" 939 | } 940 | ], 941 | "description": "Composer script handling your ignored parameter file", 942 | "homepage": "https://github.com/Incenteev/ParameterHandler", 943 | "keywords": [ 944 | "parameters management" 945 | ], 946 | "time": "2015-11-10T17:04:01+00:00" 947 | }, 948 | { 949 | "name": "jdorn/sql-formatter", 950 | "version": "v1.2.17", 951 | "source": { 952 | "type": "git", 953 | "url": "https://github.com/jdorn/sql-formatter.git", 954 | "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc" 955 | }, 956 | "dist": { 957 | "type": "zip", 958 | "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/64990d96e0959dff8e059dfcdc1af130728d92bc", 959 | "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc", 960 | "shasum": "" 961 | }, 962 | "require": { 963 | "php": ">=5.2.4" 964 | }, 965 | "require-dev": { 966 | "phpunit/phpunit": "3.7.*" 967 | }, 968 | "type": "library", 969 | "extra": { 970 | "branch-alias": { 971 | "dev-master": "1.3.x-dev" 972 | } 973 | }, 974 | "autoload": { 975 | "classmap": [ 976 | "lib" 977 | ] 978 | }, 979 | "notification-url": "https://packagist.org/downloads/", 980 | "license": [ 981 | "MIT" 982 | ], 983 | "authors": [ 984 | { 985 | "name": "Jeremy Dorn", 986 | "email": "jeremy@jeremydorn.com", 987 | "homepage": "http://jeremydorn.com/" 988 | } 989 | ], 990 | "description": "a PHP SQL highlighting library", 991 | "homepage": "https://github.com/jdorn/sql-formatter/", 992 | "keywords": [ 993 | "highlight", 994 | "sql" 995 | ], 996 | "time": "2014-01-12T16:20:24+00:00" 997 | }, 998 | { 999 | "name": "monolog/monolog", 1000 | "version": "1.23.0", 1001 | "source": { 1002 | "type": "git", 1003 | "url": "https://github.com/Seldaek/monolog.git", 1004 | "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" 1005 | }, 1006 | "dist": { 1007 | "type": "zip", 1008 | "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", 1009 | "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", 1010 | "shasum": "" 1011 | }, 1012 | "require": { 1013 | "php": ">=5.3.0", 1014 | "psr/log": "~1.0" 1015 | }, 1016 | "provide": { 1017 | "psr/log-implementation": "1.0.0" 1018 | }, 1019 | "require-dev": { 1020 | "aws/aws-sdk-php": "^2.4.9 || ^3.0", 1021 | "doctrine/couchdb": "~1.0@dev", 1022 | "graylog2/gelf-php": "~1.0", 1023 | "jakub-onderka/php-parallel-lint": "0.9", 1024 | "php-amqplib/php-amqplib": "~2.4", 1025 | "php-console/php-console": "^3.1.3", 1026 | "phpunit/phpunit": "~4.5", 1027 | "phpunit/phpunit-mock-objects": "2.3.0", 1028 | "ruflin/elastica": ">=0.90 <3.0", 1029 | "sentry/sentry": "^0.13", 1030 | "swiftmailer/swiftmailer": "^5.3|^6.0" 1031 | }, 1032 | "suggest": { 1033 | "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 1034 | "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 1035 | "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 1036 | "ext-mongo": "Allow sending log messages to a MongoDB server", 1037 | "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 1038 | "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 1039 | "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 1040 | "php-console/php-console": "Allow sending log messages to Google Chrome", 1041 | "rollbar/rollbar": "Allow sending log messages to Rollbar", 1042 | "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 1043 | "sentry/sentry": "Allow sending log messages to a Sentry server" 1044 | }, 1045 | "type": "library", 1046 | "extra": { 1047 | "branch-alias": { 1048 | "dev-master": "2.0.x-dev" 1049 | } 1050 | }, 1051 | "autoload": { 1052 | "psr-4": { 1053 | "Monolog\\": "src/Monolog" 1054 | } 1055 | }, 1056 | "notification-url": "https://packagist.org/downloads/", 1057 | "license": [ 1058 | "MIT" 1059 | ], 1060 | "authors": [ 1061 | { 1062 | "name": "Jordi Boggiano", 1063 | "email": "j.boggiano@seld.be", 1064 | "homepage": "http://seld.be" 1065 | } 1066 | ], 1067 | "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 1068 | "homepage": "http://github.com/Seldaek/monolog", 1069 | "keywords": [ 1070 | "log", 1071 | "logging", 1072 | "psr-3" 1073 | ], 1074 | "time": "2017-06-19T01:22:40+00:00" 1075 | }, 1076 | { 1077 | "name": "paragonie/random_compat", 1078 | "version": "v2.0.11", 1079 | "source": { 1080 | "type": "git", 1081 | "url": "https://github.com/paragonie/random_compat.git", 1082 | "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" 1083 | }, 1084 | "dist": { 1085 | "type": "zip", 1086 | "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", 1087 | "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", 1088 | "shasum": "" 1089 | }, 1090 | "require": { 1091 | "php": ">=5.2.0" 1092 | }, 1093 | "require-dev": { 1094 | "phpunit/phpunit": "4.*|5.*" 1095 | }, 1096 | "suggest": { 1097 | "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 1098 | }, 1099 | "type": "library", 1100 | "autoload": { 1101 | "files": [ 1102 | "lib/random.php" 1103 | ] 1104 | }, 1105 | "notification-url": "https://packagist.org/downloads/", 1106 | "license": [ 1107 | "MIT" 1108 | ], 1109 | "authors": [ 1110 | { 1111 | "name": "Paragon Initiative Enterprises", 1112 | "email": "security@paragonie.com", 1113 | "homepage": "https://paragonie.com" 1114 | } 1115 | ], 1116 | "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", 1117 | "keywords": [ 1118 | "csprng", 1119 | "pseudorandom", 1120 | "random" 1121 | ], 1122 | "time": "2017-09-27T21:40:39+00:00" 1123 | }, 1124 | { 1125 | "name": "psr/cache", 1126 | "version": "1.0.1", 1127 | "source": { 1128 | "type": "git", 1129 | "url": "https://github.com/php-fig/cache.git", 1130 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 1131 | }, 1132 | "dist": { 1133 | "type": "zip", 1134 | "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 1135 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 1136 | "shasum": "" 1137 | }, 1138 | "require": { 1139 | "php": ">=5.3.0" 1140 | }, 1141 | "type": "library", 1142 | "extra": { 1143 | "branch-alias": { 1144 | "dev-master": "1.0.x-dev" 1145 | } 1146 | }, 1147 | "autoload": { 1148 | "psr-4": { 1149 | "Psr\\Cache\\": "src/" 1150 | } 1151 | }, 1152 | "notification-url": "https://packagist.org/downloads/", 1153 | "license": [ 1154 | "MIT" 1155 | ], 1156 | "authors": [ 1157 | { 1158 | "name": "PHP-FIG", 1159 | "homepage": "http://www.php-fig.org/" 1160 | } 1161 | ], 1162 | "description": "Common interface for caching libraries", 1163 | "keywords": [ 1164 | "cache", 1165 | "psr", 1166 | "psr-6" 1167 | ], 1168 | "time": "2016-08-06T20:24:11+00:00" 1169 | }, 1170 | { 1171 | "name": "psr/container", 1172 | "version": "1.0.0", 1173 | "source": { 1174 | "type": "git", 1175 | "url": "https://github.com/php-fig/container.git", 1176 | "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" 1177 | }, 1178 | "dist": { 1179 | "type": "zip", 1180 | "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 1181 | "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", 1182 | "shasum": "" 1183 | }, 1184 | "require": { 1185 | "php": ">=5.3.0" 1186 | }, 1187 | "type": "library", 1188 | "extra": { 1189 | "branch-alias": { 1190 | "dev-master": "1.0.x-dev" 1191 | } 1192 | }, 1193 | "autoload": { 1194 | "psr-4": { 1195 | "Psr\\Container\\": "src/" 1196 | } 1197 | }, 1198 | "notification-url": "https://packagist.org/downloads/", 1199 | "license": [ 1200 | "MIT" 1201 | ], 1202 | "authors": [ 1203 | { 1204 | "name": "PHP-FIG", 1205 | "homepage": "http://www.php-fig.org/" 1206 | } 1207 | ], 1208 | "description": "Common Container Interface (PHP FIG PSR-11)", 1209 | "homepage": "https://github.com/php-fig/container", 1210 | "keywords": [ 1211 | "PSR-11", 1212 | "container", 1213 | "container-interface", 1214 | "container-interop", 1215 | "psr" 1216 | ], 1217 | "time": "2017-02-14T16:28:37+00:00" 1218 | }, 1219 | { 1220 | "name": "psr/link", 1221 | "version": "1.0.0", 1222 | "source": { 1223 | "type": "git", 1224 | "url": "https://github.com/php-fig/link.git", 1225 | "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562" 1226 | }, 1227 | "dist": { 1228 | "type": "zip", 1229 | "url": "https://api.github.com/repos/php-fig/link/zipball/eea8e8662d5cd3ae4517c9b864493f59fca95562", 1230 | "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562", 1231 | "shasum": "" 1232 | }, 1233 | "require": { 1234 | "php": ">=5.3.0" 1235 | }, 1236 | "type": "library", 1237 | "extra": { 1238 | "branch-alias": { 1239 | "dev-master": "1.0.x-dev" 1240 | } 1241 | }, 1242 | "autoload": { 1243 | "psr-4": { 1244 | "Psr\\Link\\": "src/" 1245 | } 1246 | }, 1247 | "notification-url": "https://packagist.org/downloads/", 1248 | "license": [ 1249 | "MIT" 1250 | ], 1251 | "authors": [ 1252 | { 1253 | "name": "PHP-FIG", 1254 | "homepage": "http://www.php-fig.org/" 1255 | } 1256 | ], 1257 | "description": "Common interfaces for HTTP links", 1258 | "keywords": [ 1259 | "http", 1260 | "http-link", 1261 | "link", 1262 | "psr", 1263 | "psr-13", 1264 | "rest" 1265 | ], 1266 | "time": "2016-10-28T16:06:13+00:00" 1267 | }, 1268 | { 1269 | "name": "psr/log", 1270 | "version": "1.0.2", 1271 | "source": { 1272 | "type": "git", 1273 | "url": "https://github.com/php-fig/log.git", 1274 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" 1275 | }, 1276 | "dist": { 1277 | "type": "zip", 1278 | "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 1279 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", 1280 | "shasum": "" 1281 | }, 1282 | "require": { 1283 | "php": ">=5.3.0" 1284 | }, 1285 | "type": "library", 1286 | "extra": { 1287 | "branch-alias": { 1288 | "dev-master": "1.0.x-dev" 1289 | } 1290 | }, 1291 | "autoload": { 1292 | "psr-4": { 1293 | "Psr\\Log\\": "Psr/Log/" 1294 | } 1295 | }, 1296 | "notification-url": "https://packagist.org/downloads/", 1297 | "license": [ 1298 | "MIT" 1299 | ], 1300 | "authors": [ 1301 | { 1302 | "name": "PHP-FIG", 1303 | "homepage": "http://www.php-fig.org/" 1304 | } 1305 | ], 1306 | "description": "Common interface for logging libraries", 1307 | "homepage": "https://github.com/php-fig/log", 1308 | "keywords": [ 1309 | "log", 1310 | "psr", 1311 | "psr-3" 1312 | ], 1313 | "time": "2016-10-10T12:19:37+00:00" 1314 | }, 1315 | { 1316 | "name": "psr/simple-cache", 1317 | "version": "1.0.0", 1318 | "source": { 1319 | "type": "git", 1320 | "url": "https://github.com/php-fig/simple-cache.git", 1321 | "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24" 1322 | }, 1323 | "dist": { 1324 | "type": "zip", 1325 | "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/753fa598e8f3b9966c886fe13f370baa45ef0e24", 1326 | "reference": "753fa598e8f3b9966c886fe13f370baa45ef0e24", 1327 | "shasum": "" 1328 | }, 1329 | "require": { 1330 | "php": ">=5.3.0" 1331 | }, 1332 | "type": "library", 1333 | "extra": { 1334 | "branch-alias": { 1335 | "dev-master": "1.0.x-dev" 1336 | } 1337 | }, 1338 | "autoload": { 1339 | "psr-4": { 1340 | "Psr\\SimpleCache\\": "src/" 1341 | } 1342 | }, 1343 | "notification-url": "https://packagist.org/downloads/", 1344 | "license": [ 1345 | "MIT" 1346 | ], 1347 | "authors": [ 1348 | { 1349 | "name": "PHP-FIG", 1350 | "homepage": "http://www.php-fig.org/" 1351 | } 1352 | ], 1353 | "description": "Common interfaces for simple caching", 1354 | "keywords": [ 1355 | "cache", 1356 | "caching", 1357 | "psr", 1358 | "psr-16", 1359 | "simple-cache" 1360 | ], 1361 | "time": "2017-01-02T13:31:39+00:00" 1362 | }, 1363 | { 1364 | "name": "sensio/distribution-bundle", 1365 | "version": "v5.0.21", 1366 | "source": { 1367 | "type": "git", 1368 | "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", 1369 | "reference": "eb6266b3b472e4002538610b28a0a04bcf94891a" 1370 | }, 1371 | "dist": { 1372 | "type": "zip", 1373 | "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/eb6266b3b472e4002538610b28a0a04bcf94891a", 1374 | "reference": "eb6266b3b472e4002538610b28a0a04bcf94891a", 1375 | "shasum": "" 1376 | }, 1377 | "require": { 1378 | "php": ">=5.3.9", 1379 | "sensiolabs/security-checker": "~3.0|~4.0", 1380 | "symfony/class-loader": "~2.3|~3.0", 1381 | "symfony/config": "~2.3|~3.0", 1382 | "symfony/dependency-injection": "~2.3|~3.0", 1383 | "symfony/filesystem": "~2.3|~3.0", 1384 | "symfony/http-kernel": "~2.3|~3.0", 1385 | "symfony/process": "~2.3|~3.0" 1386 | }, 1387 | "type": "symfony-bundle", 1388 | "extra": { 1389 | "branch-alias": { 1390 | "dev-master": "5.0.x-dev" 1391 | } 1392 | }, 1393 | "autoload": { 1394 | "psr-4": { 1395 | "Sensio\\Bundle\\DistributionBundle\\": "" 1396 | } 1397 | }, 1398 | "notification-url": "https://packagist.org/downloads/", 1399 | "license": [ 1400 | "MIT" 1401 | ], 1402 | "authors": [ 1403 | { 1404 | "name": "Fabien Potencier", 1405 | "email": "fabien@symfony.com" 1406 | } 1407 | ], 1408 | "description": "Base bundle for Symfony Distributions", 1409 | "keywords": [ 1410 | "configuration", 1411 | "distribution" 1412 | ], 1413 | "time": "2017-08-25T16:55:44+00:00" 1414 | }, 1415 | { 1416 | "name": "sensio/framework-extra-bundle", 1417 | "version": "v5.0.1", 1418 | "source": { 1419 | "type": "git", 1420 | "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", 1421 | "reference": "9e3fa14aa959f703961bc9e4ab00110d617bcfdd" 1422 | }, 1423 | "dist": { 1424 | "type": "zip", 1425 | "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/9e3fa14aa959f703961bc9e4ab00110d617bcfdd", 1426 | "reference": "9e3fa14aa959f703961bc9e4ab00110d617bcfdd", 1427 | "shasum": "" 1428 | }, 1429 | "require": { 1430 | "doctrine/common": "^2.2", 1431 | "symfony/config": "^3.3|^4.0", 1432 | "symfony/dependency-injection": "^3.3|^4.0", 1433 | "symfony/framework-bundle": "^3.3|^4.0", 1434 | "symfony/http-kernel": "^3.3|^4.0" 1435 | }, 1436 | "require-dev": { 1437 | "doctrine/doctrine-bundle": "^1.6", 1438 | "doctrine/orm": "^2.5", 1439 | "symfony/browser-kit": "^3.3|^4.0", 1440 | "symfony/dom-crawler": "^3.3|^4.0", 1441 | "symfony/expression-language": "^3.3|^4.0", 1442 | "symfony/finder": "^3.3|^4.0", 1443 | "symfony/phpunit-bridge": "^3.3|^4.0", 1444 | "symfony/psr-http-message-bridge": "^0.3", 1445 | "symfony/security-bundle": "^3.3|^4.0", 1446 | "symfony/twig-bundle": "^3.3|^4.0", 1447 | "symfony/yaml": "^3.3|^4.0", 1448 | "twig/twig": "~1.12|~2.0", 1449 | "zendframework/zend-diactoros": "^1.3" 1450 | }, 1451 | "suggest": { 1452 | "symfony/expression-language": "", 1453 | "symfony/psr-http-message-bridge": "To use the PSR-7 converters", 1454 | "symfony/security-bundle": "" 1455 | }, 1456 | "type": "symfony-bundle", 1457 | "extra": { 1458 | "branch-alias": { 1459 | "dev-master": "4.0.x-dev" 1460 | } 1461 | }, 1462 | "autoload": { 1463 | "psr-4": { 1464 | "Sensio\\Bundle\\FrameworkExtraBundle\\": "" 1465 | } 1466 | }, 1467 | "notification-url": "https://packagist.org/downloads/", 1468 | "license": [ 1469 | "MIT" 1470 | ], 1471 | "authors": [ 1472 | { 1473 | "name": "Fabien Potencier", 1474 | "email": "fabien@symfony.com" 1475 | } 1476 | ], 1477 | "description": "This bundle provides a way to configure your controllers with annotations", 1478 | "keywords": [ 1479 | "annotations", 1480 | "controllers" 1481 | ], 1482 | "time": "2017-10-12T17:37:44+00:00" 1483 | }, 1484 | { 1485 | "name": "sensiolabs/security-checker", 1486 | "version": "v4.1.5", 1487 | "source": { 1488 | "type": "git", 1489 | "url": "https://github.com/sensiolabs/security-checker.git", 1490 | "reference": "55553c3ad6ae2121c1b1475d4c880d71b31b8f68" 1491 | }, 1492 | "dist": { 1493 | "type": "zip", 1494 | "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/55553c3ad6ae2121c1b1475d4c880d71b31b8f68", 1495 | "reference": "55553c3ad6ae2121c1b1475d4c880d71b31b8f68", 1496 | "shasum": "" 1497 | }, 1498 | "require": { 1499 | "composer/ca-bundle": "^1.0", 1500 | "symfony/console": "~2.7|~3.0" 1501 | }, 1502 | "bin": [ 1503 | "security-checker" 1504 | ], 1505 | "type": "library", 1506 | "extra": { 1507 | "branch-alias": { 1508 | "dev-master": "4.1-dev" 1509 | } 1510 | }, 1511 | "autoload": { 1512 | "psr-0": { 1513 | "SensioLabs\\Security": "" 1514 | } 1515 | }, 1516 | "notification-url": "https://packagist.org/downloads/", 1517 | "license": [ 1518 | "MIT" 1519 | ], 1520 | "authors": [ 1521 | { 1522 | "name": "Fabien Potencier", 1523 | "email": "fabien.potencier@gmail.com" 1524 | } 1525 | ], 1526 | "description": "A security checker for your composer.lock", 1527 | "time": "2017-08-22T22:18:16+00:00" 1528 | }, 1529 | { 1530 | "name": "swiftmailer/swiftmailer", 1531 | "version": "v5.4.8", 1532 | "source": { 1533 | "type": "git", 1534 | "url": "https://github.com/swiftmailer/swiftmailer.git", 1535 | "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517" 1536 | }, 1537 | "dist": { 1538 | "type": "zip", 1539 | "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/9a06dc570a0367850280eefd3f1dc2da45aef517", 1540 | "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517", 1541 | "shasum": "" 1542 | }, 1543 | "require": { 1544 | "php": ">=5.3.3" 1545 | }, 1546 | "require-dev": { 1547 | "mockery/mockery": "~0.9.1", 1548 | "symfony/phpunit-bridge": "~3.2" 1549 | }, 1550 | "type": "library", 1551 | "extra": { 1552 | "branch-alias": { 1553 | "dev-master": "5.4-dev" 1554 | } 1555 | }, 1556 | "autoload": { 1557 | "files": [ 1558 | "lib/swift_required.php" 1559 | ] 1560 | }, 1561 | "notification-url": "https://packagist.org/downloads/", 1562 | "license": [ 1563 | "MIT" 1564 | ], 1565 | "authors": [ 1566 | { 1567 | "name": "Chris Corbyn" 1568 | }, 1569 | { 1570 | "name": "Fabien Potencier", 1571 | "email": "fabien@symfony.com" 1572 | } 1573 | ], 1574 | "description": "Swiftmailer, free feature-rich PHP mailer", 1575 | "homepage": "http://swiftmailer.org", 1576 | "keywords": [ 1577 | "email", 1578 | "mail", 1579 | "mailer" 1580 | ], 1581 | "time": "2017-05-01T15:54:03+00:00" 1582 | }, 1583 | { 1584 | "name": "symfony/monolog-bundle", 1585 | "version": "v3.1.1", 1586 | "source": { 1587 | "type": "git", 1588 | "url": "https://github.com/symfony/monolog-bundle.git", 1589 | "reference": "80c82d7d41c4eed0bf27e215f27531c05b217c17" 1590 | }, 1591 | "dist": { 1592 | "type": "zip", 1593 | "url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/80c82d7d41c4eed0bf27e215f27531c05b217c17", 1594 | "reference": "80c82d7d41c4eed0bf27e215f27531c05b217c17", 1595 | "shasum": "" 1596 | }, 1597 | "require": { 1598 | "monolog/monolog": "~1.22", 1599 | "php": ">=5.3.2", 1600 | "symfony/config": "~2.7|~3.0|~4.0", 1601 | "symfony/dependency-injection": "~2.7|~3.0|~4.0", 1602 | "symfony/http-kernel": "~2.7|~3.0|~4.0", 1603 | "symfony/monolog-bridge": "~2.7|~3.0|~4.0" 1604 | }, 1605 | "require-dev": { 1606 | "phpunit/phpunit": "^4.8", 1607 | "symfony/console": "~2.3|~3.0|~4.0", 1608 | "symfony/yaml": "~2.3|~3.0|~4.0" 1609 | }, 1610 | "type": "symfony-bundle", 1611 | "extra": { 1612 | "branch-alias": { 1613 | "dev-master": "3.x-dev" 1614 | } 1615 | }, 1616 | "autoload": { 1617 | "psr-4": { 1618 | "Symfony\\Bundle\\MonologBundle\\": "" 1619 | } 1620 | }, 1621 | "notification-url": "https://packagist.org/downloads/", 1622 | "license": [ 1623 | "MIT" 1624 | ], 1625 | "authors": [ 1626 | { 1627 | "name": "Symfony Community", 1628 | "homepage": "http://symfony.com/contributors" 1629 | }, 1630 | { 1631 | "name": "Fabien Potencier", 1632 | "email": "fabien@symfony.com" 1633 | } 1634 | ], 1635 | "description": "Symfony MonologBundle", 1636 | "homepage": "http://symfony.com", 1637 | "keywords": [ 1638 | "log", 1639 | "logging" 1640 | ], 1641 | "time": "2017-09-26T03:17:02+00:00" 1642 | }, 1643 | { 1644 | "name": "symfony/polyfill-apcu", 1645 | "version": "v1.6.0", 1646 | "source": { 1647 | "type": "git", 1648 | "url": "https://github.com/symfony/polyfill-apcu.git", 1649 | "reference": "04f62674339602def515bff4bc6901fc1d4951e8" 1650 | }, 1651 | "dist": { 1652 | "type": "zip", 1653 | "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/04f62674339602def515bff4bc6901fc1d4951e8", 1654 | "reference": "04f62674339602def515bff4bc6901fc1d4951e8", 1655 | "shasum": "" 1656 | }, 1657 | "require": { 1658 | "php": ">=5.3.3" 1659 | }, 1660 | "type": "library", 1661 | "extra": { 1662 | "branch-alias": { 1663 | "dev-master": "1.6-dev" 1664 | } 1665 | }, 1666 | "autoload": { 1667 | "psr-4": { 1668 | "Symfony\\Polyfill\\Apcu\\": "" 1669 | }, 1670 | "files": [ 1671 | "bootstrap.php" 1672 | ] 1673 | }, 1674 | "notification-url": "https://packagist.org/downloads/", 1675 | "license": [ 1676 | "MIT" 1677 | ], 1678 | "authors": [ 1679 | { 1680 | "name": "Nicolas Grekas", 1681 | "email": "p@tchwork.com" 1682 | }, 1683 | { 1684 | "name": "Symfony Community", 1685 | "homepage": "https://symfony.com/contributors" 1686 | } 1687 | ], 1688 | "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", 1689 | "homepage": "https://symfony.com", 1690 | "keywords": [ 1691 | "apcu", 1692 | "compatibility", 1693 | "polyfill", 1694 | "portable", 1695 | "shim" 1696 | ], 1697 | "time": "2017-10-11T12:05:26+00:00" 1698 | }, 1699 | { 1700 | "name": "symfony/polyfill-intl-icu", 1701 | "version": "v1.6.0", 1702 | "source": { 1703 | "type": "git", 1704 | "url": "https://github.com/symfony/polyfill-intl-icu.git", 1705 | "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497" 1706 | }, 1707 | "dist": { 1708 | "type": "zip", 1709 | "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/d2bb2ef00dd8605d6fbd4db53ed4af1395953497", 1710 | "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497", 1711 | "shasum": "" 1712 | }, 1713 | "require": { 1714 | "php": ">=5.3.3", 1715 | "symfony/intl": "~2.3|~3.0|~4.0" 1716 | }, 1717 | "suggest": { 1718 | "ext-intl": "For best performance" 1719 | }, 1720 | "type": "library", 1721 | "extra": { 1722 | "branch-alias": { 1723 | "dev-master": "1.6-dev" 1724 | } 1725 | }, 1726 | "autoload": { 1727 | "files": [ 1728 | "bootstrap.php" 1729 | ] 1730 | }, 1731 | "notification-url": "https://packagist.org/downloads/", 1732 | "license": [ 1733 | "MIT" 1734 | ], 1735 | "authors": [ 1736 | { 1737 | "name": "Nicolas Grekas", 1738 | "email": "p@tchwork.com" 1739 | }, 1740 | { 1741 | "name": "Symfony Community", 1742 | "homepage": "https://symfony.com/contributors" 1743 | } 1744 | ], 1745 | "description": "Symfony polyfill for intl's ICU-related data and classes", 1746 | "homepage": "https://symfony.com", 1747 | "keywords": [ 1748 | "compatibility", 1749 | "icu", 1750 | "intl", 1751 | "polyfill", 1752 | "portable", 1753 | "shim" 1754 | ], 1755 | "time": "2017-10-11T12:05:26+00:00" 1756 | }, 1757 | { 1758 | "name": "symfony/polyfill-mbstring", 1759 | "version": "v1.6.0", 1760 | "source": { 1761 | "type": "git", 1762 | "url": "https://github.com/symfony/polyfill-mbstring.git", 1763 | "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" 1764 | }, 1765 | "dist": { 1766 | "type": "zip", 1767 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", 1768 | "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", 1769 | "shasum": "" 1770 | }, 1771 | "require": { 1772 | "php": ">=5.3.3" 1773 | }, 1774 | "suggest": { 1775 | "ext-mbstring": "For best performance" 1776 | }, 1777 | "type": "library", 1778 | "extra": { 1779 | "branch-alias": { 1780 | "dev-master": "1.6-dev" 1781 | } 1782 | }, 1783 | "autoload": { 1784 | "psr-4": { 1785 | "Symfony\\Polyfill\\Mbstring\\": "" 1786 | }, 1787 | "files": [ 1788 | "bootstrap.php" 1789 | ] 1790 | }, 1791 | "notification-url": "https://packagist.org/downloads/", 1792 | "license": [ 1793 | "MIT" 1794 | ], 1795 | "authors": [ 1796 | { 1797 | "name": "Nicolas Grekas", 1798 | "email": "p@tchwork.com" 1799 | }, 1800 | { 1801 | "name": "Symfony Community", 1802 | "homepage": "https://symfony.com/contributors" 1803 | } 1804 | ], 1805 | "description": "Symfony polyfill for the Mbstring extension", 1806 | "homepage": "https://symfony.com", 1807 | "keywords": [ 1808 | "compatibility", 1809 | "mbstring", 1810 | "polyfill", 1811 | "portable", 1812 | "shim" 1813 | ], 1814 | "time": "2017-10-11T12:05:26+00:00" 1815 | }, 1816 | { 1817 | "name": "symfony/polyfill-php56", 1818 | "version": "v1.6.0", 1819 | "source": { 1820 | "type": "git", 1821 | "url": "https://github.com/symfony/polyfill-php56.git", 1822 | "reference": "265fc96795492430762c29be291a371494ba3a5b" 1823 | }, 1824 | "dist": { 1825 | "type": "zip", 1826 | "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/265fc96795492430762c29be291a371494ba3a5b", 1827 | "reference": "265fc96795492430762c29be291a371494ba3a5b", 1828 | "shasum": "" 1829 | }, 1830 | "require": { 1831 | "php": ">=5.3.3", 1832 | "symfony/polyfill-util": "~1.0" 1833 | }, 1834 | "type": "library", 1835 | "extra": { 1836 | "branch-alias": { 1837 | "dev-master": "1.6-dev" 1838 | } 1839 | }, 1840 | "autoload": { 1841 | "psr-4": { 1842 | "Symfony\\Polyfill\\Php56\\": "" 1843 | }, 1844 | "files": [ 1845 | "bootstrap.php" 1846 | ] 1847 | }, 1848 | "notification-url": "https://packagist.org/downloads/", 1849 | "license": [ 1850 | "MIT" 1851 | ], 1852 | "authors": [ 1853 | { 1854 | "name": "Nicolas Grekas", 1855 | "email": "p@tchwork.com" 1856 | }, 1857 | { 1858 | "name": "Symfony Community", 1859 | "homepage": "https://symfony.com/contributors" 1860 | } 1861 | ], 1862 | "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", 1863 | "homepage": "https://symfony.com", 1864 | "keywords": [ 1865 | "compatibility", 1866 | "polyfill", 1867 | "portable", 1868 | "shim" 1869 | ], 1870 | "time": "2017-10-11T12:05:26+00:00" 1871 | }, 1872 | { 1873 | "name": "symfony/polyfill-php70", 1874 | "version": "v1.6.0", 1875 | "source": { 1876 | "type": "git", 1877 | "url": "https://github.com/symfony/polyfill-php70.git", 1878 | "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff" 1879 | }, 1880 | "dist": { 1881 | "type": "zip", 1882 | "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", 1883 | "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", 1884 | "shasum": "" 1885 | }, 1886 | "require": { 1887 | "paragonie/random_compat": "~1.0|~2.0", 1888 | "php": ">=5.3.3" 1889 | }, 1890 | "type": "library", 1891 | "extra": { 1892 | "branch-alias": { 1893 | "dev-master": "1.6-dev" 1894 | } 1895 | }, 1896 | "autoload": { 1897 | "psr-4": { 1898 | "Symfony\\Polyfill\\Php70\\": "" 1899 | }, 1900 | "files": [ 1901 | "bootstrap.php" 1902 | ], 1903 | "classmap": [ 1904 | "Resources/stubs" 1905 | ] 1906 | }, 1907 | "notification-url": "https://packagist.org/downloads/", 1908 | "license": [ 1909 | "MIT" 1910 | ], 1911 | "authors": [ 1912 | { 1913 | "name": "Nicolas Grekas", 1914 | "email": "p@tchwork.com" 1915 | }, 1916 | { 1917 | "name": "Symfony Community", 1918 | "homepage": "https://symfony.com/contributors" 1919 | } 1920 | ], 1921 | "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", 1922 | "homepage": "https://symfony.com", 1923 | "keywords": [ 1924 | "compatibility", 1925 | "polyfill", 1926 | "portable", 1927 | "shim" 1928 | ], 1929 | "time": "2017-10-11T12:05:26+00:00" 1930 | }, 1931 | { 1932 | "name": "symfony/polyfill-util", 1933 | "version": "v1.6.0", 1934 | "source": { 1935 | "type": "git", 1936 | "url": "https://github.com/symfony/polyfill-util.git", 1937 | "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176" 1938 | }, 1939 | "dist": { 1940 | "type": "zip", 1941 | "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/6e719200c8e540e0c0effeb31f96bdb344b94176", 1942 | "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176", 1943 | "shasum": "" 1944 | }, 1945 | "require": { 1946 | "php": ">=5.3.3" 1947 | }, 1948 | "type": "library", 1949 | "extra": { 1950 | "branch-alias": { 1951 | "dev-master": "1.6-dev" 1952 | } 1953 | }, 1954 | "autoload": { 1955 | "psr-4": { 1956 | "Symfony\\Polyfill\\Util\\": "" 1957 | } 1958 | }, 1959 | "notification-url": "https://packagist.org/downloads/", 1960 | "license": [ 1961 | "MIT" 1962 | ], 1963 | "authors": [ 1964 | { 1965 | "name": "Nicolas Grekas", 1966 | "email": "p@tchwork.com" 1967 | }, 1968 | { 1969 | "name": "Symfony Community", 1970 | "homepage": "https://symfony.com/contributors" 1971 | } 1972 | ], 1973 | "description": "Symfony utilities for portability of PHP codes", 1974 | "homepage": "https://symfony.com", 1975 | "keywords": [ 1976 | "compat", 1977 | "compatibility", 1978 | "polyfill", 1979 | "shim" 1980 | ], 1981 | "time": "2017-10-11T12:05:26+00:00" 1982 | }, 1983 | { 1984 | "name": "symfony/swiftmailer-bundle", 1985 | "version": "v2.6.7", 1986 | "source": { 1987 | "type": "git", 1988 | "url": "https://github.com/symfony/swiftmailer-bundle.git", 1989 | "reference": "c4808f5169efc05567be983909d00f00521c53ec" 1990 | }, 1991 | "dist": { 1992 | "type": "zip", 1993 | "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/c4808f5169efc05567be983909d00f00521c53ec", 1994 | "reference": "c4808f5169efc05567be983909d00f00521c53ec", 1995 | "shasum": "" 1996 | }, 1997 | "require": { 1998 | "php": ">=5.3.2", 1999 | "swiftmailer/swiftmailer": "~4.2|~5.0", 2000 | "symfony/config": "~2.7|~3.0", 2001 | "symfony/dependency-injection": "~2.7|~3.0", 2002 | "symfony/http-kernel": "~2.7|~3.0" 2003 | }, 2004 | "require-dev": { 2005 | "symfony/console": "~2.7|~3.0", 2006 | "symfony/framework-bundle": "~2.7|~3.0", 2007 | "symfony/phpunit-bridge": "~3.3@dev", 2008 | "symfony/yaml": "~2.7|~3.0" 2009 | }, 2010 | "suggest": { 2011 | "psr/log": "Allows logging" 2012 | }, 2013 | "type": "symfony-bundle", 2014 | "extra": { 2015 | "branch-alias": { 2016 | "dev-master": "2.6-dev" 2017 | } 2018 | }, 2019 | "autoload": { 2020 | "psr-4": { 2021 | "Symfony\\Bundle\\SwiftmailerBundle\\": "" 2022 | } 2023 | }, 2024 | "notification-url": "https://packagist.org/downloads/", 2025 | "license": [ 2026 | "MIT" 2027 | ], 2028 | "authors": [ 2029 | { 2030 | "name": "Symfony Community", 2031 | "homepage": "http://symfony.com/contributors" 2032 | }, 2033 | { 2034 | "name": "Fabien Potencier", 2035 | "email": "fabien@symfony.com" 2036 | } 2037 | ], 2038 | "description": "Symfony SwiftmailerBundle", 2039 | "homepage": "http://symfony.com", 2040 | "time": "2017-10-19T01:06:41+00:00" 2041 | }, 2042 | { 2043 | "name": "symfony/symfony", 2044 | "version": "v3.4.0-BETA1", 2045 | "source": { 2046 | "type": "git", 2047 | "url": "https://github.com/symfony/symfony.git", 2048 | "reference": "44e3c8bfcf1527172c8d826f0cb5a3894003fe92" 2049 | }, 2050 | "dist": { 2051 | "type": "zip", 2052 | "url": "https://api.github.com/repos/symfony/symfony/zipball/44e3c8bfcf1527172c8d826f0cb5a3894003fe92", 2053 | "reference": "44e3c8bfcf1527172c8d826f0cb5a3894003fe92", 2054 | "shasum": "" 2055 | }, 2056 | "require": { 2057 | "doctrine/common": "~2.4", 2058 | "ext-xml": "*", 2059 | "fig/link-util": "^1.0", 2060 | "php": "^5.5.9|>=7.0.8", 2061 | "psr/cache": "~1.0", 2062 | "psr/container": "^1.0", 2063 | "psr/link": "^1.0", 2064 | "psr/log": "~1.0", 2065 | "psr/simple-cache": "^1.0", 2066 | "symfony/polyfill-apcu": "~1.1", 2067 | "symfony/polyfill-intl-icu": "~1.0", 2068 | "symfony/polyfill-mbstring": "~1.0", 2069 | "symfony/polyfill-php56": "~1.0", 2070 | "symfony/polyfill-php70": "~1.6", 2071 | "symfony/polyfill-util": "~1.0", 2072 | "twig/twig": "^1.35|^2.4.4" 2073 | }, 2074 | "conflict": { 2075 | "phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2", 2076 | "phpdocumentor/type-resolver": "<0.2.1", 2077 | "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" 2078 | }, 2079 | "provide": { 2080 | "psr/cache-implementation": "1.0", 2081 | "psr/container-implementation": "1.0", 2082 | "psr/log-implementation": "1.0", 2083 | "psr/simple-cache-implementation": "1.0" 2084 | }, 2085 | "replace": { 2086 | "symfony/asset": "self.version", 2087 | "symfony/browser-kit": "self.version", 2088 | "symfony/cache": "self.version", 2089 | "symfony/class-loader": "self.version", 2090 | "symfony/config": "self.version", 2091 | "symfony/console": "self.version", 2092 | "symfony/css-selector": "self.version", 2093 | "symfony/debug": "self.version", 2094 | "symfony/debug-bundle": "self.version", 2095 | "symfony/dependency-injection": "self.version", 2096 | "symfony/doctrine-bridge": "self.version", 2097 | "symfony/dom-crawler": "self.version", 2098 | "symfony/dotenv": "self.version", 2099 | "symfony/event-dispatcher": "self.version", 2100 | "symfony/expression-language": "self.version", 2101 | "symfony/filesystem": "self.version", 2102 | "symfony/finder": "self.version", 2103 | "symfony/form": "self.version", 2104 | "symfony/framework-bundle": "self.version", 2105 | "symfony/http-foundation": "self.version", 2106 | "symfony/http-kernel": "self.version", 2107 | "symfony/inflector": "self.version", 2108 | "symfony/intl": "self.version", 2109 | "symfony/ldap": "self.version", 2110 | "symfony/lock": "self.version", 2111 | "symfony/monolog-bridge": "self.version", 2112 | "symfony/options-resolver": "self.version", 2113 | "symfony/process": "self.version", 2114 | "symfony/property-access": "self.version", 2115 | "symfony/property-info": "self.version", 2116 | "symfony/proxy-manager-bridge": "self.version", 2117 | "symfony/routing": "self.version", 2118 | "symfony/security": "self.version", 2119 | "symfony/security-bundle": "self.version", 2120 | "symfony/security-core": "self.version", 2121 | "symfony/security-csrf": "self.version", 2122 | "symfony/security-guard": "self.version", 2123 | "symfony/security-http": "self.version", 2124 | "symfony/serializer": "self.version", 2125 | "symfony/stopwatch": "self.version", 2126 | "symfony/templating": "self.version", 2127 | "symfony/translation": "self.version", 2128 | "symfony/twig-bridge": "self.version", 2129 | "symfony/twig-bundle": "self.version", 2130 | "symfony/validator": "self.version", 2131 | "symfony/var-dumper": "self.version", 2132 | "symfony/web-link": "self.version", 2133 | "symfony/web-profiler-bundle": "self.version", 2134 | "symfony/web-server-bundle": "self.version", 2135 | "symfony/workflow": "self.version", 2136 | "symfony/yaml": "self.version" 2137 | }, 2138 | "require-dev": { 2139 | "cache/integration-tests": "dev-master", 2140 | "doctrine/cache": "~1.6", 2141 | "doctrine/data-fixtures": "1.0.*", 2142 | "doctrine/dbal": "~2.4", 2143 | "doctrine/doctrine-bundle": "~1.4", 2144 | "doctrine/orm": "~2.4,>=2.4.5", 2145 | "egulias/email-validator": "~1.2,>=1.2.8|~2.0", 2146 | "monolog/monolog": "~1.11", 2147 | "ocramius/proxy-manager": "~0.4|~1.0|~2.0", 2148 | "phpdocumentor/reflection-docblock": "^3.0|^4.0", 2149 | "predis/predis": "~1.0", 2150 | "symfony/phpunit-bridge": "~3.2", 2151 | "symfony/security-acl": "~2.8|~3.0" 2152 | }, 2153 | "type": "library", 2154 | "extra": { 2155 | "branch-alias": { 2156 | "dev-master": "3.4-dev" 2157 | } 2158 | }, 2159 | "autoload": { 2160 | "psr-4": { 2161 | "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/", 2162 | "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/", 2163 | "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/", 2164 | "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", 2165 | "Symfony\\Bundle\\": "src/Symfony/Bundle/", 2166 | "Symfony\\Component\\": "src/Symfony/Component/" 2167 | }, 2168 | "classmap": [ 2169 | "src/Symfony/Component/Intl/Resources/stubs" 2170 | ], 2171 | "exclude-from-classmap": [ 2172 | "**/Tests/" 2173 | ] 2174 | }, 2175 | "notification-url": "https://packagist.org/downloads/", 2176 | "license": [ 2177 | "MIT" 2178 | ], 2179 | "authors": [ 2180 | { 2181 | "name": "Fabien Potencier", 2182 | "email": "fabien@symfony.com" 2183 | }, 2184 | { 2185 | "name": "Symfony Community", 2186 | "homepage": "https://symfony.com/contributors" 2187 | } 2188 | ], 2189 | "description": "The Symfony PHP framework", 2190 | "homepage": "https://symfony.com", 2191 | "keywords": [ 2192 | "framework" 2193 | ], 2194 | "time": "2017-10-18T21:46:31+00:00" 2195 | }, 2196 | { 2197 | "name": "twig/twig", 2198 | "version": "v2.4.4", 2199 | "source": { 2200 | "type": "git", 2201 | "url": "https://github.com/twigphp/Twig.git", 2202 | "reference": "eddb97148ad779f27e670e1e3f19fb323aedafeb" 2203 | }, 2204 | "dist": { 2205 | "type": "zip", 2206 | "url": "https://api.github.com/repos/twigphp/Twig/zipball/eddb97148ad779f27e670e1e3f19fb323aedafeb", 2207 | "reference": "eddb97148ad779f27e670e1e3f19fb323aedafeb", 2208 | "shasum": "" 2209 | }, 2210 | "require": { 2211 | "php": "^7.0", 2212 | "symfony/polyfill-mbstring": "~1.0" 2213 | }, 2214 | "require-dev": { 2215 | "psr/container": "^1.0", 2216 | "symfony/debug": "~2.7", 2217 | "symfony/phpunit-bridge": "~3.3@dev" 2218 | }, 2219 | "type": "library", 2220 | "extra": { 2221 | "branch-alias": { 2222 | "dev-master": "2.4-dev" 2223 | } 2224 | }, 2225 | "autoload": { 2226 | "psr-0": { 2227 | "Twig_": "lib/" 2228 | }, 2229 | "psr-4": { 2230 | "Twig\\": "src/" 2231 | } 2232 | }, 2233 | "notification-url": "https://packagist.org/downloads/", 2234 | "license": [ 2235 | "BSD-3-Clause" 2236 | ], 2237 | "authors": [ 2238 | { 2239 | "name": "Fabien Potencier", 2240 | "email": "fabien@symfony.com", 2241 | "homepage": "http://fabien.potencier.org", 2242 | "role": "Lead Developer" 2243 | }, 2244 | { 2245 | "name": "Armin Ronacher", 2246 | "email": "armin.ronacher@active-4.com", 2247 | "role": "Project Founder" 2248 | }, 2249 | { 2250 | "name": "Twig Team", 2251 | "homepage": "http://twig.sensiolabs.org/contributors", 2252 | "role": "Contributors" 2253 | } 2254 | ], 2255 | "description": "Twig, the flexible, fast, and secure template language for PHP", 2256 | "homepage": "http://twig.sensiolabs.org", 2257 | "keywords": [ 2258 | "templating" 2259 | ], 2260 | "time": "2017-09-27T18:10:31+00:00" 2261 | } 2262 | ], 2263 | "packages-dev": [ 2264 | { 2265 | "name": "sensio/generator-bundle", 2266 | "version": "v3.1.6", 2267 | "source": { 2268 | "type": "git", 2269 | "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", 2270 | "reference": "128bc5dabc91ca40b7445f094968dd70ccd58305" 2271 | }, 2272 | "dist": { 2273 | "type": "zip", 2274 | "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/128bc5dabc91ca40b7445f094968dd70ccd58305", 2275 | "reference": "128bc5dabc91ca40b7445f094968dd70ccd58305", 2276 | "shasum": "" 2277 | }, 2278 | "require": { 2279 | "symfony/console": "~2.7|~3.0", 2280 | "symfony/framework-bundle": "~2.7|~3.0", 2281 | "symfony/process": "~2.7|~3.0", 2282 | "symfony/yaml": "~2.7|~3.0", 2283 | "twig/twig": "^1.28.2|^2.0" 2284 | }, 2285 | "require-dev": { 2286 | "doctrine/orm": "~2.4", 2287 | "symfony/doctrine-bridge": "~2.7|~3.0", 2288 | "symfony/filesystem": "~2.7|~3.0", 2289 | "symfony/phpunit-bridge": "^3.3" 2290 | }, 2291 | "type": "symfony-bundle", 2292 | "extra": { 2293 | "branch-alias": { 2294 | "dev-master": "3.1.x-dev" 2295 | } 2296 | }, 2297 | "autoload": { 2298 | "psr-4": { 2299 | "Sensio\\Bundle\\GeneratorBundle\\": "" 2300 | }, 2301 | "exclude-from-classmap": [ 2302 | "/Tests/" 2303 | ] 2304 | }, 2305 | "notification-url": "https://packagist.org/downloads/", 2306 | "license": [ 2307 | "MIT" 2308 | ], 2309 | "authors": [ 2310 | { 2311 | "name": "Fabien Potencier", 2312 | "email": "fabien@symfony.com" 2313 | } 2314 | ], 2315 | "description": "This bundle generates code for you", 2316 | "time": "2017-07-18T07:57:44+00:00" 2317 | }, 2318 | { 2319 | "name": "symfony/phpunit-bridge", 2320 | "version": "v3.3.10", 2321 | "source": { 2322 | "type": "git", 2323 | "url": "https://github.com/symfony/phpunit-bridge.git", 2324 | "reference": "6e40d1c8bc4037edf3852c0b29fdd2923c4e2133" 2325 | }, 2326 | "dist": { 2327 | "type": "zip", 2328 | "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/6e40d1c8bc4037edf3852c0b29fdd2923c4e2133", 2329 | "reference": "6e40d1c8bc4037edf3852c0b29fdd2923c4e2133", 2330 | "shasum": "" 2331 | }, 2332 | "require": { 2333 | "php": ">=5.3.3" 2334 | }, 2335 | "conflict": { 2336 | "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" 2337 | }, 2338 | "suggest": { 2339 | "ext-zip": "Zip support is required when using bin/simple-phpunit", 2340 | "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" 2341 | }, 2342 | "bin": [ 2343 | "bin/simple-phpunit" 2344 | ], 2345 | "type": "symfony-bridge", 2346 | "extra": { 2347 | "branch-alias": { 2348 | "dev-master": "3.3-dev" 2349 | } 2350 | }, 2351 | "autoload": { 2352 | "files": [ 2353 | "bootstrap.php" 2354 | ], 2355 | "psr-4": { 2356 | "Symfony\\Bridge\\PhpUnit\\": "" 2357 | }, 2358 | "exclude-from-classmap": [ 2359 | "/Tests/" 2360 | ] 2361 | }, 2362 | "notification-url": "https://packagist.org/downloads/", 2363 | "license": [ 2364 | "MIT" 2365 | ], 2366 | "authors": [ 2367 | { 2368 | "name": "Nicolas Grekas", 2369 | "email": "p@tchwork.com" 2370 | }, 2371 | { 2372 | "name": "Symfony Community", 2373 | "homepage": "https://symfony.com/contributors" 2374 | } 2375 | ], 2376 | "description": "Symfony PHPUnit Bridge", 2377 | "homepage": "https://symfony.com", 2378 | "time": "2017-10-02T06:54:00+00:00" 2379 | } 2380 | ], 2381 | "aliases": [], 2382 | "minimum-stability": "stable", 2383 | "stability-flags": { 2384 | "symfony/symfony": 10 2385 | }, 2386 | "prefer-stable": false, 2387 | "prefer-lowest": false, 2388 | "platform": { 2389 | "php": ">=5.5.9" 2390 | }, 2391 | "platform-dev": [] 2392 | } 2393 | -------------------------------------------------------------------------------- /docker/app/install-composer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) Nils Adermann, Jordi Boggiano 4 | # Origin: https://github.com/composer/composer/blob/master/doc/faqs/how-to-install-composer-programmatically.md 5 | # Licence: MIT 6 | 7 | EXPECTED_SIGNATURE=$(php -r "echo trim(file_get_contents('https://composer.github.io/installer.sig'));") 8 | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 9 | ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") 10 | 11 | if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] 12 | then 13 | >&2 echo 'ERROR: Invalid installer signature' 14 | rm composer-setup.php 15 | exit 1 16 | fi 17 | 18 | php composer-setup.php --quiet 19 | RESULT=$? 20 | rm composer-setup.php 21 | exit $RESULT 22 | -------------------------------------------------------------------------------- /docker/app/php.ini: -------------------------------------------------------------------------------- 1 | apc.enable_cli = 1 2 | date.timezone = UTC 3 | session.auto_start = Off 4 | short_open_tag = Off 5 | 6 | # http://symfony.com/doc/current/performance.html 7 | opcache.max_accelerated_files = 20000 8 | realpath_cache_size = 4096K 9 | realpath_cache_ttl = 600 10 | 11 | disable_functions = -------------------------------------------------------------------------------- /docker/app/run-pm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/docker/app/run-pm.sh -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ppm.json: -------------------------------------------------------------------------------- 1 | { 2 | "bridge": "HttpKernel", 3 | "host": "0.0.0.0", 4 | "port": 8080, 5 | "workers": 8, 6 | "app-env": "prod", 7 | "debug": 0, 8 | "logging": 0, 9 | "static": true, 10 | "bootstrap": "symfony", 11 | "max-requests": 1000, 12 | "concurrent-requests": true, 13 | "socket-path": ".ppm\/run\/", 14 | "pidfile": ".ppm\/ppm.pid", 15 | "cgi-path": "/usr/bin/php-cgi7.1" 16 | } -------------------------------------------------------------------------------- /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.project_dir')).DIRECTORY_SEPARATOR, 20 | ]); 21 | } 22 | 23 | /** 24 | * @Route("/api", name="api") 25 | */ 26 | public function apiAction(Request $request) 27 | { 28 | 29 | $things = ['foo','bar','baz']; 30 | 31 | return new JsonResponse($things); 32 | 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- 1 | docker run -p 8080:8080 ppmtest:latest 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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('utf8_decode'), 638 | 'utf8_decode() should be available', 639 | 'Install and enable the XML extension.' 640 | ); 641 | 642 | $this->addRecommendation( 643 | function_exists('filter_var'), 644 | 'filter_var() should be available', 645 | 'Install and enable the filter extension.' 646 | ); 647 | 648 | if (!defined('PHP_WINDOWS_VERSION_BUILD')) { 649 | $this->addRecommendation( 650 | function_exists('posix_isatty'), 651 | 'posix_isatty() should be available', 652 | 'Install and enable the php_posix extension (used to colorize the CLI output).' 653 | ); 654 | } 655 | 656 | $this->addRecommendation( 657 | extension_loaded('intl'), 658 | 'intl extension should be available', 659 | 'Install and enable the intl extension (used for validators).' 660 | ); 661 | 662 | if (extension_loaded('intl')) { 663 | // in some WAMP server installations, new Collator() returns null 664 | $this->addRecommendation( 665 | null !== new Collator('fr_FR'), 666 | 'intl extension should be correctly configured', 667 | 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' 668 | ); 669 | 670 | // check for compatible ICU versions (only done when you have the intl extension) 671 | if (defined('INTL_ICU_VERSION')) { 672 | $version = INTL_ICU_VERSION; 673 | } else { 674 | $reflector = new ReflectionExtension('intl'); 675 | 676 | ob_start(); 677 | $reflector->info(); 678 | $output = strip_tags(ob_get_clean()); 679 | 680 | preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); 681 | $version = $matches[1]; 682 | } 683 | 684 | $this->addRecommendation( 685 | version_compare($version, '4.0', '>='), 686 | 'intl ICU version should be at least 4+', 687 | 'Upgrade your intl extension with a newer ICU version (4+).' 688 | ); 689 | 690 | if (class_exists('Symfony\Component\Intl\Intl')) { 691 | $this->addRecommendation( 692 | \Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion(), 693 | 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()), 694 | 'To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.' 695 | ); 696 | if (\Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion()) { 697 | $this->addRecommendation( 698 | \Symfony\Component\Intl\Intl::getIcuDataVersion() === \Symfony\Component\Intl\Intl::getIcuVersion(), 699 | 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()), 700 | 'To avoid internationalization data inconsistencies upgrade the symfony/intl component.' 701 | ); 702 | } 703 | } 704 | 705 | $this->addPhpIniRecommendation( 706 | 'intl.error_level', 707 | create_function('$cfgValue', 'return (int) $cfgValue === 0;'), 708 | true, 709 | 'intl.error_level should be 0 in php.ini', 710 | 'Set "intl.error_level" to "0" in php.ini* to inhibit the messages when an error occurs in ICU functions.' 711 | ); 712 | } 713 | 714 | $accelerator = 715 | (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) 716 | || 717 | (extension_loaded('apc') && ini_get('apc.enabled')) 718 | || 719 | (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) 720 | || 721 | (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) 722 | || 723 | (extension_loaded('xcache') && ini_get('xcache.cacher')) 724 | || 725 | (extension_loaded('wincache') && ini_get('wincache.ocenabled')) 726 | ; 727 | 728 | $this->addRecommendation( 729 | $accelerator, 730 | 'a PHP accelerator should be installed', 731 | 'Install and/or enable a PHP accelerator (highly recommended).' 732 | ); 733 | 734 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { 735 | $this->addRecommendation( 736 | $this->getRealpathCacheSize() >= 5 * 1024 * 1024, 737 | 'realpath_cache_size should be at least 5M in php.ini', 738 | 'Setting "realpath_cache_size" to e.g. "5242880" or "5M" in php.ini* may improve performance on Windows significantly in some cases.' 739 | ); 740 | } 741 | 742 | $this->addPhpIniRecommendation('short_open_tag', false); 743 | 744 | $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); 745 | 746 | $this->addPhpIniRecommendation('register_globals', false, true); 747 | 748 | $this->addPhpIniRecommendation('session.auto_start', false); 749 | 750 | $this->addRecommendation( 751 | class_exists('PDO'), 752 | 'PDO should be installed', 753 | 'Install PDO (mandatory for Doctrine).' 754 | ); 755 | 756 | if (class_exists('PDO')) { 757 | $drivers = PDO::getAvailableDrivers(); 758 | $this->addRecommendation( 759 | count($drivers) > 0, 760 | sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), 761 | 'Install PDO drivers (mandatory for Doctrine).' 762 | ); 763 | } 764 | } 765 | 766 | /** 767 | * Loads realpath_cache_size from php.ini and converts it to int. 768 | * 769 | * (e.g. 16k is converted to 16384 int) 770 | * 771 | * @return int 772 | */ 773 | protected function getRealpathCacheSize() 774 | { 775 | $size = ini_get('realpath_cache_size'); 776 | $size = trim($size); 777 | $unit = ''; 778 | if (!ctype_digit($size)) { 779 | $unit = strtolower(substr($size, -1, 1)); 780 | $size = (int) substr($size, 0, -1); 781 | } 782 | switch ($unit) { 783 | case 'g': 784 | return $size * 1024 * 1024 * 1024; 785 | case 'm': 786 | return $size * 1024 * 1024; 787 | case 'k': 788 | return $size * 1024; 789 | default: 790 | return (int) $size; 791 | } 792 | } 793 | 794 | /** 795 | * Defines PHP required version from Symfony version. 796 | * 797 | * @return string|false The PHP required version or false if it could not be guessed 798 | */ 799 | protected function getPhpRequiredVersion() 800 | { 801 | if (!file_exists($path = __DIR__.'/../composer.lock')) { 802 | return false; 803 | } 804 | 805 | $composerLock = json_decode(file_get_contents($path), true); 806 | foreach ($composerLock['packages'] as $package) { 807 | $name = $package['name']; 808 | if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { 809 | continue; 810 | } 811 | 812 | return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; 813 | } 814 | 815 | return false; 816 | } 817 | } 818 | -------------------------------------------------------------------------------- /var/cache/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/var/cache/.gitkeep -------------------------------------------------------------------------------- /var/logs/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/var/logs/.gitkeep -------------------------------------------------------------------------------- /var/sessions/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/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(); 13 | } 14 | //$kernel = new AppCache($kernel); 15 | 16 | // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter 17 | //Request::enableHttpMethodParameterOverride(); 18 | $request = Request::createFromGlobals(); 19 | $response = $kernel->handle($request); 20 | $response->send(); 21 | $kernel->terminate($request, $response); 22 | -------------------------------------------------------------------------------- /web/app_dev.php: -------------------------------------------------------------------------------- 1 | loadClassCache(); 27 | } 28 | $request = Request::createFromGlobals(); 29 | $response = $kernel->handle($request); 30 | $response->send(); 31 | $kernel->terminate($request, $response); 32 | -------------------------------------------------------------------------------- /web/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/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/janit/php-pm-docker-example/cc8a3916eb751921b861ff43d7df14ac252d8779/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 | --------------------------------------------------------------------------------