DirectoryTree
in package
Table of Contents
- $binDir : string|null
- $presetDir : string|null
- $rootPackageDir : string|null
- $vendorDir : string|null
- $webDir : string|null
- __construct() : mixed
- fromComposerJsonPath() : self
- getBinDir() : string
- getDependencyDir() : string
- getPackagesByVendor() : iteratable<string|int, string>
- List packages installed from a specific vendor
- getPresetDir() : string
- getRootPackageDir() : string
- getVarConfigDir() : string
- getVendorDir() : string
- getVendorPackageDir() : string
- getVendors() : iteratable<string|int, string>
- List all vendors from which a package is installed
- getVendorSpecificDir() : string
- getWebReadableRootDir() : string
- withBinDir() : self
- withRootPackageDir() : self
- withVendorDir() : self
Properties
$binDir
private
string|null
$binDir
= null
$presetDir
private
string|null
$presetDir
= null
$rootPackageDir
private
string|null
$rootPackageDir
= null
$vendorDir
private
string|null
$vendorDir
= null
$webDir
private
string|null
$webDir
= null
Methods
__construct()
public
__construct(string $rootPackageDir) : mixed
Parameters
- $rootPackageDir : string
Return values
mixed —fromComposerJsonPath()
public
static fromComposerJsonPath(string $path) : self
Parameters
- $path : string
Return values
self —getBinDir()
public
getBinDir() : string
Return values
string —getDependencyDir()
public
getDependencyDir(string $vendor, string $package) : string
Parameters
- $vendor : string
- $package : string
Return values
string —getPackagesByVendor()
List packages installed from a specific vendor
public
getPackagesByVendor(string $vendor) : iteratable<string|int, string>
Parameters
- $vendor : string
Return values
iteratable<string|int, string> —A list of packages in a vendor-specific dir
getPresetDir()
public
getPresetDir() : string
Return values
string —getRootPackageDir()
public
getRootPackageDir() : string
Return values
string —getVarConfigDir()
public
getVarConfigDir() : string
Return values
string —getVendorDir()
public
getVendorDir() : string
Return values
string —getVendorPackageDir()
public
getVendorPackageDir(string $vendor, string $package) : string
Parameters
- $vendor : string
- $package : string
Return values
string —getVendors()
List all vendors from which a package is installed
public
getVendors() : iteratable<string|int, string>
Return values
iteratable<string|int, string> —getVendorSpecificDir()
public
getVendorSpecificDir(string $vendor) : string
Parameters
- $vendor : string
Return values
string —getWebReadableRootDir()
public
getWebReadableRootDir() : string
Return values
string —withBinDir()
public
withBinDir(string $dir) : self
Parameters
- $dir : string
Return values
self —withRootPackageDir()
public
withRootPackageDir(string $dir) : self
Parameters
- $dir : string
Return values
self —withVendorDir()
public
withVendorDir(string $dir) : self
Parameters
- $dir : string