Skip to content

Commit

Permalink
Fixup by review and add more details in readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Giannantonio committed Mar 28, 2017
1 parent cbdb640 commit c8d6a73
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,28 @@ immobiliare/sentry-php
:target: http:https://travis-ci.org/getsentry/sentry-php


This project is a fork of official PHP SDK v1.7.0 for `Sentry <https://getsentry.com/>`_ to work even with php5.2.
This project is a fork of official `PHP SDK v1.7.0 <https://github.com/getsentry/sentry-php>`_ for `Sentry <https://getsentry.com/>`_ to work even with php5.2.

Installation
------------

There are various ways to install the PHP integration for Sentry. The
recommended way is to use `Composer <http:https://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:

.. sourcecode:: php

require_once '/path/to/Raven/library/Raven/Autoloader.php';
Raven_Autoloader::register();


.. code-block:: php
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
function setupSentry()
{
$sentryClient = new Raven_Client(SENTRY_DSN);
$__DIR__ = version_compare(PHP_VERSION, '5.3.0', '>=') ? __DIR__ : dirname(__FILE__);
$__DIR__ = dirname(__FILE__);

$sentryClient->setAppPath($__DIR__)
->setRelease(Raven_Client::VERSION)
Expand Down
2 changes: 1 addition & 1 deletion test/Raven/Tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ public function testClose_curl_resource()

class Helper_Php52
{
public static $__DIR__ = null;
private static $__DIR__ = null;

public static function getDir()
{
Expand Down

0 comments on commit c8d6a73

Please sign in to comment.