Download the PHP package chrismou/craft-rollbar without Composer

On this page you can find all versions of the php package chrismou/craft-rollbar. 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 craft-rollbar

Rollbar plugin for Craft CMS

This plugin provides Rollbar support for Craft CMS.

Features

Compatibility

Plugin version / branch Craft PHP Notes
3.x (v3.0.x) 3.5+ -
4.x (v4.0.x) 4.x 8.0.2-8.4
5.x (v5.0.x) 5.x 8.2-8.4 current stable; Craft 5 is LTS
6.x (untagged, dev-6.x) 6.x alpha 8.5 experimental; adapter-based; no release until Craft 6 beta

Requirements

This branch (6.x) requires Craft CMS 6 (alpha) and PHP 8.5. For Craft 5 support (current stable), use the 5.x branch. For Craft 3 or 4 support, use the 3.x or 4.x branches.

For Craft 6 support, see the Craft 6 (experimental) section below.

Installation

Plugin Store

To install Rollbar, navigate to the Plugin Store section of your Craft control panel, search for Rollbar, and click the Install button.

Composer

You can also add the package to your project using Composer.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require chrismou/craft-rollbar
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Rollbar.

Configuration

First you'll need to setup a Rollbar account.

Once you have an account and created your project, you'll be provided with an access Key. Navigate to Settings > Plugins > Rollbar and start typing the name of your environment variable in the Access Token field, until you see your variable name in the autocomplete box.

In order to log JS exceptions, you'll also need to enable the option and add your postClientItemAccessToken using the same method as above.

In order to exclude certain exceptions from being logged, create a comma separated list of fully qualified exception classes and add it to the relevant setting using the same method as above.

For example, if you're looking to exclude 404 exceptions, you could add the following to your .env:

Then simply add the ROLLBAR_IGNORED_EXCEPTIONS value to your settings.

Craft 6 (experimental)

The 6.x branch targets Craft 6 (alpha) via the official craftcms/yii2-adapter compatibility layer. It is untagged and should be treated as experimental.

Requirements: PHP 8.5, Craft 6.x alpha.

Install:

Add the 6.x branch as a dev dependency. Either lower your project's minimum-stability to dev and require the branch:

Or use an inline stability flag:

Known behaviour difference (unconfirmed): Under Craft 6, the JS error snippet is expected to reach front-end Twig templates only and not appear on Craft CP pages, because the rebuilt CP no longer renders through the legacy Twig View pipeline. This has not yet been confirmed against a live Craft 6 install.

No tagged release will be made until Craft 6 reaches beta. Until then, install via the dev constraint above.

Licensing

Released under the MIT License. See LICENSE.


This plugin is maintained by Chris Chrisostomou. With thanks to the original developer, Newism.


All versions of craft-rollbar with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <9.0
craftcms/cms Version ^5.0.0-alpha.1
rollbar/rollbar Version ^4.0
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 chrismou/craft-rollbar contains the following files

Loading the files please wait ...