Core
in package
Table of Contents
Methods
- commandExists() : bool
- Check if a system command exists
- findComposer() : string
- Get the composer command for the environment.
- findGit() : string
- Get the git command for the environment.
- findLeaf() : string
- Get the leaf CLI bin.
- findNodeJS() : string
- Get the node command for the environment.
- findNpm() : string
- Get the node command for the environment.
- findWatcher() : string
- Get the leaf watcher bin.
- isBladeProject() : mixed
- Check if a project is a blade project
- isMVCProject() : mixed
- Check if a project is an MVC project
- run() : mixed
- Run a shell process with the output.
Methods
commandExists()
Check if a system command exists
public
static commandExists(string $cmd) : bool
Parameters
- $cmd : string
Return values
boolfindComposer()
Get the composer command for the environment.
public
static findComposer() : string
Return values
stringfindGit()
Get the git command for the environment.
public
static findGit() : string
Return values
stringfindLeaf()
Get the leaf CLI bin.
public
static findLeaf() : string
Return values
stringfindNodeJS()
Get the node command for the environment.
public
static findNodeJS() : string
Return values
stringfindNpm()
Get the node command for the environment.
public
static findNpm() : string
Return values
stringfindWatcher()
Get the leaf watcher bin.
public
static findWatcher() : string
Return values
stringisBladeProject()
Check if a project is a blade project
public
static isBladeProject([mixed $directory = null ]) : mixed
Parameters
- $directory : mixed = null
isMVCProject()
Check if a project is an MVC project
public
static isMVCProject([mixed $directory = null ]) : mixed
Parameters
- $directory : mixed = null
run()
Run a shell process with the output.
public
static run(string $command, mixed $output[, string $cwd = null ]) : mixed
Parameters
- $command : string
- $output : mixed
- $cwd : string = null