Handles all the loading, unloading and management of packages.
| package | Core |
|---|---|
| subpackage | Packages |
exists(string $package) : bool | string
stringThe package name
boolstringPath to the package found, or false if not foundload(string | array $package, string | null $path) : bool
If a path is not given, if will search through the defined package_paths. If not defined, then PKGPATH is used. It also accepts an array of packages as the first parameter.
stringarrayThe package name or array of packages.
stringnullThe path to the package
\PackageNotFoundException |
|---|
boolTrue on successloaded(string | null $package) : bool | array
stringnullThe package name or null
boolarrayWhether the package is loaded, or all packagesunload(string $package) : void
stringThe package name
$packages : array