{"action":"opened","number":197,"pull_request":{"url":"https://api.github.com/repos/getsentry/raven-php/pulls/197","id":32606203,"html_url":"https://github.com/getsentry/raven-php/pull/197","diff_url":"https://github.com/getsentry/raven-php/pull/197.diff","patch_url":"https://github.com/getsentry/raven-php/pull/197.patch","issue_url":"https://api.github.com/repos/getsentry/raven-php/issues/197","number":197,"state":"open","locked":false,"title":"[1.0] Move to PSR-4 for version 1.0 and drop PHP 5.2 support","user":{"login":"ameliaikeda","id":1074190,"avatar_url":"https://avatars.githubusercontent.com/u/1074190?v=3","gravatar_id":"","url":"https://api.github.com/users/ameliaikeda","html_url":"https://github.com/ameliaikeda","followers_url":"https://api.github.com/users/ameliaikeda/followers","following_url":"https://api.github.com/users/ameliaikeda/following{/other_user}","gists_url":"https://api.github.com/users/ameliaikeda/gists{/gist_id}","starred_url":"https://api.github.com/users/ameliaikeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameliaikeda/subscriptions","organizations_url":"https://api.github.com/users/ameliaikeda/orgs","repos_url":"https://api.github.com/users/ameliaikeda/repos","events_url":"https://api.github.com/users/ameliaikeda/events{/privacy}","received_events_url":"https://api.github.com/users/ameliaikeda/received_events","type":"User","site_admin":false},"body":"Making the pull request now (despite barely even being started) just for some kind of review process as I go. I can also make a public todo list of sorts.\r\n\r\nThis pull request:\r\n\r\n- [ ] Removes PHP 5.2 hacks\r\n  - [x] Removed Raven_Compat entirely\r\n  - [x] Refactored Raven_Util into Raven\\get\r\n  - [x] Use composer for file loading exclusively\r\n  - [ ] Other unseen hacks are todo\r\n- [x] Moves to PHPUnit 4.5\r\n- [ ] Uses interfaces for all major classes that we'd like to test (so we can mock them)\r\n  - [ ] `Raven\\Contracts\\Client`\r\n  - [ ] `Raven\\Contracts\\Handler` (CurlHandler, GuzzleHandler, etc)\r\n- [ ] Uses docblocks literally everywhere (think of the IDEs ;_;)\r\n- [ ] Uses PSR-1, PSR-2 and PSR-4\r\n\r\nI also want to allow for other methods of transport to be used. For example, I could pull in `raven/raven-guzzle` (etc), And use the Guzzlehttp library instead of `Raven\\Handlers\\CurlHandler`.\r\n\r\nThis is a work in progress. Feel free to completely rip anything apart in the comments or on diffs.","created_at":"2015-04-03T18:21:22Z","updated_at":"2015-04-03T18:21:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6e407989eecce1a7a07290ed1e3611f2b9d8045","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/raven-php/pulls/197/commits","review_comments_url":"https://api.github.com/repos/getsentry/raven-php/pulls/197/comments","review_comment_url":"https://api.github.com/repos/getsentry/raven-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/raven-php/issues/197/comments","statuses_url":"https://api.github.com/repos/getsentry/raven-php/statuses/4dfad0700952718f448f3a73470250112bf4d029","head":{"label":"ameliaikeda:master","ref":"master","sha":"4dfad0700952718f448f3a73470250112bf4d029","user":{"login":"ameliaikeda","id":1074190,"avatar_url":"https://avatars.githubusercontent.com/u/1074190?v=3","gravatar_id":"","url":"https://api.github.com/users/ameliaikeda","html_url":"https://github.com/ameliaikeda","followers_url":"https://api.github.com/users/ameliaikeda/followers","following_url":"https://api.github.com/users/ameliaikeda/following{/other_user}","gists_url":"https://api.github.com/users/ameliaikeda/gists{/gist_id}","starred_url":"https://api.github.com/users/ameliaikeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameliaikeda/subscriptions","organizations_url":"https://api.github.com/users/ameliaikeda/orgs","repos_url":"https://api.github.com/users/ameliaikeda/repos","events_url":"https://api.github.com/users/ameliaikeda/events{/privacy}","received_events_url":"https://api.github.com/users/ameliaikeda/received_events","type":"User","site_admin":false},"repo":{"id":33374326,"name":"raven-php","full_name":"ameliaikeda/raven-php","owner":{"login":"ameliaikeda","id":1074190,"avatar_url":"https://avatars.githubusercontent.com/u/1074190?v=3","gravatar_id":"","url":"https://api.github.com/users/ameliaikeda","html_url":"https://github.com/ameliaikeda","followers_url":"https://api.github.com/users/ameliaikeda/followers","following_url":"https://api.github.com/users/ameliaikeda/following{/other_user}","gists_url":"https://api.github.com/users/ameliaikeda/gists{/gist_id}","starred_url":"https://api.github.com/users/ameliaikeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameliaikeda/subscriptions","organizations_url":"https://api.github.com/users/ameliaikeda/orgs","repos_url":"https://api.github.com/users/ameliaikeda/repos","events_url":"https://api.github.com/users/ameliaikeda/events{/privacy}","received_events_url":"https://api.github.com/users/ameliaikeda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ameliaikeda/raven-php","description":"Raven is a PHP client for Sentry (getsentry.com)","fork":true,"url":"https://api.github.com/repos/ameliaikeda/raven-php","forks_url":"https://api.github.com/repos/ameliaikeda/raven-php/forks","keys_url":"https://api.github.com/repos/ameliaikeda/raven-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ameliaikeda/raven-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ameliaikeda/raven-php/teams","hooks_url":"https://api.github.com/repos/ameliaikeda/raven-php/hooks","issue_events_url":"https://api.github.com/repos/ameliaikeda/raven-php/issues/events{/number}","events_url":"https://api.github.com/repos/ameliaikeda/raven-php/events","assignees_url":"https://api.github.com/repos/ameliaikeda/raven-php/assignees{/user}","branches_url":"https://api.github.com/repos/ameliaikeda/raven-php/branches{/branch}","tags_url":"https://api.github.com/repos/ameliaikeda/raven-php/tags","blobs_url":"https://api.github.com/repos/ameliaikeda/raven-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ameliaikeda/raven-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ameliaikeda/raven-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/ameliaikeda/raven-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ameliaikeda/raven-php/statuses/{sha}","languages_url":"https://api.github.com/repos/ameliaikeda/raven-php/languages","stargazers_url":"https://api.github.com/repos/ameliaikeda/raven-php/stargazers","contributors_url":"https://api.github.com/repos/ameliaikeda/raven-php/contributors","subscribers_url":"https://api.github.com/repos/ameliaikeda/raven-php/subscribers","subscription_url":"https://api.github.com/repos/ameliaikeda/raven-php/subscription","commits_url":"https://api.github.com/repos/ameliaikeda/raven-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/ameliaikeda/raven-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/ameliaikeda/raven-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/ameliaikeda/raven-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/ameliaikeda/raven-php/contents/{+path}","compare_url":"https://api.github.com/repos/ameliaikeda/raven-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ameliaikeda/raven-php/merges","archive_url":"https://api.github.com/repos/ameliaikeda/raven-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ameliaikeda/raven-php/downloads","issues_url":"https://api.github.com/repos/ameliaikeda/raven-php/issues{/number}","pulls_url":"https://api.github.com/repos/ameliaikeda/raven-php/pulls{/number}","milestones_url":"https://api.github.com/repos/ameliaikeda/raven-php/milestones{/number}","notifications_url":"https://api.github.com/repos/ameliaikeda/raven-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ameliaikeda/raven-php/labels{/name}","releases_url":"https://api.github.com/repos/ameliaikeda/raven-php/releases{/id}","created_at":"2015-04-03T17:26:33Z","updated_at":"2015-04-03T18:10:57Z","pushed_at":"2015-04-03T18:10:56Z","git_url":"git://github.com/ameliaikeda/raven-php.git","ssh_url":"git@github.com:ameliaikeda/raven-php.git","clone_url":"https://github.com/ameliaikeda/raven-php.git","svn_url":"https://github.com/ameliaikeda/raven-php","homepage":"https://www.getsentry.com","size":1875,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"4b51e41c5d653dd27a8b2ce10ee8dc19425ebd0f","user":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":3244931,"name":"raven-php","full_name":"getsentry/raven-php","owner":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getsentry/raven-php","description":"Raven is a PHP client for Sentry (getsentry.com)","fork":false,"url":"https://api.github.com/repos/getsentry/raven-php","forks_url":"https://api.github.com/repos/getsentry/raven-php/forks","keys_url":"https://api.github.com/repos/getsentry/raven-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/raven-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/raven-php/teams","hooks_url":"https://api.github.com/repos/getsentry/raven-php/hooks","issue_events_url":"https://api.github.com/repos/getsentry/raven-php/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/raven-php/events","assignees_url":"https://api.github.com/repos/getsentry/raven-php/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/raven-php/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/raven-php/tags","blobs_url":"https://api.github.com/repos/getsentry/raven-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/raven-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/raven-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/raven-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/raven-php/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/raven-php/languages","stargazers_url":"https://api.github.com/repos/getsentry/raven-php/stargazers","contributors_url":"https://api.github.com/repos/getsentry/raven-php/contributors","subscribers_url":"https://api.github.com/repos/getsentry/raven-php/subscribers","subscription_url":"https://api.github.com/repos/getsentry/raven-php/subscription","commits_url":"https://api.github.com/repos/getsentry/raven-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/raven-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/raven-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/raven-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/raven-php/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/raven-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/raven-php/merges","archive_url":"https://api.github.com/repos/getsentry/raven-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/raven-php/downloads","issues_url":"https://api.github.com/repos/getsentry/raven-php/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/raven-php/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/raven-php/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/raven-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/raven-php/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/raven-php/releases{/id}","created_at":"2012-01-23T07:34:48Z","updated_at":"2015-04-02T19:24:53Z","pushed_at":"2015-04-03T18:21:22Z","git_url":"git://github.com/getsentry/raven-php.git","ssh_url":"git@github.com:getsentry/raven-php.git","clone_url":"https://github.com/getsentry/raven-php.git","svn_url":"https://github.com/getsentry/raven-php","homepage":"https://www.getsentry.com","size":1875,"stargazers_count":319,"watchers_count":319,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":36,"forks":117,"open_issues":36,"watchers":319,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/raven-php/pulls/197"},"html":{"href":"https://github.com/getsentry/raven-php/pull/197"},"issue":{"href":"https://api.github.com/repos/getsentry/raven-php/issues/197"},"comments":{"href":"https://api.github.com/repos/getsentry/raven-php/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/raven-php/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/raven-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/raven-php/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/raven-php/statuses/4dfad0700952718f448f3a73470250112bf4d029"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":70,"deletions":194,"changed_files":14}}