I am trying to install a module into Zend Framework 2 via composer.json but I am running into syntax errors
Here is the actual code itself:
{
"name" : "zendframework/skeleton-application",
"description" : "Skeleton Application for ZF2",
"require" : {
"php" : ">=5.4",
"zendframework/zendframework" : ">2.2.0rc1",
},
"keywords" : [ "framework", "zf2" ],
"license" : "BSD-3-Clause",
"homepage" : " http://framework.zend.com/ "
}
{
"name": "speckcommerce/speck-paypal",
"description": "A generic module for adding PayPal support to a ZF2 application.",
"type": "library",
"keywords": [ "zf2" ],
"homepage": " http://github.com/speckcommerce/SpeckPaypal ",
"authors": [
{
"name": "Stephen Rhoades",
"email": "steve@stephenrhoades.com",
"homepage": " http://www.stephenrhoades.com "
}
],
"require": {=5.4",
"zendframework/zendframework": "2.*"
},
"autoload": {
"psr-0": {
"SpeckPaypal": "src/"
},
"classmap": [
"./" ]
}
}
The error message is " [Seld\\JsonLint\\ParsingException]
"composer.json" does not contain valid JSON
Parse error on line 6:
"keywords" : {
-------------------------^
Expected: 'STRING' - It appears you have an extra trailing comma
I know I am doing something wrong, any help would be appreciated. Thanks!
You have some wrong comma:
{
"name" : "zendframework/skeleton-application",
"description" : "Skeleton Application for ZF2",
"require" : {
"php" : ">=5.4",
"zendframework/zendframework" : ">2.2.0rc1", ///<-- delete this comma
},
"keywords" : [ "framework", "zf2" ],
"license" : "BSD-3-Clause",
"homepage" : "http://framework.zend.com/"
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.