Handles all the loading, unloading and management of packages.
package | Core |
---|---|
subpackage | Packages |
exists(string $package) : bool | string
string
The package name
bool
string
Path 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.
string
array
The package name or array of packages.
string
null
The path to the package
\PackageNotFoundException |
---|
bool
True on successloaded(string | null $package) : bool | array
string
null
The package name or null
bool
array
Whether the package is loaded, or all packagesunload(string $package) : void
string
The package name
$packages : array