{"action":"created","issue":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/2087","labels_url":"https://api.github.com/repos/concrete5/concrete5/issues/2087/labels{/name}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/2087/comments","events_url":"https://api.github.com/repos/concrete5/concrete5/issues/2087/events","html_url":"https://github.com/concrete5/concrete5/pull/2087","id":62930479,"number":2087,"title":"Composer type concrete5-update","user":{"login":"fabian","id":13346,"avatar_url":"https://avatars.githubusercontent.com/u/13346?v=3","gravatar_id":"","url":"https://api.github.com/users/fabian","html_url":"https://github.com/fabian","followers_url":"https://api.github.com/users/fabian/followers","following_url":"https://api.github.com/users/fabian/following{/other_user}","gists_url":"https://api.github.com/users/fabian/gists{/gist_id}","starred_url":"https://api.github.com/users/fabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabian/subscriptions","organizations_url":"https://api.github.com/users/fabian/orgs","repos_url":"https://api.github.com/users/fabian/repos","events_url":"https://api.github.com/users/fabian/events{/privacy}","received_events_url":"https://api.github.com/users/fabian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/concrete5/concrete5/labels/accepted:in%20progress","name":"accepted:in progress","color":"009800"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/priority:love%20to%20have","name":"priority:love to have","color":"5319e7"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/type:enhancement","name":"type:enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/concrete5/concrete5/milestones/12","html_url":"https://github.com/concrete5/concrete5/milestones/Future","labels_url":"https://api.github.com/repos/concrete5/concrete5/milestones/12/labels","id":1000024,"number":12,"title":"Future","description":"","creator":{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false},"open_issues":93,"closed_issues":61,"state":"open","created_at":"2015-02-28T15:33:57Z","updated_at":"2016-01-07T21:28:45Z","due_on":null,"closed_at":null},"comments":21,"created_at":"2015-03-19T09:40:01Z","updated_at":"2016-01-09T01:58:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/concrete5/concrete5/pulls/2087","html_url":"https://github.com/concrete5/concrete5/pull/2087","diff_url":"https://github.com/concrete5/concrete5/pull/2087.diff","patch_url":"https://github.com/concrete5/concrete5/pull/2087.patch"},"body":"This is an easier approach to make concrete5 usable as a Composer dependency. It doesn't require a split up of the repository, only a move of folders.\r\n\r\nBy using the already existing Composer installer type `concrete5-update`, concrete5 gets installed into `updates/concrete5/` and can be used with the following files:\r\n\r\n__index.php__\r\n```php\r\n<?php\r\nrequire('updates/concrete5/concrete/dispatcher.php');\r\n```\r\n\r\n__application/bootstrap/autoload.php__\r\n```php\r\n<?php\r\nrequire __DIR__ . '/../../vendor/autoload.php';\r\n```\r\n\r\n__application/config/update.php__\r\n```php\r\n<?php\r\nreturn array(\r\n    'core' => 'concrete5'\r\n);\r\n```\r\n\r\nThe composer.json moves to the web folder and I propose the web folder actually becomes the root folder of this repository.\r\n\r\nThe folders currently in the root of the repository could be handled as followed:\r\n\r\n- __build__: Move to web/concrete\r\n- __cli__: Move to web/concrete\r\n- __tests__: Move to web/concrete\r\n- __web__: Becomes root folder"},"comment":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/comments/170178380","html_url":"https://github.com/concrete5/concrete5/pull/2087#issuecomment-170178380","issue_url":"https://api.github.com/repos/concrete5/concrete5/issues/2087","id":170178380,"user":{"login":"KorvinSzanto","id":1007419,"avatar_url":"https://avatars.githubusercontent.com/u/1007419?v=3","gravatar_id":"","url":"https://api.github.com/users/KorvinSzanto","html_url":"https://github.com/KorvinSzanto","followers_url":"https://api.github.com/users/KorvinSzanto/followers","following_url":"https://api.github.com/users/KorvinSzanto/following{/other_user}","gists_url":"https://api.github.com/users/KorvinSzanto/gists{/gist_id}","starred_url":"https://api.github.com/users/KorvinSzanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorvinSzanto/subscriptions","organizations_url":"https://api.github.com/users/KorvinSzanto/orgs","repos_url":"https://api.github.com/users/KorvinSzanto/repos","events_url":"https://api.github.com/users/KorvinSzanto/events{/privacy}","received_events_url":"https://api.github.com/users/KorvinSzanto/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T01:58:49Z","updated_at":"2016-01-09T01:58:49Z","body":"Issue #3311 will help with this"}}