interface PackageManagerInterface

Package manager interface

Methods

PackageInterface
createPackage(string $name)

Create package obj

PackageInterface|false
findPackage(string $param, mixed $value)

Find package

Collection|null
getPackageProperties(string $name, bool $full = false)

Get package properties

bool
installPackage(string $name)

Install package

mixed
postInstallPackage(string $name)

Run post install actions on package

bool
unInstallPackage(string $name)

Uninstall package

bool
enablePackage(string $name)

Enable package

bool
disablePackage(string $name)

Disable package

installAllPackages()

Install all packages

mixed
getPackages(bool $cached = false, mixed $filter = null)

Get packages list

array
getInstalled(mixed|null $status = null, mixed|null $type = null)

Return installed packages

bool
createBackup(string $name)

Create zip arhive with package files and save to storage/backup/

RepositoryInterface
getRepository(string $packageName)

Get package repository

Details

at line 23
PackageInterface createPackage(string $name)

Create package obj

Parameters

string $name

Return Value

PackageInterface

at line 32
PackageInterface|false findPackage(string $param, mixed $value)

Find package

Parameters

string $param
mixed $value

Return Value

PackageInterface|false

at line 41
Collection|null getPackageProperties(string $name, bool $full = false)

Get package properties

Parameters

string $name
bool $full

Return Value

Collection|null

at line 49
bool installPackage(string $name)

Install package

Parameters

string $name

Return Value

bool

at line 57
mixed postInstallPackage(string $name)

Run post install actions on package

Parameters

string $name

Return Value

mixed

at line 65
bool unInstallPackage(string $name)

Uninstall package

Parameters

string $name

Return Value

bool

at line 73
bool enablePackage(string $name)

Enable package

Parameters

string $name

Return Value

bool

at line 81
bool disablePackage(string $name)

Disable package

Parameters

string $name

Return Value

bool

at line 87
installAllPackages()

Install all packages

@return bool

at line 96
mixed getPackages(bool $cached = false, mixed $filter = null)

Get packages list

Parameters

bool $cached
mixed $filter

Return Value

mixed

at line 105
array getInstalled(mixed|null $status = null, mixed|null $type = null)

Return installed packages

Parameters

mixed|null $status
mixed|null $type

Return Value

array

at line 113
bool createBackup(string $name)

Create zip arhive with package files and save to storage/backup/

Parameters

string $name

Return Value

bool

at line 121
RepositoryInterface getRepository(string $packageName)

Get package repository

Parameters

string $packageName

Return Value

RepositoryInterface