{"action":"created","issue":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/941","repository_url":"https://api.github.com/repos/glpi-project/glpi","labels_url":"https://api.github.com/repos/glpi-project/glpi/issues/941/labels{/name}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/941/comments","events_url":"https://api.github.com/repos/glpi-project/glpi/issues/941/events","html_url":"https://github.com/glpi-project/glpi/issues/941","id":175786460,"number":941,"title":"Use composer for plugin's dependencies","user":{"login":"btry","id":14139801,"avatar_url":"https://avatars.githubusercontent.com/u/14139801?v=3","gravatar_id":"","url":"https://api.github.com/users/btry","html_url":"https://github.com/btry","followers_url":"https://api.github.com/users/btry/followers","following_url":"https://api.github.com/users/btry/following{/other_user}","gists_url":"https://api.github.com/users/btry/gists{/gist_id}","starred_url":"https://api.github.com/users/btry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btry/subscriptions","organizations_url":"https://api.github.com/users/btry/orgs","repos_url":"https://api.github.com/users/btry/repos","events_url":"https://api.github.com/users/btry/events{/privacy}","received_events_url":"https://api.github.com/users/btry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-08T15:33:44Z","updated_at":"2016-09-09T06:42:10Z","closed_at":null,"body":"Hi\r\n\r\nI'm searching for a solution to use additional PHP libraries for plugins.\r\n\r\nI found something interesting there \r\nhttps://github.com/wikimedia/composer-merge-plugin\r\n\r\nThis plugin for Composer allows searching for .json files in arbitrary directories to be added in GLPi's composer.json (for GLPi this would be **plugins/*/composer.json** )\r\n\r\nI did a try and looks to be working great.\r\n\r\nAdditional librarires are saved in /vendor and are available with the existing autoload system in GLPi.  This also allows a single copy of a lib when several plugins have the same dependencies.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/comments/245832694","html_url":"https://github.com/glpi-project/glpi/issues/941#issuecomment-245832694","issue_url":"https://api.github.com/repos/glpi-project/glpi/issues/941","id":245832694,"user":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T06:42:10Z","updated_at":"2016-09-09T06:42:10Z","body":"I agree with Remi: each plugin should provide its own environment, otherwise we may have risks of breaks  in GLPi or other plugins."}}
{"actor":{"display_login":"tomolimo"}}