I am trying to create a Zend Framework application using the skeleton in NetBeans. When I run Composer install, I get the following error message:
"C:\php\php.exe" "C:\composer\composer.phar" "--ansi" "--no-interaction" "update" "--dev"
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php >=5.5 but your PHP version (5.4.42) does not satisfy that requirement.
Problem 2
- Installation request for zendframework/zendframework 2.5.1 -> satisfiable by zendframework/zendframework[2.5.1].
- zendframework/zendframework 2.5.1 requires php >=5.5 -> your PHP version (5.4.42) does not satisfy that requirement.
Done.
Apparently, the Zend Framework only needs PHP 5.3+ which contradicts the above. I need to use PHP 5.4.
My composer.json
is the following:
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.5",
"zendframework/zendframework": "2.5.1"
}
}
How can I create a PHP 5.4 / ZendFramework 2 application using the skeleton? Is there a workaround? I am new to the ZendFramework and composer.