{"action":"created","issue":{"url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/12","repository_url":"https://api.github.com/repos/LinxHQ/linxbooks","labels_url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/12/comments","events_url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/12/events","html_url":"https://github.com/LinxHQ/linxbooks/pull/12","id":144930948,"number":12,"title":"[WIP] Use composer and change directory structure.","user":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-31T15:15:51Z","updated_at":"2016-04-06T06:02:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/LinxHQ/linxbooks/pulls/12","html_url":"https://github.com/LinxHQ/linxbooks/pull/12","diff_url":"https://github.com/LinxHQ/linxbooks/pull/12.diff","patch_url":"https://github.com/LinxHQ/linxbooks/pull/12.patch"},"body":"[WIP] Work In Progress, not yet ready for merge!\r\n\r\nThis PR aims to do 2 things:\r\n1. Remove dependencies from the repository and use composer instead.\r\n2. Change the directory structure so it is easier to secure.\r\n\r\nNew proposed directory structure:\r\n- root (containing LICENSE, README and composer.json)\r\n-- public (containing entry PHP scripts, all js / image assets that do not need to be protected).\r\n-- protected (containing project code)\r\n-- protected/vendor (containing all dependencies\r\n\r\nThis allows anyone to simply set the webroot to public and it will work properly and securely."},"comment":{"url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/comments/206131420","html_url":"https://github.com/LinxHQ/linxbooks/pull/12#issuecomment-206131420","issue_url":"https://api.github.com/repos/LinxHQ/linxbooks/issues/12","id":206131420,"user":{"login":"SamMousa","id":547021,"avatar_url":"https://avatars.githubusercontent.com/u/547021?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMousa","html_url":"https://github.com/SamMousa","followers_url":"https://api.github.com/users/SamMousa/followers","following_url":"https://api.github.com/users/SamMousa/following{/other_user}","gists_url":"https://api.github.com/users/SamMousa/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMousa/subscriptions","organizations_url":"https://api.github.com/users/SamMousa/orgs","repos_url":"https://api.github.com/users/SamMousa/repos","events_url":"https://api.github.com/users/SamMousa/events{/privacy}","received_events_url":"https://api.github.com/users/SamMousa/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T06:02:30Z","updated_at":"2016-04-06T06:02:30Z","body":"Its not done yet wip --> work in progress\nOn Apr 6, 2016 7:08 AM, \"Joseph Pham Ngoc Cuong\" <notifications@github.com>\nwrote:\n\n> @nhuhtlb <https://github.com/nhuhtlb> @nhungpham\n> <https://github.com/nhungpham> can you quickly review this, if ok then we\n> can merge.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/LinxHQ/linxbooks/pull/12#issuecomment-206119640>\n>\n"}}