{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/3607","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/3607/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/3607/comments","events_url":"https://api.github.com/repos/composer/composer/issues/3607/events","html_url":"https://github.com/composer/composer/issues/3607","id":53256271,"number":3607,"title":"add require-global option to composer.json","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Feature","name":"Feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/2","html_url":"https://github.com/composer/composer/milestones/Later","labels_url":"https://api.github.com/repos/composer/composer/milestones/2/labels","id":103111,"number":2,"title":"Later","description":"Non-essential things or stuff that may not make sense at all. Discuss before starting to work on any of this","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":23,"state":"open","created_at":"2012-04-02T22:46:53Z","updated_at":"2016-02-23T11:21:02Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2015-01-02T14:53:03Z","updated_at":"2016-02-23T11:49:32Z","closed_at":null,"body":"Since you can install packages globally, you should also be able to specify a global requirement in a composer.json file of a project.\r\n\r\nSee also https://github.com/composer/composer/pull/3082 - the plugin mentioned there for example requires to be installed globally to work correctly, if you do not have a global installation of the plugin you're getting no or non-obvoius error-messages and the package installation seems to work fine, but the application as a whole won't work as expected.\r\n\r\nProposed syntax in `composer.json`:\r\n```\r\n\"require-global\": {\r\n  \"fxp/composer-asset-plugin\": \"~1.0\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/187668571","html_url":"https://github.com/composer/composer/issues/3607#issuecomment-187668571","issue_url":"https://api.github.com/repos/composer/composer/issues/3607","id":187668571,"user":{"login":"naderman","id":154844,"avatar_url":"https://avatars.githubusercontent.com/u/154844?v=3","gravatar_id":"","url":"https://api.github.com/users/naderman","html_url":"https://github.com/naderman","followers_url":"https://api.github.com/users/naderman/followers","following_url":"https://api.github.com/users/naderman/following{/other_user}","gists_url":"https://api.github.com/users/naderman/gists{/gist_id}","starred_url":"https://api.github.com/users/naderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naderman/subscriptions","organizations_url":"https://api.github.com/users/naderman/orgs","repos_url":"https://api.github.com/users/naderman/repos","events_url":"https://api.github.com/users/naderman/events{/privacy}","received_events_url":"https://api.github.com/users/naderman/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T11:49:32Z","updated_at":"2016-02-23T11:49:32Z","body":"I agree with @curry684 that really a plugin ought to not have to be installed globally prior to running composer to begin with. So far global plugins are an option, but entirely avoidable, adding this feature we would advocate in favour of people installing global plugins, so I really don't think this should be implemented."}}