Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save harikt/3243564 to your computer and use it in GitHub Desktop.

Select an option

Save harikt/3243564 to your computer and use it in GitHub Desktop.
composer.json
{
"name": "hari/aura-system",
"minimum-stability": "dev",
"repositories": {
"aura-unofficial": {
"type": "package",
"package": [{
"type": "aura-package",
"name": "aura/autoload",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Autoload.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/cli",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Cli.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/di",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Di.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/framework",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Framework.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/http",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Http.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/marshal",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Marshal.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/router",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Router.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/signal",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Signal.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/sql",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Sql.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/uri",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Uri.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/view",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.View.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
},
{
"type": "aura-package",
"name": "aura/web",
"version": "1.0.0-beta3",
"source": {
"url": "git://github.com/auraphp/Aura.Web.git",
"type": "git",
"reference": "origin/master"
},
"require": {
"composer/installers": "*"
}
}
]
}
},
"require": {
"composer/installers": "*",
"aura/autoload": "1.0.0-beta3",
"aura/cli": "1.0.0-beta3",
"aura/di": "1.0.0-beta3",
"aura/http": "1.0.0-beta3",
"aura/marshal": "1.0.0-beta3",
"aura/router": "1.0.0-beta3",
"aura/signal": "1.0.0-beta3",
"aura/sql": "1.0.0-beta3",
"aura/uri": "1.0.0-beta3",
"aura/view": "1.0.0-beta3",
"aura/web": "1.0.0-beta3",
"aura/framework": "1.0.0-beta3"
},
"extra": {
"installer-paths": {
"package/Aura.Autoload/": ["aura/autoload"],
"package/Aura.Cli/": ["aura/cli"],
"package/Aura.Di/": ["aura/di"],
"package/Aura.Http/": ["aura/http"],
"package/Aura.Marshal/": ["aura/marshal"],
"package/Aura.Router/": ["aura/router"],
"package/Aura.Signal/": ["aura/signal"],
"package/Aura.Sql/": ["aura/sql"],
"package/Aura.Uri/": ["aura/uri"],
"package/Aura.View/": ["aura/view"],
"package/Aura.Web/": ["aura/web"],
"package/Aura.Framework/": ["aura/framework"]
}
}
}
@harikt
Copy link
Copy Markdown
Author

harikt commented Aug 3, 2012

Probably one of the horrible composer.json created . But this works to download to Aura.Package style.

This composer.json came from the discussion at

composer/installers#24

composer/packagist#186

What we are trying to do is in the group post

https://groups.google.com/d/topic/auraphp/QhIQVLd3S3g/discussion

Still trying to do in a better way. I am trying to get rid of the "aura-unofficial" without we adding it
and composer smartly recognizing it as we have composer.json for all those packages, but only thing is
its type is library currently and not aura-package. If we change to aura-package I think composer will
not be able to autoload itself.

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