PHPackages                             devexpress/logify.alert.php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. devexpress/logify.alert.php

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

devexpress/logify.alert.php
===========================

Logify Alert Client for PHP Applications

v1.0.2(7y ago)01012proprietaryPHPPHP &gt;=5.4.0

Since Nov 29Pushed 7y ago7 watchersCompare

[ Source](https://github.com/DevExpress/Logify.Alert.PHP)[ Packagist](https://packagist.org/packages/devexpress/logify.alert.php)[ RSS](/packages/devexpress-logifyalertphp/feed)WikiDiscussions develop Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Logify Alert for PHP applications
=================================

[](#logify-alert-for-php-applications)

A PHP client to report exceptions to [Logify Alert](https://logify.devexpress.com).

Install
-------

[](#install)

### Install manually

[](#install-manually)

- Copy the [Logify](https://github.com/DevExpress/LogifyAlertClientforPHP/tree/master/Logify) folder to your PHP project.
- Use the code below to include the **LoadHelper.php** file to the PHP script you use to call the Logify API. `require_once('/Logify/LoadHelper.php');`.
- Register the library autoloader by executing the following code:

```
    spl_autoload_register(array("DevExpress\LoadHelper", "LoadModule"));
```

All classes in the library are wrapped in the DevExpress\\Logify namespace. Apply the [use](http://php.net/manual/en/language.namespaces.importing.php) operator as demonstrated below to get rid of long names in your code:

```
use DevExpress\Logify\LogifyAlertClient;
use DevExpress\Logify\Core\Attachment;
```

### Install with Composer

[](#install-with-composer)

- Create a `composer.json` file in your project's root folder or use an existing one.
- Add the section below to the `composer.json` file.

```
    "require": {
        "devexpress/logify.alert.php": "dev-master"
    }
```

- Execute the following command: `php composer.phar install`
- Add `require __DIR__ . '/vendor/autoload.php';`, to your PHP project. All classes in the client library are wrapped in the **DevExpress\\Logify** namespace. Apply the [use](http://php.net/manual/en/language.namespaces.importing.php) operator as demonstrated below to get rid of long names in your code:

```
use DevExpress\Logify\LogifyAlertClient;
use DevExpress\Logify\Core\Attachment;
```

Quick Start
-----------

[](#quick-start)

### Automatic error reporting

[](#automatic-error-reporting)

```
use DevExpress\Logify\LogifyAlertClient;

    $client = LogifyAlertClient::get_instance();
    $client->apiKey = 'SPECIFY_YOUR_API_KEY_HERE';
    $client->start_exceptions_handling();
```

### Manual error reporting

[](#manual-error-reporting)

```
use DevExpress\Logify\LogifyAlertClient;

    try {
        $client = LogifyAlertClient::get_instance();
        $client->apiKey = 'SPECIFY_YOUR_API_KEY_HERE';
    }
    catch (Exception $e) {
        $client->send($e);
    }
```

Configuration
-------------

[](#configuration)

You can set up the Logify Alert client using the **config.php** file:

```
