{"action":"opened","number":51,"pull_request":{"url":"https://api.github.com/repos/php-pm/php-pm/pulls/51","id":45507924,"html_url":"https://github.com/php-pm/php-pm/pull/51","diff_url":"https://github.com/php-pm/php-pm/pull/51.diff","patch_url":"https://github.com/php-pm/php-pm/pull/51.patch","issue_url":"https://api.github.com/repos/php-pm/php-pm/issues/51","number":51,"state":"open","locked":false,"title":"move server interfaces to a separate repo","user":{"login":"matthew-james","id":9440455,"avatar_url":"https://avatars.githubusercontent.com/u/9440455?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-james","html_url":"https://github.com/matthew-james","followers_url":"https://api.github.com/users/matthew-james/followers","following_url":"https://api.github.com/users/matthew-james/following{/other_user}","gists_url":"https://api.github.com/users/matthew-james/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-james/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-james/subscriptions","organizations_url":"https://api.github.com/users/matthew-james/orgs","repos_url":"https://api.github.com/users/matthew-james/repos","events_url":"https://api.github.com/users/matthew-james/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-james/received_events","type":"User","site_admin":false},"body":"This PR is to propose moving the interfaces to  a separate repo and composer package.\r\n\r\nCurrently php-pm consists of 2 things:\r\n- a server interface for frameworks to interact with reactphp/http\r\n- a process manager\r\n\r\nSplitting the interfaces would allow using the bridge and bootstrap files with single process react servers as well as php-pm.\r\n\r\nThis would also make it easier to develop the adapters and would allow solving [this issue](https://github.com/php-pm/php-pm-httpkernel/pull/10) without pulling the entire php-pm library in.\r\n\r\nTodo:\r\n\r\n- [x] Create a repo for the interfaces - https://github.com/matthew-james/php-pm-interfaces\r\n- [ ] Create an official php-pm repo for the interfaces\r\n- [ ] Update the lock file for php-pm with changes from this PR\r\n- [ ] Update the httpkernel adapter\r\n    - I have a [branch](https://github.com/matthew-james/php-pm-httpkernel/tree/server-interfaces) but I can't update the lockfile until the repo is created\r\n- [ ] Update the zend adapter","created_at":"2015-09-21T00:39:13Z","updated_at":"2015-09-21T00:39:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/php-pm/php-pm/pulls/51/commits","review_comments_url":"https://api.github.com/repos/php-pm/php-pm/pulls/51/comments","review_comment_url":"https://api.github.com/repos/php-pm/php-pm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php-pm/php-pm/issues/51/comments","statuses_url":"https://api.github.com/repos/php-pm/php-pm/statuses/887efc12513586c59725d53308a24abc54c39c45","head":{"label":"matthew-james:server-interfaces","ref":"server-interfaces","sha":"887efc12513586c59725d53308a24abc54c39c45","user":{"login":"matthew-james","id":9440455,"avatar_url":"https://avatars.githubusercontent.com/u/9440455?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-james","html_url":"https://github.com/matthew-james","followers_url":"https://api.github.com/users/matthew-james/followers","following_url":"https://api.github.com/users/matthew-james/following{/other_user}","gists_url":"https://api.github.com/users/matthew-james/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-james/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-james/subscriptions","organizations_url":"https://api.github.com/users/matthew-james/orgs","repos_url":"https://api.github.com/users/matthew-james/repos","events_url":"https://api.github.com/users/matthew-james/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-james/received_events","type":"User","site_admin":false},"repo":{"id":42833170,"name":"php-pm","full_name":"matthew-james/php-pm","owner":{"login":"matthew-james","id":9440455,"avatar_url":"https://avatars.githubusercontent.com/u/9440455?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-james","html_url":"https://github.com/matthew-james","followers_url":"https://api.github.com/users/matthew-james/followers","following_url":"https://api.github.com/users/matthew-james/following{/other_user}","gists_url":"https://api.github.com/users/matthew-james/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-james/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-james/subscriptions","organizations_url":"https://api.github.com/users/matthew-james/orgs","repos_url":"https://api.github.com/users/matthew-james/repos","events_url":"https://api.github.com/users/matthew-james/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-james/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthew-james/php-pm","description":"CLI process manager for modern Request-Response PHP Applications - with a builtin load-balancer.","fork":true,"url":"https://api.github.com/repos/matthew-james/php-pm","forks_url":"https://api.github.com/repos/matthew-james/php-pm/forks","keys_url":"https://api.github.com/repos/matthew-james/php-pm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthew-james/php-pm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthew-james/php-pm/teams","hooks_url":"https://api.github.com/repos/matthew-james/php-pm/hooks","issue_events_url":"https://api.github.com/repos/matthew-james/php-pm/issues/events{/number}","events_url":"https://api.github.com/repos/matthew-james/php-pm/events","assignees_url":"https://api.github.com/repos/matthew-james/php-pm/assignees{/user}","branches_url":"https://api.github.com/repos/matthew-james/php-pm/branches{/branch}","tags_url":"https://api.github.com/repos/matthew-james/php-pm/tags","blobs_url":"https://api.github.com/repos/matthew-james/php-pm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthew-james/php-pm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthew-james/php-pm/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthew-james/php-pm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthew-james/php-pm/statuses/{sha}","languages_url":"https://api.github.com/repos/matthew-james/php-pm/languages","stargazers_url":"https://api.github.com/repos/matthew-james/php-pm/stargazers","contributors_url":"https://api.github.com/repos/matthew-james/php-pm/contributors","subscribers_url":"https://api.github.com/repos/matthew-james/php-pm/subscribers","subscription_url":"https://api.github.com/repos/matthew-james/php-pm/subscription","commits_url":"https://api.github.com/repos/matthew-james/php-pm/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthew-james/php-pm/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthew-james/php-pm/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthew-james/php-pm/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthew-james/php-pm/contents/{+path}","compare_url":"https://api.github.com/repos/matthew-james/php-pm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthew-james/php-pm/merges","archive_url":"https://api.github.com/repos/matthew-james/php-pm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthew-james/php-pm/downloads","issues_url":"https://api.github.com/repos/matthew-james/php-pm/issues{/number}","pulls_url":"https://api.github.com/repos/matthew-james/php-pm/pulls{/number}","milestones_url":"https://api.github.com/repos/matthew-james/php-pm/milestones{/number}","notifications_url":"https://api.github.com/repos/matthew-james/php-pm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthew-james/php-pm/labels{/name}","releases_url":"https://api.github.com/repos/matthew-james/php-pm/releases{/id}","created_at":"2015-09-20T23:09:12Z","updated_at":"2015-09-20T23:09:12Z","pushed_at":"2015-09-20T23:28:03Z","git_url":"git://github.com/matthew-james/php-pm.git","ssh_url":"git@github.com:matthew-james/php-pm.git","clone_url":"https://github.com/matthew-james/php-pm.git","svn_url":"https://github.com/matthew-james/php-pm","homepage":"","size":280,"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":"php-pm:master","ref":"master","sha":"ef1089a22c269805f5ee294407e21cc0bee8c4f0","user":{"login":"php-pm","id":11821812,"avatar_url":"https://avatars.githubusercontent.com/u/11821812?v=3","gravatar_id":"","url":"https://api.github.com/users/php-pm","html_url":"https://github.com/php-pm","followers_url":"https://api.github.com/users/php-pm/followers","following_url":"https://api.github.com/users/php-pm/following{/other_user}","gists_url":"https://api.github.com/users/php-pm/gists{/gist_id}","starred_url":"https://api.github.com/users/php-pm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-pm/subscriptions","organizations_url":"https://api.github.com/users/php-pm/orgs","repos_url":"https://api.github.com/users/php-pm/repos","events_url":"https://api.github.com/users/php-pm/events{/privacy}","received_events_url":"https://api.github.com/users/php-pm/received_events","type":"Organization","site_admin":false},"repo":{"id":17154573,"name":"php-pm","full_name":"php-pm/php-pm","owner":{"login":"php-pm","id":11821812,"avatar_url":"https://avatars.githubusercontent.com/u/11821812?v=3","gravatar_id":"","url":"https://api.github.com/users/php-pm","html_url":"https://github.com/php-pm","followers_url":"https://api.github.com/users/php-pm/followers","following_url":"https://api.github.com/users/php-pm/following{/other_user}","gists_url":"https://api.github.com/users/php-pm/gists{/gist_id}","starred_url":"https://api.github.com/users/php-pm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-pm/subscriptions","organizations_url":"https://api.github.com/users/php-pm/orgs","repos_url":"https://api.github.com/users/php-pm/repos","events_url":"https://api.github.com/users/php-pm/events{/privacy}","received_events_url":"https://api.github.com/users/php-pm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/php-pm/php-pm","description":"CLI process manager for modern Request-Response PHP Applications - with a builtin load-balancer.","fork":false,"url":"https://api.github.com/repos/php-pm/php-pm","forks_url":"https://api.github.com/repos/php-pm/php-pm/forks","keys_url":"https://api.github.com/repos/php-pm/php-pm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php-pm/php-pm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php-pm/php-pm/teams","hooks_url":"https://api.github.com/repos/php-pm/php-pm/hooks","issue_events_url":"https://api.github.com/repos/php-pm/php-pm/issues/events{/number}","events_url":"https://api.github.com/repos/php-pm/php-pm/events","assignees_url":"https://api.github.com/repos/php-pm/php-pm/assignees{/user}","branches_url":"https://api.github.com/repos/php-pm/php-pm/branches{/branch}","tags_url":"https://api.github.com/repos/php-pm/php-pm/tags","blobs_url":"https://api.github.com/repos/php-pm/php-pm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php-pm/php-pm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php-pm/php-pm/git/refs{/sha}","trees_url":"https://api.github.com/repos/php-pm/php-pm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php-pm/php-pm/statuses/{sha}","languages_url":"https://api.github.com/repos/php-pm/php-pm/languages","stargazers_url":"https://api.github.com/repos/php-pm/php-pm/stargazers","contributors_url":"https://api.github.com/repos/php-pm/php-pm/contributors","subscribers_url":"https://api.github.com/repos/php-pm/php-pm/subscribers","subscription_url":"https://api.github.com/repos/php-pm/php-pm/subscription","commits_url":"https://api.github.com/repos/php-pm/php-pm/commits{/sha}","git_commits_url":"https://api.github.com/repos/php-pm/php-pm/git/commits{/sha}","comments_url":"https://api.github.com/repos/php-pm/php-pm/comments{/number}","issue_comment_url":"https://api.github.com/repos/php-pm/php-pm/issues/comments{/number}","contents_url":"https://api.github.com/repos/php-pm/php-pm/contents/{+path}","compare_url":"https://api.github.com/repos/php-pm/php-pm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php-pm/php-pm/merges","archive_url":"https://api.github.com/repos/php-pm/php-pm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php-pm/php-pm/downloads","issues_url":"https://api.github.com/repos/php-pm/php-pm/issues{/number}","pulls_url":"https://api.github.com/repos/php-pm/php-pm/pulls{/number}","milestones_url":"https://api.github.com/repos/php-pm/php-pm/milestones{/number}","notifications_url":"https://api.github.com/repos/php-pm/php-pm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php-pm/php-pm/labels{/name}","releases_url":"https://api.github.com/repos/php-pm/php-pm/releases{/id}","created_at":"2014-02-24T23:25:40Z","updated_at":"2015-09-19T04:21:30Z","pushed_at":"2015-08-26T13:57:58Z","git_url":"git://github.com/php-pm/php-pm.git","ssh_url":"git@github.com:php-pm/php-pm.git","clone_url":"https://github.com/php-pm/php-pm.git","svn_url":"https://github.com/php-pm/php-pm","homepage":"","size":611,"stargazers_count":468,"watchers_count":468,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":11,"forks":43,"open_issues":11,"watchers":468,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php-pm/php-pm/pulls/51"},"html":{"href":"https://github.com/php-pm/php-pm/pull/51"},"issue":{"href":"https://api.github.com/repos/php-pm/php-pm/issues/51"},"comments":{"href":"https://api.github.com/repos/php-pm/php-pm/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/php-pm/php-pm/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/php-pm/php-pm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php-pm/php-pm/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/php-pm/php-pm/statuses/887efc12513586c59725d53308a24abc54c39c45"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":41,"changed_files":3}}