Code Monkey home page Code Monkey logo

sentry-php's Introduction

Sentry for PHP

Build Status Total Downloads Monthly Downloads Latest Stable Version License Scrutinizer Code Quality Code Coverage

The Sentry PHP error reporter tracks errors and exceptions that happen during the execution of your application and provides instant notification with detailed informations needed to prioritize, identify, reproduce and fix each issue. Learn more about automatic PHP error reporting with Sentry.

Features

  • Automatically report (un)handled exceptions and errors
  • Send customized diagnostic data
  • Process and sanitize data before sending it over the network

Usage

// Instantiate a new client with a compatible DSN and install built-in
// handlers
$client = (new Raven_Client('http://[email protected]/1'))->install();

// Capture an exception
$event_id = $client->captureException($ex);

// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;

For more information, see our documentation.

Integration with frameworks

Other packages exists to integrate this SDK into the most common frameworks.

Official integrations

The following integrations are fully supported and maintained by the Sentry team.

3rd party integrations

The following integrations are available and maintained by members of the Sentry community.

Community

Contributing

Dependencies are managed through composer:

$ composer install

Tests can then be run via phpunit:

$ vendor/bin/phpunit

Tagging a Release

  1. Make sure CHANGES is up to date (add the release date) and master is green.

  2. Create a new branch for the minor version (if not present):

$ git checkout -b releases/1.10.x
  1. Update the hardcoded version tag in Client.php:
class Raven_Client
{
    const VERSION = '1.10.0';
}
  1. Commit the change:
$ git commit -a -m "1.10.0"
  1. Tag the branch:
git tag 1.10.0
  1. Push the tag:
git push --tags
  1. Switch back to master:
git checkout master
  1. Add the next minor release to the CHANGES file:
## 1.11.0 (unreleased)
  1. Update the version in Client.php:
class Raven_Client
{
    const VERSION = '1.11.x-dev';
}
  1. Lastly, update the composer version in composer.json:
    "extra": {
        "branch-alias": {
            "dev-master": "1.11.x-dev"
        }
    }

All done! Composer will pick up the tag and configuration automatically.

sentry-php's People

Contributors

abhinavlal avatar ad7six avatar aschempp avatar dcramer avatar dknecht avatar ezintz avatar fabpot avatar gromnan avatar jean85 avatar jeromemacias avatar jonathano avatar localheinz avatar m8rge avatar mabrahamde avatar madssj avatar martinstuecklschwaiger avatar mattrobenolt avatar mgrinko avatar mitsuhiko avatar msabramo avatar mvantellingen avatar nokitakaze avatar pborreli avatar rbas avatar scragg0x avatar siwinski avatar stayallive avatar ste93cry avatar thomasbachem avatar viperfx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.