Download the PHP package tonijz/raven without Composer

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

Raven

Raven is a client for recording and transmitting messages to Sentry.

Its special sauce is that it can transmit those messages to Sentry in the background. No more slow down while a HTTP request is made!

Installation

Add rcrowe\raven as a requirement to composer.json:

Update your packages with composer update or install with composer install.

Usage

This library exposes the same API for recording your messages as the official raven-php client. It should just be a case of replacing Raven_Client with rcrowe\Raven\Client. For usage of recording messages checkout out raven-php.

To record a message and transmit it to Sentry straight away (the default):

Handlers

Handlers are responsible for taking a new captured raven message and putting into a background queue. If no handler is registered with the raven client the message is transmitted straight away.

A handler can be added to the client as follows:

Sync Handler

(Default) Like raven-php new messages are transmitted straight away.

Laravel Handler

If using within a Laravel project, makes use of the illuminate\queue API. For improved Laravel intergration checkout the Laravel provider below.

Resque Handler

TODO - Will be based around https://github.com/chrisboulton/php-resque

Transports

Transports are responsible for sending the message to the Sentry API. Transports are always the first parameter passed into a handler. If no transport is provided it will default to HTTP.

Dummy

Dummy transport does absolutely nothing. Nothing is transmitted to the API. You may not want to transmit to any messages when working in a dev environment.

HTTP

(Default) Transmit the message over HTTP. To do this we make use of the great HTTP client Guzzle.

As this is the default transport mechanism there is no need to pass it into the handler. The above call is the same as:

UDP

TODO

Providers

Providers offer painless integration to other libraries / frameworks.

Laravel

Installation

Raven needs to know your client DSN. First publish the Raven config file with the following command:

Then edit app/config/packages/rcrowe/raven/config.php

Now add the RavenServiceProvider to app/config/app.php:

Make sure app/config/queue.php is setup with how you want to connect to your background queue. For further information on working with queues in Laravel checkout their docs.

Usage

Now where ever you want to record a message just use the normal Log facade.


All versions of raven with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.4
raven/raven Version 0.7.*
guzzle/guzzle Version 3.7.*
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 tonijz/raven contains the following files

Loading the files please wait ....