Download the PHP package biller/yii2-phpbrake without Composer

On this page you can find all versions of the php package biller/yii2-phpbrake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-phpbrake

yii2-airbrake

Airbrake integration for Yii2, which wraps around official Airbrake PHP library (airbrake/phpbrake).

Installation

composer require biller/yii2-airbrake

Usage

While it is not explicitly required, it is recommended to configure the AirbrakeService as a component in environment (or even common) configuration, so it is easily accessible from the whole application ( using i.e. Yii::$app->get('airbrakeService')).

Configuration options marked with asterisk are required, all other options are optional.

For additional information about the API, please consult official Airbrake PHP library documentation.

AirbrakeFilterFactory

Factory class that can be used to create various filtering rules.

AirbrakeFilterFactory::createParamsFilter(array $params, $replacement = 'FILTERED')

Method will create filtering callable that filters parameters, specified by $params and replaces it with specified $replacement. Example usage is available above.

Console Support

Integration can be added to Yii console, where it currently provides a command to track deployment (new feature in Airbrake API 4 that allows to mark error timeline with deployments).

Usage

To use ConsoleController, AirbrakeService should be configured as component.

import enscope\Yii2\Ext\Airbrake\ConsoleController;

return [
    // ...
    'controllerMap' => [
        // ...
        'airbrake' => [
            'class' => ConsoleController::class,
            'airbrakeService' => [component-name], // default "airbrakeService"
        ],
    ],
];

While parameters can be hard-coded in configuration, console controller supports inferParameters, username , revision and repository parameters to be set by arguments on command line.

Logging Target

You can configure Yii2 logger to log errors automatically to Airbrake Service.

Usage

To use ConsoleController, AirbrakeService should be configured as component.

The target currently does not expose any other configuration options other then those exposed by yii\log\Target, except the service component:

License

Yii2 Airbrake integration is licensed under The MIT License (MIT) as is the original PHP Airbrake library and follows the versioning of that library.


All versions of yii2-phpbrake with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0 || ^8.0
yiisoft/yii2 Version ^2.0
airbrake/phpbrake Version ^0.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package biller/yii2-phpbrake contains the following files

Loading the files please wait ....