Download the PHP package macromindonline/sentry-laravel without Composer

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

Sentry for Laravel

Build Status Total Downloads Downloads per month Latest stable version License

Laravel integration for Sentry.

Installation

Laravel 5.x

Install the sentry/sentry-laravel package:

If you're on Laravel 5.4 or earlier, you'll need to add the following to your config/app.php:

Add Sentry reporting to app/Exceptions/Handler.php:

Create the Sentry configuration file (config/sentry.php):

Add your DSN to .env:

Laravel 4.x

Install the sentry/sentry-laravel package:

Add the Sentry service provider and facade in config/app.php:

Create the Sentry configuration file (config/sentry.php):

Lumen 5.x

Install the sentry/sentry-laravel package:

Register Sentry in bootstrap/app.php:

Add Sentry reporting to app/Exceptions/Handler.php:

Create the Sentry configuration file (config/sentry.php):

Testing with Artisan

You can test your configuration using the provided artisan command:

Adding Context

The mechanism to add context will vary depending on which version of Laravel you're using, but the general approach is the same. Find a good entry point to your application in which the context you want to add is available, ideally early in the process.

In the following example, we'll use a middleware:

Displaying the error ID

When something goes wrong and you get a customer email in your inbox it would be nice if they could give you some kind of identitifier for the error they are seeing.

Luckily Sentry provides you with just that by adding one of the following options to your error view.

This could look something like this in for example your resources/views/error/500.blade.php:

This ID can be searched for in the Sentry interface allowing you to find the error quickly.

Contributing

Dependencies are managed through composer:

Tests can then be run via phpunit:

Community


All versions of sentry-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.*|5.*
sentry/sentry Version >=1.7.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 macromindonline/sentry-laravel contains the following files

Loading the files please wait ....