Skip to content

Instantly share code, notes, and snippets.

@jonathaningram
Created June 19, 2012 22:53
Show Gist options
  • Save jonathaningram/2957007 to your computer and use it in GitHub Desktop.
Save jonathaningram/2957007 to your computer and use it in GitHub Desktop.
{
"name": "myproject",
"description": "",
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "composer",
"url": "http://packages.zendframework.com/"
}
],
"require": {
"php": ">=5.3.10",
"zendframework/zend-feed": "dev-master"
}
}
@jonathaningram
Copy link
Author

@Seldaek I am not sure if *@ is just a wildcard, but FYI, I found it was necessary to specifically write this:

{
    "zendframework/zend-cache": "2.0.0-beta4",
    "zendframework/zend-feed": "2.0.0-beta4",
    "zendframework/zend-http": "2.0.0-beta4"
}

Note: I added some additional lines that don't appear to be required by ZF (even though I think they should be even if they are optionally used).

@Seldaek
Copy link

Seldaek commented Jun 21, 2012

_@ is nothing, but 2.0._is a wildcard match on any 2.0.n version, and@beta means it can take versions up to beta (that includes stable/rc/beta), otherwise it'll be (once we switch the default stability to stable instead of dev) only looking at stable releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment