Download the PHP package sadeim/nard-laravel without Composer

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

Nard for Laravel

Latest Version Tests

Zero-config activity tracking for Laravel applications.

Install the package and Nard automatically records what happens in your app — HTTP requests, logins, every Eloquent model change, and queue jobs — then streams it to the local Nard Agent, which forwards it to Sadeim Central. No code changes, no manual instrumentation.

Why it's safe to leave on

Requirements

Installation

The service provider and the Nard facade are auto-discovered. That's it — tracking is now on.

Optionally publish the config file to tune behaviour:

Configuration

All settings live in config/nard.php and can be driven by environment variables.

Key Env Default Purpose
enabled NARD_ENABLED true Master on/off switch.
agent_url NARD_AGENT_URL http://127.0.0.1:8765 Local agent receiver.
timeout NARD_TIMEOUT 1.0 Connect/total timeout (seconds) for the post-response send.
track.http NARD_TRACK_HTTP true Track every HTTP request.
track.auth NARD_TRACK_AUTH true Track login / logout / failed / registered.
track.models NARD_TRACK_MODELS true Track Eloquent create / update / delete.
track.queue NARD_TRACK_QUEUE true Track queue job processed / failed.
sample_rate NARD_SAMPLE_RATE 1.0 Fraction of HTTP requests to record (0.0–1.0).
max_events_per_request NARD_MAX_EVENTS 500 Per-request buffer cap.
sanitize_fields see config Field names redacted from every payload.
exclude_models DatabaseNotification Eloquent classes to skip.
exclude_routes telescope*, horizon*, … Request paths to skip (Request::is() patterns).

To turn everything off without uninstalling:

On a very high-traffic app you can sample HTTP requests (auth, model and queue events are always recorded in full):

Automatic tracking

Once installed, the following are captured with no further work:

Manual tracking

Use the Nard facade for named business events that span more than one model — automatic tracking already covers the rest.

Nard::track()

Nard::activity() — fluent builder

If no actor is set, the currently authenticated user is used automatically.

Nard::batch()

In long-running processes (console commands, daemons) there is no HTTP response to flush on. Wrap a unit of work in batch() to record it and immediately ship whatever it tracked:

Security

Sensitive values (passwords, tokens, card numbers, …) are redacted from every payload before it leaves your server, recursively and case-insensitively. The list is configurable. See SECURITY.md for the full default set and how to extend or exclude.

Testing

Links

License

The MIT License (MIT). See LICENSE.


All versions of nard-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0 || ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.0
ext-json Version *
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 sadeim/nard-laravel contains the following files

Loading the files please wait ...