Download the PHP package vista-php/logger without Composer

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

vista-php/logger

Latest Version PHP Version License CI

PSR-3 compliant logging package for PHP 8.3+.

Designed for clean architecture, strict correctness, and framework-quality maintainability.

No hidden state. No speculative abstractions. Explicit, configurable failure semantics.


Table of Contents


Philosophy

vista-php/logger is a minimal, infrastructure-level logging foundation.

It strictly implements the PSR-3 contract while enforcing clear architectural boundaries:

The package prioritizes clarity, determinism, and explicit behavior over feature breadth.


Features


Requirements

Tested against PHP 8.3, 8.4, and 8.5.


Installation


Architecture Overview

The logging pipeline is intentionally simple and explicit:

Core Principles


Basic Usage


Log Levels

All PSR-3 log levels are supported:

Invalid levels throw InvalidArgumentException immediately, even if no handlers are registered.

Validation occurs at the Logger API boundary.


LogRecord

Each log entry is represented by an immutable LogRecord:

Records are created exclusively by the Logger and passed to handlers. They are treated as immutable data carriers.


Multiple Handlers

You may register multiple handlers:

Execution Semantics

Handlers are executed sequentially.

If any handler throws an exception:

This behavior is intentional and aligns with the fail-fast design philosophy.


Handlers

StreamHandler

Writes log records to a file or stream.

Note: File locking relies on underlying filesystem semantics Behavior may vary on certain network filesystems.

Custom Formatter

You can provide a custom formatter implementation:

Any implementation of FormatterInterface can be injected.

Failure Strategies

By default, write failures are reported via error_log() and do not interrupt application flow.

You can use StrictFailureStrategy to throw a RuntimeException on write failures:

Failure handling is explicit and local to each handler.

NullHandler

Discards all log records (Null Object pattern).

Useful for testing or conditional logging.


Formatters

LineFormatter (default)

Human-readable single-line output:

Characteristics:


JsonFormatter

Machine-friendly structured logging:

Characteristics:


Message Interpolation

PSR-3 style placeholder replacement:


Failure Semantics


Design Decisions

This package intentionally avoids:

The goal is a clean, extensible foundation that can be composed into larger systems without architectural debt.


Testing Philosophy


Versioning

This package adheres to Semantic Versioning (SemVer).


Why not Monolog?

monolog/monolog is a powerful, feature-rich logging library and the ecosystem standard. If you need dozens of handlers, complex pipelines, buffering strategies, or broad integrations, Monolog is an excellent choice.

vista-php/logger is intentionally different.

It provides a strict, minimal PSR-3 implementation focused on architectural clarity, immutable log records, explicit failure semantics, and a small, predictable surface area. There are no channels, no buffering layers, no hidden processors, and no speculative abstractions.

Choose Monolog for ecosystem breadth. Choose vista-php/logger for a clean, framework-grade logging foundation with explicit behavior and minimal complexity.


License

MIT


Contributing

Contributions are welcome, but this package is intentionally minimal and opinionated.

Before opening a pull request, please ensure:

Non-Goals

The following will not be accepted:

If you need these features, consider composing this package or using monolog/monolog.

Development Setup


All versions of logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^3.0
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 vista-php/logger contains the following files

Loading the files please wait ...