Skip to content

Instantly share code, notes, and snippets.

@rinatio
Created July 11, 2013 21:20
Show Gist options
  • Save rinatio/5979353 to your computer and use it in GitHub Desktop.
Save rinatio/5979353 to your computer and use it in GitHub Desktop.
Yii2 composer.json example
{
"repositories" : [
{
"type": "package",
"package": {
"name": "yiisoft/yii2",
"version": "master",
"source": {
"type": "git",
"url": "https://github.com/yiisoft/yii2.git",
"reference" : "master"
}
}
}
],
"require": {
"yiisoft/yii2": "dev-master"
},
"autoload": {
// This way all you need is require composer autoloader
"files": ["vendor/yiisoft/yii2/framework/yii.php"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment