{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/74","labels_url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/74/comments","events_url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/74/events","html_url":"https://github.com/cloudfoundry/php-buildpack/issues/74","id":79420733,"number":74,"title":"Option to disable composer","user":{"login":"olavmrk","id":349658,"avatar_url":"https://avatars.githubusercontent.com/u/349658?v=3","gravatar_id":"","url":"https://api.github.com/users/olavmrk","html_url":"https://github.com/olavmrk","followers_url":"https://api.github.com/users/olavmrk/followers","following_url":"https://api.github.com/users/olavmrk/following{/other_user}","gists_url":"https://api.github.com/users/olavmrk/gists{/gist_id}","starred_url":"https://api.github.com/users/olavmrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olavmrk/subscriptions","organizations_url":"https://api.github.com/users/olavmrk/orgs","repos_url":"https://api.github.com/users/olavmrk/repos","events_url":"https://api.github.com/users/olavmrk/events{/privacy}","received_events_url":"https://api.github.com/users/olavmrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-05-22T11:38:32Z","updated_at":"2015-08-10T08:12:12Z","closed_at":null,"body":"If I am reading the code corectly, Composer build is triggered if it happens to find a `composer.json` or `composer.lock` anywhere in the code that is pushed: https://github.com/cloudfoundry/php-buildpack/blob/v3.2.1/extensions/composer/extension.py#L154\r\n\r\nSometimes you do not want the buildpack to run composer for you, but would rather run it yourself before pushing the buildpack. (E.g. because you need access to some specific repository using your SSH key.)\r\n\r\nIt appears that the only way to disable composer currently is to delete all `composer.json` and `composer.lock` files, deploy the app, and then restore the composer files afterwards.\r\n\r\nIt would be nice if there was a better way to disable composer (an option in `.bp-config/options.json`?). "},"comment":{"url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/comments/129353764","html_url":"https://github.com/cloudfoundry/php-buildpack/issues/74#issuecomment-129353764","issue_url":"https://api.github.com/repos/cloudfoundry/php-buildpack/issues/74","id":129353764,"user":{"login":"jornane","id":767872,"avatar_url":"https://avatars.githubusercontent.com/u/767872?v=3","gravatar_id":"","url":"https://api.github.com/users/jornane","html_url":"https://github.com/jornane","followers_url":"https://api.github.com/users/jornane/followers","following_url":"https://api.github.com/users/jornane/following{/other_user}","gists_url":"https://api.github.com/users/jornane/gists{/gist_id}","starred_url":"https://api.github.com/users/jornane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jornane/subscriptions","organizations_url":"https://api.github.com/users/jornane/orgs","repos_url":"https://api.github.com/users/jornane/repos","events_url":"https://api.github.com/users/jornane/events{/privacy}","received_events_url":"https://api.github.com/users/jornane/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T08:12:12Z","updated_at":"2015-08-10T08:12:12Z","body":"I'm from the same company as @olavmrk. Lately, i've been trying to get the Piwik web analysis software to install on Cloudfoundry. The way Piwik works, is that the `piwik` folder you download contains `vendor`, but also `index.php`, making it the webroot.\r\n\r\nPiwik internals will expect `vendor` in the same directory as `index.php`, but the build pack moves it away. Piwik has this path hardcoded and will not try include paths if it doesn't find `vendor` where it is expecting it.\r\n\r\nSince Piwik comes with a prepopulated `vendor` folder which does not require that composer be run, I think an option to disable composer would be the best solution here. Is there any update on the issue?"}}