getName()
getName() : string
Returns the package's name without version info, thus not a unique identifier
Returns
string —package name
Defines package metadata that is not necessarily needed for solving and installing packages
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