Download the PHP package tomatophp/laravel-logstash without Composer

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

Screenshot

Laravel Logstash Log Channel

Dependabot Updates PHP Code Styling Tests Latest Stable Version License Downloads

Elastic Logstash log channel for Laravel apps. Every log record is formatted with Monolog's LogstashFormatter and posted as JSON to a Logstash HTTP input, through a queued job by default.

Compatibility

Version Laravel PHP Branch
2.x 12.x, 13.x 8.2+ master
1.x 10.x, 11.x 8.1+ v1

Installation

The service provider is auto-discovered and registers a logstash log channel. Add the Logstash HTTP input URL (host with port) to your .env and use the channel:

To keep your local log file as well, add logstash to the stack channel instead:

When LOGSTASH_HOST is empty nothing is sent. A failing or unreachable Logstash never throws, so logging can not break your app.

Queue

Records are sent by the TomatoPHP\LaravelLogstash\Jobs\NotifyLogstash job, so run a queue worker (or use the sync queue). To send directly over HTTP during the request, set LOGSTASH_QUEUE=false.

Configuration

Env Default Description
LOGSTASH_HOST null Logstash HTTP input URL
LOGSTASH_LEVEL debug Minimum level sent to Logstash
LOGSTASH_QUEUE true Send through the queued job
LOGSTASH_QUEUE_CONNECTION null Queue connection for the job (app default)
LOGSTASH_QUEUE_NAME null Queue name for the job (app default)
LOGSTASH_TIMEOUT 5 HTTP timeout in seconds

You can publish the config file with:

To customise the channel, define it yourself in config/logging.php; the package will not overwrite it. Channel keys override the package config:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

Please see SECURITY for more information about security.

Credits

License

The MIT License (MIT). Please see License File for more information.

Testing

if you like to run PEST testing just use this command

Code Style

if you like to fix the code style just use this command

PHPStan

if you like to check the code by PHPStan just use this command

Other Filament Packages

Checkout our Awesome TomatoPHP


All versions of laravel-logstash with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
laravel/framework Version ^12.0|^13.0
monolog/monolog Version ^3.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 tomatophp/laravel-logstash contains the following files

Loading the files please wait ...