class ComposerJson

Methods

bool
exists()

Determine whether the application has a composer.json file.

string|null
phpConstraint()

Get the application's PHP version constraint.

array
requiredExtensions()

Get the Composer-required PHP extensions.

array
suggestedExtensions()

Get the Composer-suggested PHP extensions.

array|null
contents()

Get the decoded composer.json contents.

Details

at line 22
bool exists()

Determine whether the application has a composer.json file.

Return Value

bool

at line 30
string|null phpConstraint()

Get the application's PHP version constraint.

Return Value

string|null

at line 42
array requiredExtensions()

Get the Composer-required PHP extensions.

Return Value

array

at line 55
array suggestedExtensions()

Get the Composer-suggested PHP extensions.

Return Value

array

at line 67
array|null contents()

Get the decoded composer.json contents.

Return Value

array|null