getScripts()
getScripts() : array
Returns the scripts of this package
Returns
array —array('script name' => array('listeners'))
Defines additional fields that are only needed for the root package
getRequires() : array<mixed,\Composer\Package\Link>
Returns a set of links to packages which need to be installed before this package can be installed
An array of package links defining required packages
getConflicts() : array<mixed,\Composer\Package\Link>
Returns a set of links to packages which must not be installed at the same time as this package
An array of package links defining conflicting packages
getProvides() : array<mixed,\Composer\Package\Link>
Returns a set of links to virtual packages that are provided through this package
An array of package links defining provided packages
getReplaces() : array<mixed,\Composer\Package\Link>
Returns a set of links to packages which can alternatively be satisfied by installing this package
An array of package links defining replaced packages
getDevRequires() : array<mixed,\Composer\Package\Link>
Returns a set of links to packages which are required to develop this package. These are installed if in dev mode.
An array of package links defining packages required for development
getDevAutoload() : array
Returns an associative array of dev autoloading rules
{"
Type is either "psr-4", "psr-0", "classmap" or "files". Namespaces are mapped to directories for autoloading using the type specified.
Mapping of dev autoloading rules
setRepository(\Composer\Repository\RepositoryInterface $repository)
Stores a reference to the repository that owns the package
\Composer\Repository\RepositoryInterface | $repository |
getRepository() : \Composer\Repository\RepositoryInterface
Returns a reference to the repository that owns the package
setRequires(array<mixed,\Composer\Package\Link> $requires)
Set the required packages
array<mixed,\Composer\Package\Link> | $requires | A set of package links |
setDevRequires(array<mixed,\Composer\Package\Link> $devRequires)
Set the recommended packages
array<mixed,\Composer\Package\Link> | $devRequires | A set of package links |
setConflicts(array<mixed,\Composer\Package\Link> $conflicts)
Set the conflicting packages
array<mixed,\Composer\Package\Link> | $conflicts | A set of package links |
setProvides(array<mixed,\Composer\Package\Link> $provides)
Set the provided virtual packages
array<mixed,\Composer\Package\Link> | $provides | A set of package links |
setReplaces(array<mixed,\Composer\Package\Link> $replaces)
Set the packages this one replaces
array<mixed,\Composer\Package\Link> | $replaces | A set of package links |