{"action":"created","issue":{"url":"https://api.github.com/repos/rollbar/rollbar-php/issues/79","repository_url":"https://api.github.com/repos/rollbar/rollbar-php","labels_url":"https://api.github.com/repos/rollbar/rollbar-php/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/rollbar/rollbar-php/issues/79/comments","events_url":"https://api.github.com/repos/rollbar/rollbar-php/issues/79/events","html_url":"https://github.com/rollbar/rollbar-php/issues/79","id":146815840,"number":79,"title":"Rollbar class not found when using composer","user":{"login":"ytn3rd","id":904737,"avatar_url":"https://avatars.githubusercontent.com/u/904737?v=3","gravatar_id":"","url":"https://api.github.com/users/ytn3rd","html_url":"https://github.com/ytn3rd","followers_url":"https://api.github.com/users/ytn3rd/followers","following_url":"https://api.github.com/users/ytn3rd/following{/other_user}","gists_url":"https://api.github.com/users/ytn3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/ytn3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytn3rd/subscriptions","organizations_url":"https://api.github.com/users/ytn3rd/orgs","repos_url":"https://api.github.com/users/ytn3rd/repos","events_url":"https://api.github.com/users/ytn3rd/events{/privacy}","received_events_url":"https://api.github.com/users/ytn3rd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-08T05:13:03Z","updated_at":"2016-04-26T13:32:53Z","closed_at":"2016-04-22T12:26:22Z","body":"We got rollbar through composer and the file exists. When we try include autoload.php it can not find the Rollbar class.\r\n\r\n> [Fri Apr 08 04:56:06.625637 2016] [:error] [pid 7389] [client xxx.xxx.xxx.xxx:57535] PHP Fatal error:  Class 'Rollbar' not found in /var/www/somepath/htdocs/test.php on line 10\r\n\r\nHowever if we include the rollbar.php file directly it works fine. See example below\r\n\r\n```\r\n// Does not work\r\n//require_once '../vendor/autoload.php';\r\n\r\n// Does owrk\r\nrequire_once '../vendor/rollbar/rollbar/src/rollbar.php';\r\n\r\n$config['access_token'] = '.....';\r\nRollbar::init($config);\r\n```\r\n\r\nI am unsure why as\r\n`\"classmap\": [\"src/rollbar.php\"]`\r\nmatches what some other projects use just fine."},"comment":{"url":"https://api.github.com/repos/rollbar/rollbar-php/issues/comments/214745956","html_url":"https://github.com/rollbar/rollbar-php/issues/79#issuecomment-214745956","issue_url":"https://api.github.com/repos/rollbar/rollbar-php/issues/79","id":214745956,"user":{"login":"Crisfole","id":413237,"avatar_url":"https://avatars.githubusercontent.com/u/413237?v=3","gravatar_id":"","url":"https://api.github.com/users/Crisfole","html_url":"https://github.com/Crisfole","followers_url":"https://api.github.com/users/Crisfole/followers","following_url":"https://api.github.com/users/Crisfole/following{/other_user}","gists_url":"https://api.github.com/users/Crisfole/gists{/gist_id}","starred_url":"https://api.github.com/users/Crisfole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crisfole/subscriptions","organizations_url":"https://api.github.com/users/Crisfole/orgs","repos_url":"https://api.github.com/users/Crisfole/repos","events_url":"https://api.github.com/users/Crisfole/events{/privacy}","received_events_url":"https://api.github.com/users/Crisfole/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T13:32:53Z","updated_at":"2016-04-26T13:32:53Z","body":"@elgeorge2k have you tried removing and re-adding the file?"}}