Leaf PHP

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
bool

findComposer()

Get the composer command for the environment.

public static findComposer() : string
Return values
string

findGit()

Get the git command for the environment.

public static findGit() : string
Return values
string

findLeaf()

Get the leaf CLI bin.

public static findLeaf() : string
Return values
string

findNodeJS()

Get the node command for the environment.

public static findNodeJS() : string
Return values
string

findNpm()

Get the node command for the environment.

public static findNpm() : string
Return values
string

findWatcher()

Get the leaf watcher bin.

public static findWatcher() : string
Return values
string

isBladeProject()

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

        
On this page

Search results