{"action":"created","issue":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/409","labels_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/409/comments","events_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/409/events","html_url":"https://github.com/serbanghita/Mobile-Detect/issues/409","id":85929443,"number":409,"title":"PSR-7 Compatibility?","user":{"login":"mtymek","id":777893,"avatar_url":"https://avatars.githubusercontent.com/u/777893?v=3","gravatar_id":"","url":"https://api.github.com/users/mtymek","html_url":"https://github.com/mtymek","followers_url":"https://api.github.com/users/mtymek/followers","following_url":"https://api.github.com/users/mtymek/following{/other_user}","gists_url":"https://api.github.com/users/mtymek/gists{/gist_id}","starred_url":"https://api.github.com/users/mtymek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtymek/subscriptions","organizations_url":"https://api.github.com/users/mtymek/orgs","repos_url":"https://api.github.com/users/mtymek/repos","events_url":"https://api.github.com/users/mtymek/events{/privacy}","received_events_url":"https://api.github.com/users/mtymek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/milestones/3","html_url":"https://github.com/serbanghita/Mobile-Detect/milestones/3.0.0","labels_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/milestones/3/labels","id":214235,"number":3,"title":"3.0.0","description":"The new version that will support compatibility with 2.x, array with devices details (including model name), device/os/browser version, browser grading utility, separate JSON regex.","creator":{"login":"serbanghita","id":1106849,"avatar_url":"https://avatars.githubusercontent.com/u/1106849?v=3","gravatar_id":"","url":"https://api.github.com/users/serbanghita","html_url":"https://github.com/serbanghita","followers_url":"https://api.github.com/users/serbanghita/followers","following_url":"https://api.github.com/users/serbanghita/following{/other_user}","gists_url":"https://api.github.com/users/serbanghita/gists{/gist_id}","starred_url":"https://api.github.com/users/serbanghita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbanghita/subscriptions","organizations_url":"https://api.github.com/users/serbanghita/orgs","repos_url":"https://api.github.com/users/serbanghita/repos","events_url":"https://api.github.com/users/serbanghita/events{/privacy}","received_events_url":"https://api.github.com/users/serbanghita/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":6,"state":"open","created_at":"2012-11-16T14:32:20Z","updated_at":"2015-07-02T11:59:02Z","due_on":"2015-08-30T21:00:00Z","closed_at":null},"comments":5,"created_at":"2015-06-07T19:02:53Z","updated_at":"2015-09-09T20:50:52Z","closed_at":null,"body":"PSR-7 is out, and its adaption has started. Are there plans to migrate `Mobile_Detect` to support this standard, perhaps since next major version release? There are at least two benefits:\r\n\r\n* PSR-7 apps could consume this library directly, making it easier to use and test\r\n* PSR-7 library would take care about header parsing, reducing complexity of `Mobile_Detect` class (good step towards \"single responsibility principle\")\r\n\r\nWhile this reasons may be not so important in current state, improving interoperability is definitely something worth pursuing.\r\nObviously this would create a BC break, but impact could be reduced by adding compatibility class.\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/comments/139041840","html_url":"https://github.com/serbanghita/Mobile-Detect/issues/409#issuecomment-139041840","issue_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/409","id":139041840,"user":{"login":"nicktacular","id":810546,"avatar_url":"https://avatars.githubusercontent.com/u/810546?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktacular","html_url":"https://github.com/nicktacular","followers_url":"https://api.github.com/users/nicktacular/followers","following_url":"https://api.github.com/users/nicktacular/following{/other_user}","gists_url":"https://api.github.com/users/nicktacular/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktacular/subscriptions","organizations_url":"https://api.github.com/users/nicktacular/orgs","repos_url":"https://api.github.com/users/nicktacular/repos","events_url":"https://api.github.com/users/nicktacular/events{/privacy}","received_events_url":"https://api.github.com/users/nicktacular/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T20:50:52Z","updated_at":"2015-09-09T20:50:52Z","body":"> PSR-7 library would take care about header parsing\r\n\r\nAlthough my commit didn't fully address this point. The problem here is that we would need to force users to also add some library for HTTP parsing that implemented PSR7. I think this is a good first step. Thoughts?"}}