Download the PHP package webimpian/laravel-log-central without Composer

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

Laravel Log Central

Latest Version on Packagist Total Downloads

Ship exceptions, log entries, and API request metrics from any Laravel application to a Log Central server. Install the package, set a few environment variables, and telemetry flows automatically over queued, batched background jobs — no code changes required.

Highlights

Requirements

Installation

Add the connection details to your .env:

API monitoring is enabled by default for api/*. The following are optional — use them to narrow the monitored paths or control what is stored:

The service provider registers itself automatically — no further wiring is required.

On Laravel 6, also install an HTTP client, which the framework does not provide until 7.0:

Configuration

Publish the configuration file to customise scrub keys, the shipping queue, or defaults:

Variable Default Purpose
CENTRAL_LOG_URL Base API URL of the Log Central server
CENTRAL_LOG_TOKEN The application's project key
CENTRAL_LOG_APP slug of app.name Must match the slug registered on Log Central
CENTRAL_LOG_CHANNELS * Channels to ship; * = all (exceptions ship regardless)
CENTRAL_LOG_API_PATHS api/* Paths whose API traffic is recorded; empty disables monitoring
CENTRAL_LOG_API_RESPONSE all Response bodies to include: all, failed (4xx/5xx only), or none
CENTRAL_LOG_API_PAYLOAD all Request payloads to include: all, failed (4xx/5xx only), or none
CENTRAL_LOG_QUEUE default queue Queue name for shipping jobs
CENTRAL_LOG_VERIFY_SSL true Set false only for a local or self-signed Log Central server
CENTRAL_LOG_ENABLED true Master switch (set false in testing)

Shipping only happens when CENTRAL_LOG_ENABLED is true and both the URL and token are set. With anything missing the package stays completely dormant — no middleware, no listeners, no channel changes.

How it works

What gets captured

Situation Shipped?
Uncaught exception (web, queue, Artisan, scheduler) ✅ as error
report($e) inside a try/catch ✅ as error
Log::...() on a shipped channel ✅ as log entry
Log::...() on an unlisted channel ❌ file only
Request to a matched api/* path ✅ as API request
Exception silently swallowed without report()

Scrubbing sensitive data

Request input, log context, API payloads, and API responses are all filtered before anything leaves the application. Keys are matched case-insensitively and as substrings, so card also covers card_number and CardHolder.

Defaults: password, password_confirmation, current_password, token, api_key, apikey, secret, authorization, card, cvv, cvc, pin.

Publish the config and edit the scrub array to add your own — replacing the list, so keep the defaults you still want:

File uploads are never included in a payload.

Verifying the integration

The entry should appear on the Log Central dashboard within a few seconds. If it does not, work through the table below.

Troubleshooting

Symptom Cause and fix
Nothing arrives at all No worker is consuming the queue. If you set CENTRAL_LOG_QUEUE=logs, the worker must run with --queue=logs, otherwise the jobs sit unprocessed.
Nothing arrives, queue is empty The package is dormant: CENTRAL_LOG_ENABLED is false, or the URL or token is missing.
Jobs land in failed_jobs Deliberate. The server rejected the request in a way retrying cannot fix — usually a wrong project key, an app slug not registered on Log Central, or a URL missing its /api suffix. Read the exception on the failed job.
Every entry appears twice Fixed in v1.2.1. Upgrade, then run php artisan config:clear (or re-run config:cache) to rebuild config cached while the old version was wrapping channels non-idempotently.
Exceptions ship but log entries do not CENTRAL_LOG_CHANNELS does not include the channel being written to. Exceptions ship regardless of this setting; log entries do not.
SSL certificate errors A local or self-signed Log Central server — set CENTRAL_LOG_VERIFY_SSL=false. Never do this against production.
Class "GuzzleHttp\Client" not found Laravel 6 without an HTTP client: composer require guzzlehttp/guzzle.
Telemetry noise in your test suite Set CENTRAL_LOG_ENABLED=false in phpunit.xml / .env.testing.

Compatibility

Laravel PHP Notes
6 7.4+ Requires guzzlehttp/guzzle; the framework has no HTTP client
7 – 8 7.4+
9 – 13 8.0+ Follows each release's own PHP floor

The ingest contract is frozen at v1.0 — any package version talks to any Log Central server.

Testing

License

The MIT License (MIT). See LICENSE.md for details.


All versions of laravel-log-central with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
symfony/polyfill-php80 Version ^1.16
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 webimpian/laravel-log-central contains the following files

Loading the files please wait ...