Download the PHP package cboxdk/siem without Composer

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

cboxdk/siem

A zero-runtime-dependency SIEM log-streaming core for PHP 8.4+. You produce one normalized security event; it hands you back exactly the bytes a real SIEM ingests — a Splunk HEC envelope, an Elastic ECS document, an ArcSight/syslog CEF line, a Graylog GELF message, or generic NDJSON. Nothing else: no HTTP, no queue, no credentials, no framework.

The two-tier picture

Log streaming to a SIEM splits cleanly into two jobs, and this package is deliberately only the first one:

  1. Format — turn a normalized event into each SIEM's wire schema. Pure, deterministic, dependency-free, security-critical (CEF injection lives here). That is this package.
  2. Deliver — ship those records over the network: SSRF-guarded egress, TLS, batching, a queue, retries, a dead-letter queue, encrypted secrets. That is the Laravel wrapper cboxdk/laravel-siem (separate package), plus a laravel-id audit binding. Not here.

Keeping the formatting core free of I/O means the security-sensitive part — the escaping that stops log injection — is small, framework-agnostic, and testable in isolation, and the delivery concerns live where a framework can do them properly.

Mental model

Quickstart

Swap the formatter for any other with no other change:

The formatters, mapped to each SIEM's real schema

Formatter Target Key schema facts
SplunkHecFormatter Splunk HTTP Event Collector {"time": <epoch-seconds.float>, "sourcetype": ..., "event": {...}}; time is seconds, not milliseconds; records concatenate as NDJSON.
EcsFormatter Elastic Common Schema @timestamp (RFC-3339 UTC), pinned ecs.version, event.{id,action,category[],type[],kind,outcome}, log.level, user.id, source.ip, labels.*, custom cbox.*.
CefFormatter ArcSight / syslog CEF:0|Cbox|<product>|<version>|<sigId>|<name>|<sev 0–10>|<ext>; every field escaped against log injection.
GelfFormatter Graylog (GELF 1.1) version 1.1, host, short_message, epoch-seconds timestamp, numeric level 0–7, _-prefixed additional fields (_id forbidden).
JsonFormatter generic / NDJSON deterministic single-line, UTF-8 safe JSON.

Security posture (honest scope)

This package formats; it does not deliver. So its security surface is exactly one thing, and it takes it seriously: preventing log/record injection during formatting. The CEF formatter is the sharp edge — a CEF record is a single syslog line, so an unescaped |, =, or newline in attacker-influenced data could forge a header field, an extension key, or a whole second event. All escaping is isolated in a tested Cbox\Siem\Support\CefEscaper and proven with an adversarial round-trip test. Newline neutralization is unconditional — there is no config flag that can turn it off.

Everything downstream of a formatted string — SSRF-safe egress, TLS, auth, secret storage, retries — is out of scope here by design and belongs to cboxdk/laravel-siem. See SECURITY.md and docs/security/_index.md.

Requirements

No runtime package dependencies. No framework. See docs/requirements.md.

Documentation

Full docs live in quickstart, core concepts (the event model and the formatters), extension points (writing your own formatter), and the security posture and escaping guarantee.

Security reporting

Report vulnerabilities through GitHub Private Vulnerability Reporting — see SECURITY.md.

License

MIT — see LICENSE.


All versions of siem with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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 cboxdk/siem contains the following files

Loading the files please wait ...