{"action":"opened","issue":{"url":"https://api.github.com/repos/Baneeishaque/Lottery_Server/issues/1","repository_url":"https://api.github.com/repos/Baneeishaque/Lottery_Server","labels_url":"https://api.github.com/repos/Baneeishaque/Lottery_Server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Baneeishaque/Lottery_Server/issues/1/comments","events_url":"https://api.github.com/repos/Baneeishaque/Lottery_Server/issues/1/events","html_url":"https://github.com/Baneeishaque/Lottery_Server/issues/1","id":256444659,"number":1,"title":"Setup Airbrake for your PHP application","user":{"login":"Baneeishaque","id":6133009,"avatar_url":"https://avatars1.githubusercontent.com/u/6133009?v=4","gravatar_id":"","url":"https://api.github.com/users/Baneeishaque","html_url":"https://github.com/Baneeishaque","followers_url":"https://api.github.com/users/Baneeishaque/followers","following_url":"https://api.github.com/users/Baneeishaque/following{/other_user}","gists_url":"https://api.github.com/users/Baneeishaque/gists{/gist_id}","starred_url":"https://api.github.com/users/Baneeishaque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baneeishaque/subscriptions","organizations_url":"https://api.github.com/users/Baneeishaque/orgs","repos_url":"https://api.github.com/users/Baneeishaque/repos","events_url":"https://api.github.com/users/Baneeishaque/events{/privacy}","received_events_url":"https://api.github.com/users/Baneeishaque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-09T15:06:07Z","updated_at":"2017-09-09T15:06:07Z","closed_at":null,"author_association":"OWNER","body":"### Installation\n\n```bash\ncomposer require airbrake/phpbrake\n```\n\n### Example Usage\n\nThis usage example details how to create a notifier instance, set a global notifier instance, register the error handler, and includes a snippet of some code that would report an exception to Airbrake (You can find your project ID and API KEY with your [project's settings](https://airbrake.io/projects/155580/edit)):\n\n```php\n// Create new Notifier instance.\n$notifier = new Airbrake\\Notifier(array(\n    'projectId' => <Your project ID>,\n    'projectKey' => '<Your project API KEY>',\n));\n\n// Set global notifier instance.\nAirbrake\\Instance::set($notifier);\n\n// Register error and exception handlers.\n$handler = new Airbrake\\ErrorHandler($notifier);\n$handler->register();\n\n// Somewhere in the app...\ntry {\n    throw new Exception('hello from phpbrake');\n} catch(Exception $e) {\n    Airbrake\\Instance::notify($e);\n}\n```\n\n### Going further\nCheck out our official GitHub repo for info on additional features like:\n- [Monolog integration](https://github.com/airbrake/phpbrake#monolog-integration)\n- [Adding custom data to your errors](https://github.com/airbrake/phpbrake#adding-custom-data-to-the-notice)\n- [Filtering specific errors](https://github.com/airbrake/phpbrake#ignoring-specific-exceptions)\n- [Extra config options](https://github.com/airbrake/phpbrake#extra-configuration-options)\n"}}
{"actor":{"display_login":"Baneeishaque"}}