{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-php/issues/124","labels_url":"https://api.github.com/repos/stripe/stripe-php/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-php/issues/124/comments","events_url":"https://api.github.com/repos/stripe/stripe-php/issues/124/events","html_url":"https://github.com/stripe/stripe-php/issues/124","id":54064419,"number":124,"title":"Refactor to not use static method calls","user":{"login":"atrauzzi","id":115199,"avatar_url":"https://avatars.githubusercontent.com/u/115199?v=3","gravatar_id":"","url":"https://api.github.com/users/atrauzzi","html_url":"https://github.com/atrauzzi","followers_url":"https://api.github.com/users/atrauzzi/followers","following_url":"https://api.github.com/users/atrauzzi/following{/other_user}","gists_url":"https://api.github.com/users/atrauzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/atrauzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrauzzi/subscriptions","organizations_url":"https://api.github.com/users/atrauzzi/orgs","repos_url":"https://api.github.com/users/atrauzzi/repos","events_url":"https://api.github.com/users/atrauzzi/events{/privacy}","received_events_url":"https://api.github.com/users/atrauzzi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stripe/stripe-php/labels/future","name":"future","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-12T15:14:41Z","updated_at":"2015-12-18T13:55:26Z","closed_at":null,"body":"In many applications (especially where dependency injection is used), it's preferable to not have libraries that rely on global state.\r\n\r\nThe Stripe PHP library currently takes the approach that every call is done via a static method.  While it's fine to retain this as an option, it would be nice if actual objects could be leveraged."},"comment":{"url":"https://api.github.com/repos/stripe/stripe-php/issues/comments/165783582","html_url":"https://github.com/stripe/stripe-php/issues/124#issuecomment-165783582","issue_url":"https://api.github.com/repos/stripe/stripe-php/issues/124","id":165783582,"user":{"login":"KostyaChoporov","id":1584506,"avatar_url":"https://avatars.githubusercontent.com/u/1584506?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaChoporov","html_url":"https://github.com/KostyaChoporov","followers_url":"https://api.github.com/users/KostyaChoporov/followers","following_url":"https://api.github.com/users/KostyaChoporov/following{/other_user}","gists_url":"https://api.github.com/users/KostyaChoporov/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaChoporov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaChoporov/subscriptions","organizations_url":"https://api.github.com/users/KostyaChoporov/orgs","repos_url":"https://api.github.com/users/KostyaChoporov/repos","events_url":"https://api.github.com/users/KostyaChoporov/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaChoporov/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T13:55:25Z","updated_at":"2015-12-18T13:55:25Z","body":"Also will be great to make some event solution. For example I want log all requests, and i don't know hot to implement it without wrapping original requests :cry: "}}