{"action":"created","issue":{"url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/42","labels_url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/42/comments","events_url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/42/events","html_url":"https://github.com/Halleck45/PhpMetrics/issues/42","id":41615761,"number":42,"title":"Enable use as a Composer dependency","user":{"login":"anroots","id":469120,"avatar_url":"https://avatars.githubusercontent.com/u/469120?v=3","gravatar_id":"","url":"https://api.github.com/users/anroots","html_url":"https://github.com/anroots","followers_url":"https://api.github.com/users/anroots/followers","following_url":"https://api.github.com/users/anroots/following{/other_user}","gists_url":"https://api.github.com/users/anroots/gists{/gist_id}","starred_url":"https://api.github.com/users/anroots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anroots/subscriptions","organizations_url":"https://api.github.com/users/anroots/orgs","repos_url":"https://api.github.com/users/anroots/repos","events_url":"https://api.github.com/users/anroots/events{/privacy}","received_events_url":"https://api.github.com/users/anroots/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Halleck45/PhpMetrics/labels/waiting","name":"waiting","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-09-01T07:59:08Z","updated_at":"2015-11-25T15:44:43Z","closed_at":"2014-11-08T11:16:46Z","body":"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.\r\n\r\nTo solve that, the following changes would be necessary:\r\n\r\n- Tell Composer to move the metrics.php to the Composer vendor/bin dir (optionally, losing the .php extension)\r\n- Rewrite the Composer autoloader inclusion in `metrics.php` so it would work when the project is included as a dependency\r\n\r\nIf you'd like, I could try creating a pull request for this."},"comment":{"url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/comments/159645465","html_url":"https://github.com/Halleck45/PhpMetrics/issues/42#issuecomment-159645465","issue_url":"https://api.github.com/repos/Halleck45/PhpMetrics/issues/42","id":159645465,"user":{"login":"jmauerhan","id":4204262,"avatar_url":"https://avatars.githubusercontent.com/u/4204262?v=3","gravatar_id":"","url":"https://api.github.com/users/jmauerhan","html_url":"https://github.com/jmauerhan","followers_url":"https://api.github.com/users/jmauerhan/followers","following_url":"https://api.github.com/users/jmauerhan/following{/other_user}","gists_url":"https://api.github.com/users/jmauerhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmauerhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmauerhan/subscriptions","organizations_url":"https://api.github.com/users/jmauerhan/orgs","repos_url":"https://api.github.com/users/jmauerhan/repos","events_url":"https://api.github.com/users/jmauerhan/events{/privacy}","received_events_url":"https://api.github.com/users/jmauerhan/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T15:44:43Z","updated_at":"2015-11-25T15:44:43Z","body":"I'm still having issues related to these. There is no stable version in packagist: Could not find package 'halleck45/phpmetrics' at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability\r\n\r\nAnd when I installed with `@dev`, I get nothing in bin, I can't figure out how to run the tool."}}