Download the PHP package slogger/laravel without Composer

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

SLogger Laravel

SLogger Laravel is a tracing/observability package for Laravel apps. It records request/command/job/event/etc. traces and delivers them to a remote backend via configurable dispatchers.

This README documents installation, configuration, watchers, masking, dispatchers, profiling, and usage patterns.

Requirements

Installation

1) Install the package (via Composer in your app):

2) Publish config:

3) Configure env and config/slogger.php (see below).

Quick Start

Enable and use the queue dispatcher:

Then start dispatcher workers:

Trace Collection Backend

SLogger Laravel sends traces to a separate backend service. The reference backend project is:

Use its setup instructions to provision the server and configure the API client URL/token in this package.

Custom backend / client

You can replace the backend by providing your own API client. Redefine ApiClientFactory::create and return a custom implementation of SLoggerLaravel\\Dispatcher\\ApiClients\\ApiClientInterface that sends traces to your backend.

Configuration

All configuration lives in config/slogger.php with environment overrides. Key sections:

General

Dispatchers

Profiling

Enables XHProf profiling for HTTP client traces (see Profiling section).

Request parent trace header

Allows linking child traces to parent requests via a custom header.

Watchers (enable/disable)

What SLogger Writes

Each trace contains:

Watcher data highlights:

Requests

Middleware

For HTTP request tracing, add the middleware to the routes you want traced:

Request watcher config

config/slogger.php:

only_paths

Patterns use Laravel Str::is matching.

JSON response size

Large JSON responses are skipped and marked with:

Masking Rules

Masking is pattern-based and configurable.

Masked values keep basic types:

Guzzle / HTTP Client tracing

You can attach the SLogger handler to Guzzle:

Dispatchers

Queue dispatcher

Start the dispatcher (spawns queue workers):

Stop the dispatcher:

Memory dispatcher

Stores traces in memory only. Intended for tests/local development.

Storage

SLogger does not persist traces locally. The only local file is the dispatcher state file in:

You may want to ignore the folder:

Profiling (XHProf)

Only for HTTP client tracing.

1) Install extension:

2) Enable in php.ini:

3) Enable:

Testing

Run tests:

The testbench config uses in-memory sqlite and memory dispatcher.

Troubleshooting

License

MIT


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires ext-pcntl Version *
ext-posix Version *
laravel/framework Version ^10.0 | ^11.0 | ^12.0
symfony/process Version ^6.4|^7.0
php Version ^8.2
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 slogger/laravel contains the following files

Loading the files please wait ...