Download the PHP package loguard/loguard-sdk without Composer

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

LoGuard SDK for PHP

The official PHP client for sending security events to LoGuard. The core package does not depend on a framework. Adapters are included for Laravel, PSR-15 and CodeIgniter 3.

Requirements

Installation

Composer is the preferred installation method:

If the deployment environment cannot install Composer packages, use the official standalone ZIP from the LoGuard GitHub release. Download and verify the archive during deployment, extract it outside the public web root, and load its local autoload.php.

Do not load PHP code remotely from a CDN at request time.

See Standalone installation for the complete procedure.

Plain PHP

event() is synchronous. Use it from workers, commands or flows where the result is required. For a web request, prefer eventAsync() with a durable spool or a framework queue.

Durable delivery

The request only writes a small file using an atomic rename. A separate worker can drain the directory:

Run the worker from systemd, Supervisor, cron or your existing job runner. Use a directory writable only by the application user. The spool is bounded by default and returns false when full; register Client::onDropped() to send that condition to your metrics or logs.

HTTP capture

Automatic capture is built around three framework-neutral objects:

Query parameters, request bodies and headers are opt-in. Common secret field names are always removed. JSON bodies are subject to byte and nesting limits, and every event is sanitized again before signing.

Laravel

Publish the configuration and register the middleware:

For production, set LOGUARD_QUEUE_EVENTS=true and run a Laravel queue worker. The queue job performs one transport attempt; Laravel owns the retry policy.

PSR-15

Install your preferred PSR-7 implementation together with:

Add LoGuard\Sdk\Psr15\LoGuardMiddleware after routing so the adapter can read the optional route.name request attribute.

CodeIgniter 3

Create the client in application bootstrap and register LoGuard\Sdk\CodeIgniter3\LoGuardHook::capture as a post_system hook. Keep the SDK instance in your dependency container or a small application factory. Do not put the API key in hooks.php; read it from the environment.

The supplied CI3 hook uses the same capture policy as the other adapters. It does not contain project-specific routes, authentication logic or Blynex code.

Privacy defaults

Failure behavior

Synchronous calls throw typed LoGuard exceptions. Asynchronous capture is fail-open: SDK failures do not change the application response. Network redirects are never followed, TLS verification cannot be disabled, response bodies are bounded, and invalid JSON is rejected.

Defaults are deliberately conservative:

Testing

See docs/SECURITY.md for the threat model and docs/OPERATIONS.md for rollout and worker guidance.


All versions of loguard-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
ext-mbstring 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 loguard/loguard-sdk contains the following files

Loading the files please wait ...