Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/immobiliare/sentry-php
This project is a fork of official PHP SDK for Sentry to work even with php5.2.
https://github.com/immobiliare/sentry-php
crash-reporting error-monitoring php php52 sentry
Last synced: about 13 hours ago
JSON representation
This project is a fork of official PHP SDK for Sentry to work even with php5.2.
- Host: GitHub
- URL: https://github.com/immobiliare/sentry-php
- Owner: immobiliare
- License: bsd-3-clause
- Fork: true (getsentry/sentry-php)
- Created: 2017-03-23T10:40:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T17:42:29.000Z (almost 3 years ago)
- Last Synced: 2024-09-18T01:11:57.646Z (7 days ago)
- Topics: crash-reporting, error-monitoring, php, php52, sentry
- Language: PHP
- Homepage: https://sentry.io
- Size: 959 KB
- Stars: 17
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# immobiliare/sentry-php
[![Build Status](https://travis-ci.org/immobiliare/sentry-php.svg?branch=master)](https://travis-ci.org/immobiliare/sentry-php)
[![Latest Stable Version](https://poser.pugx.org/immobiliare/sentry-php/v/stable?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)
[![PHP Version Require](http://poser.pugx.org/immobiliare/sentry-php/require/php)](https://packagist.org/packages/immobiliare/sentry-php)
[![Total Downloads](https://poser.pugx.org/immobiliare/sentry-php/downloads?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)
[![Latest Unstable Version](https://poser.pugx.org/immobiliare/sentry-php/v/unstable?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)
[![License](https://poser.pugx.org/immobiliare/sentry-php/license?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)
[![Monthly Downloads](https://poser.pugx.org/immobiliare/sentry-php/d/monthly?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)
[![Daily Downloads](https://poser.pugx.org/immobiliare/sentry-php/d/daily?style=flat-square)](https://packagist.org/packages/immobiliare/sentry-php)This project is a fork of official [PHP SDK v1.7](https://github.com/getsentry/sentry-php) for [Sentry](https://getsentry.com) to work even with php5.2.
## Features
- Automatically report (un)handled exceptions and errors
- Send customized diagnostic data
- Process and sanitize data before sending it over the network## Installation
There are various ways to install the PHP integration for Sentry. The
recommended way is to use [Composer](http://getcomposer.org).$ composer require immobiliare/sentry-php
Alternatively you can manually install it:
1. Download and extract the latest [sentry-php](https://github.com/immobiliare/sentry-php/archive/master.zip>) archive to your PHP project.
2. Require the autoloader in your application:```php
require_once '/path/to/Raven/library/Raven/Autoloader.php';
Raven_Autoloader::register();
```## Usage
```php
// Instantiate a new client with a compatible DSN and install built-in
// handlers
$sentryClient = new Raven_Client('https://e9ebbd88548a441288393c457ec90441:[email protected]/3235');
$sentryClient->install();// Capture an exception
$event_id = $sentryClient->captureException($ex);// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;
```For more information, see the [documentation](https://docs.getsentry.com/hosted/clients/php/).
## Integration with frameworks
Other packages exists to integrate this SDK into the most common frameworks.
- [Symfony](https://github.com/getsentry/sentry-symfony)
- [Laravel](https://github.com/getsentry/sentry-laravel)## Community
- [Documentation](https://docs.getsentry.com/hosted/clients/php/)
- [Bug Tracker](http://github.com/immobiliare/sentry-php/issues)
- [Code](http://github.com/immobiliare/sentry-php)Contributing
------------Dependencies are managed through composer:
```
$ composer install
```Tests can then be run via phpunit:
```
$ vendor/bin/phpunit
```