{{if eq .PackageDescriptor.Package.Type "composer"}}

{{.i18n.Tr "packages.installation"}}

{
	"repositories": [{
			"type": "composer",
			"url": "{{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/composer"
		}
	]
}
composer require {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}}
{{if .PackageDescriptor.Metadata.Description}}

{{.i18n.Tr "packages.about"}}

{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if or .PackageDescriptor.Metadata.Require .PackageDescriptor.Metadata.RequireDev}}

{{.i18n.Tr "packages.dependencies"}}

{{template "package/content/composer_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.Require "title" (.i18n.Tr "packages.composer.dependencies")}} {{template "package/content/composer_dependencies" dict "root" $ "dependencies" .PackageDescriptor.Metadata.RequireDev "title" (.i18n.Tr "packages.composer.dependencies.development")}}
{{end}} {{if or .PackageDescriptor.Metadata.Keywords}}

{{.i18n.Tr "packages.keywords"}}

{{range .PackageDescriptor.Metadata.Keywords}} {{.}} {{end}}
{{end}} {{end}}