Skip to content
This component is the way to integrate service with your Yii app.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Ratchetio Component is the way to integrate service with your Yii application. aggregates and analyzes your application errors and deploys.


  1. Download ratchetio.php and put it in the same directory where RatchetioComponent.php and RatchetioErrorHandler.php are. For example, protected/extensions/yiiext/components/RatchetioComponent.

  2. Add ratchetio component to the main.php config:

    // ...
    'components' => array(
        // ...
            'class' => 'ext.yiiext.components.RatchetioComponent', // adjust path if needed
            'accessToken' => 'your_serverside_ratchetio_token',
  3. Adjust main.php config to preload the component:

    'preload'=>array('log', 'ratchetio'),
  4. Set RatchetioErrorHandler as error handler:

    'components' => array(
        // ...
            // ...

    You can also pass some additional options in the component config: environment, branch, maxErrno, baseApiUrl etc.

    A good idea is to specify environment as:

    'environment' => isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'cli_'.php_uname("n"),

    You can specify alias of your project root directory for linking stack traces ('application' by default):

    'rootAlias' => 'root',
You can’t perform that action at this time.