Skip to content

Quick Start instructions: phpmetrics should run as Bash, not PHP #491

Closed
@chris407x

Description

@chris407x

Thanks for this software. It is awesome.
I found that this instruction did not work for me:

# install the package as a dev dependency
composer require phpmetrics/phpmetrics --dev

# run PHPMetrics to analyze a folder and generate a report
php ./vendor/bin/phpmetrics --report-html=myreport <folder-to-analyze>

the file to run is a bash file so it should be sh ./vendor instead of php ./vendor:

# install the package as a dev dependency
composer require phpmetrics/phpmetrics --dev

# run PHPMetrics to analyze a folder and generate a report
sh ./vendor/bin/phpmetrics --report-html=myreport <folder-to-analyze>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions