You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
5.3 KiB
JSON
127 lines
5.3 KiB
JSON
13 years ago
|
{
|
||
|
"name": "Package",
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"name": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Package name, including 'vendor-name/' prefix.",
|
||
13 years ago
|
"required": true
|
||
|
},
|
||
|
"type": {
|
||
13 years ago
|
"description": "Package type, either 'library' for common packages, 'composer-installer' for custom installers, or a custom type defined by whatever project this package applies to.",
|
||
|
"type": "string"
|
||
13 years ago
|
},
|
||
13 years ago
|
"target-dir": {
|
||
13 years ago
|
"description": "Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
|
||
13 years ago
|
"type": "string"
|
||
|
},
|
||
13 years ago
|
"description": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Short package description.",
|
||
13 years ago
|
"required": true
|
||
|
},
|
||
|
"keywords": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
13 years ago
|
"type": "string",
|
||
|
"description": "A tag/keyword that this package relates to."
|
||
|
}
|
||
13 years ago
|
},
|
||
|
"homepage": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Homepage URL for the project.",
|
||
|
"format": "uri"
|
||
13 years ago
|
},
|
||
|
"version": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Package version, see http://packagist.org/about for more info on valid schemes.",
|
||
13 years ago
|
"required": true
|
||
|
},
|
||
13 years ago
|
"time": {
|
||
|
"type": "string",
|
||
|
"description": "Package release date, in 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS' format."
|
||
|
},
|
||
13 years ago
|
"license": {
|
||
13 years ago
|
"type": ["string", "array"],
|
||
13 years ago
|
"description": "License name. Or an array of license names."
|
||
13 years ago
|
},
|
||
|
"authors": {
|
||
|
"type": "array",
|
||
13 years ago
|
"description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list.",
|
||
13 years ago
|
"items": {
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"name": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Full name of the author.",
|
||
13 years ago
|
"required": true
|
||
|
},
|
||
|
"email": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Email address of the author.",
|
||
|
"format": "email"
|
||
13 years ago
|
},
|
||
|
"homepage": {
|
||
|
"type": "string",
|
||
13 years ago
|
"description": "Homepage URL for the author.",
|
||
|
"format": "uri"
|
||
13 years ago
|
}
|
||
|
}
|
||
13 years ago
|
}
|
||
13 years ago
|
},
|
||
|
"require": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that are required to run this package.",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
13 years ago
|
"replace": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that can be replaced by this package.",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
|
"conflict": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that conflict with this package.",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
|
"provide": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that this package provides in addition to this package's name.",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
|
"recommend": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that this package recommends to be installed (typically this will be installed as well).",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
|
"suggest": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of package name (keys) and version constraints (values) that this package suggests work well with it (typically this will only be suggested to the user).",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
13 years ago
|
"extra": {
|
||
|
"type": ["object", "array"],
|
||
13 years ago
|
"description": "Arbitrary extra data that can be used by custom installers, for example, package of type composer-installer must have a 'class' key defining the installer class name.",
|
||
|
"additionalProperties": true
|
||
13 years ago
|
},
|
||
|
"autoload": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "Description of how the package can be autoloaded.",
|
||
13 years ago
|
"properties": {
|
||
|
"psr-0": {
|
||
|
"type": "object",
|
||
13 years ago
|
"description": "This is a hash of namespaces (keys) and the directories they can be found into (values) by the autoloader.",
|
||
13 years ago
|
"additionalProperties": true
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"repositories": {
|
||
|
"type": ["object", "array"],
|
||
13 years ago
|
"description": "A set of additional repositories where packages can be found.",
|
||
13 years ago
|
"additionalProperties": true
|
||
13 years ago
|
}
|
||
|
}
|
||
|
}
|