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

{{.locale.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}}

{{.locale.Tr "packages.about"}}

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

{{.locale.Tr "packages.dependencies"}}

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

{{.locale.Tr "packages.keywords"}}

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