{"action":"created","issue":{"url":"https://api.github.com/repos/payplug/payplug-php/issues/2","labels_url":"https://api.github.com/repos/payplug/payplug-php/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/payplug/payplug-php/issues/2/comments","events_url":"https://api.github.com/repos/payplug/payplug-php/issues/2/events","html_url":"https://github.com/payplug/payplug-php/pull/2","id":115036431,"number":2,"title":"Update composer.json autoload","user":{"login":"johnnymallie","id":13215131,"avatar_url":"https://avatars.githubusercontent.com/u/13215131?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnymallie","html_url":"https://github.com/johnnymallie","followers_url":"https://api.github.com/users/johnnymallie/followers","following_url":"https://api.github.com/users/johnnymallie/following{/other_user}","gists_url":"https://api.github.com/users/johnnymallie/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnymallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnymallie/subscriptions","organizations_url":"https://api.github.com/users/johnnymallie/orgs","repos_url":"https://api.github.com/users/johnnymallie/repos","events_url":"https://api.github.com/users/johnnymallie/events{/privacy}","received_events_url":"https://api.github.com/users/johnnymallie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T11:51:44Z","updated_at":"2015-11-16T08:24:50Z","closed_at":"2015-11-16T08:24:50Z","pull_request":{"url":"https://api.github.com/repos/payplug/payplug-php/pulls/2","html_url":"https://github.com/payplug/payplug-php/pull/2","diff_url":"https://github.com/payplug/payplug-php/pull/2.diff","patch_url":"https://github.com/payplug/payplug-php/pull/2.patch"},"body":"Hi ! I'm web developper using this library in my custom payment module using Composer + Zend Framework 2. In Zend Framework 2 , I had issues with the autoload, since I don't want to use the require_once function.\r\n\r\nThis works now for example : \r\n\r\n```php\r\nuse Payplug\\Payplug;\r\n\r\n//then in my php file : \r\n\r\nPayplug::setSecretKey($this->config['secretKey']);\r\n```\r\n\r\nI don't really know if this could have any other impact, I'm not an expert + that's maybe not the only way to deal with it - fix it, but it worked for me ( contact me if more details is needed )\r\n\r\nI've squashes multiples commit, I don't use git that often. What I did is basically : 1 class per file ( PSR-0 Mandatory ). Sadly , I can't really test everything. You can contact me ( in english or french ) for more information ...\r\n"},"comment":{"url":"https://api.github.com/repos/payplug/payplug-php/issues/comments/156953779","html_url":"https://github.com/payplug/payplug-php/pull/2#issuecomment-156953779","issue_url":"https://api.github.com/repos/payplug/payplug-php/issues/2","id":156953779,"user":{"login":"johnnymallie","id":13215131,"avatar_url":"https://avatars.githubusercontent.com/u/13215131?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnymallie","html_url":"https://github.com/johnnymallie","followers_url":"https://api.github.com/users/johnnymallie/followers","following_url":"https://api.github.com/users/johnnymallie/following{/other_user}","gists_url":"https://api.github.com/users/johnnymallie/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnymallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnymallie/subscriptions","organizations_url":"https://api.github.com/users/johnnymallie/orgs","repos_url":"https://api.github.com/users/johnnymallie/repos","events_url":"https://api.github.com/users/johnnymallie/events{/privacy}","received_events_url":"https://api.github.com/users/johnnymallie/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T08:24:50Z","updated_at":"2015-11-16T08:24:50Z","body":"Hi ! I've updated my version and 2.2 looks fine for me by now.\r\n\r\nThank you , I'll close my PR then :+1: "}}