Skip to content

Enable use as a Composer dependency #42

@anroots

Description

@anroots

Currently, when including the project via Composer as a dependency, it isn't possible to run it: including the Composer autoloader from bin/metrics.php fails, since it is assumed that the project is a root-level project, with its own vendor directory.

To solve that, the following changes would be necessary:

  • Tell Composer to move the metrics.php to the Composer vendor/bin dir (optionally, losing the .php extension)
  • Rewrite the Composer autoloader inclusion in metrics.php so it would work when the project is included as a dependency

If you'd like, I could try creating a pull request for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions