1
0
Fork 0

Fix schema nesting

pull/263/merge
Jordi Boggiano 2012-03-18 11:49:06 +01:00
parent 98686e32e2
commit 502048bfd8
1 changed files with 19 additions and 17 deletions

View File

@ -13,7 +13,9 @@ can also be used to validate your `composer.json`. In fact, it is used by the
The root of the package definition is a JSON object. The root of the package definition is a JSON object.
## name ## Properties
### name
The name of the package. It consists of vendor name and project name, The name of the package. It consists of vendor name and project name,
separated by `/`. separated by `/`.
@ -25,13 +27,13 @@ Examples:
Required for published packages (libraries). Required for published packages (libraries).
## description ### description
A short description of the package. Usually this is just one line long. A short description of the package. Usually this is just one line long.
Optional but recommended. Optional but recommended.
## version ### version
The version of the package. The version of the package.
@ -52,7 +54,7 @@ Optional if the package repository can infer the version from somewhere, such
as the VCS tag name in the VCS repository. In that case it is also recommended as the VCS tag name in the VCS repository. In that case it is also recommended
to omit it. to omit it.
## type ### type
The type of the package. It defaults to `library`. The type of the package. It defaults to `library`.
@ -74,7 +76,7 @@ order to be able to install the bundle.
Only use a custom type if you need custom logic during installation. It is Only use a custom type if you need custom logic during installation. It is
recommended to omit this field and have it just default to `library`. recommended to omit this field and have it just default to `library`.
## keywords ### keywords
An array of keywords that the package is related to. These can be used for An array of keywords that the package is related to. These can be used for
searching and filtering. searching and filtering.
@ -89,13 +91,13 @@ Examples:
Optional. Optional.
## homepage ### homepage
An URL to the website of the project. An URL to the website of the project.
Optional. Optional.
## time ### time
Release date of the version. Release date of the version.
@ -103,7 +105,7 @@ Must be in `YYYY-MM-DD` or `YYYY-MM-DD HH:MM:SS` format.
Optional. Optional.
## license ### license
The license of the package. This can be either a string or an array of strings. The license of the package. This can be either a string or an array of strings.
@ -122,7 +124,7 @@ The recommended notation for the most common licenses is:
Optional, but it is highly recommended to supply this. Optional, but it is highly recommended to supply this.
## authors ### authors
The authors of the package. This is an array of objects. The authors of the package. This is an array of objects.
@ -151,7 +153,7 @@ An example:
Optional, but highly recommended. Optional, but highly recommended.
## Link types ### Link types
Each of these takes an object which maps package names to version constraints. Each of these takes an object which maps package names to version constraints.
@ -179,7 +181,7 @@ Example:
Optional. Optional.
## autoload ### autoload
Autoload mapping for a PHP autoloader. Autoload mapping for a PHP autoloader.
@ -211,7 +213,7 @@ Example:
} }
} }
## target-dir ### target-dir
Defines the installation target. Defines the installation target.
@ -236,7 +238,7 @@ To do that, `autoload` and `target-dir` are defined as follows:
Optional. Optional.
## repositories ### repositories
Custom package repositories to use. Custom package repositories to use.
@ -302,7 +304,7 @@ will look from the first to the last repository, and pick the first match.
By default Packagist is added last which means that custom repositories can By default Packagist is added last which means that custom repositories can
override packages from it. override packages from it.
## config ### config
A set of configuration options. It is only used for projects. A set of configuration options. It is only used for projects.
@ -324,7 +326,7 @@ Example:
} }
} }
## scripts ### scripts
Composer allows you to hook into various parts of the installation process Composer allows you to hook into various parts of the installation process
through the use of scripts. through the use of scripts.
@ -383,7 +385,7 @@ which gives you access to the `Composer\Composer` instance through the
} }
} }
## extra ### extra
Arbitrary extra data for consumption by `scripts`. Arbitrary extra data for consumption by `scripts`.
@ -394,7 +396,7 @@ handler, you can do:
Optional. Optional.
## bin ### bin
A set of files that should be treated as binaries and symlinked into the `bin- A set of files that should be treated as binaries and symlinked into the `bin-
dir` (from config). dir` (from config).