Download the PHP package xsga/log4php without Composer

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

Xsga Log4PHP

PHP PSR-3

A modern, PSR-compliant successor to Apache Log4PHP (now unmaintained).

Xsga Log4PHP is a heavily refactored and redesigned logging library for PHP, originally inspired by Apache Log4PHP and rebuilt for the current PHP ecosystem. It targets PHP 8.4+, follows PSR-3, ships with PSR-4 autoloading, and provides a flexible logging pipeline with appenders, layouts, context interpolation, and XML or programmatic configuration.


Table of Contents


📌 Why this project exists

Apache Log4PHP is no longer actively maintained and does not align with current PHP versions, tooling, or interoperability expectations.

This project exists to:


✨ Key Features


🔍 What makes it different

Compared to the original Apache Log4PHP:

For a detailed comparison, see:

👉 doc/differences-from-apache-log4php.md


🚀 Quick Start

Install via Composer:

Basic usage:

If you prefer to configure the library without XML, you can also pass a PHP array directly to Logger::configure().


⚙️ Basic Configuration

Configuration can be defined using XML or arrays.

XML example:

Programmatic example:


📚 Documentation

Project documentation is currently centered on the repository itself:


👥 Who should use this

This project is a good fit if you:


📄 License

This project is based on Apache Log4PHP and remains licensed under the Apache 2.0 License. See LICENSE for details.

It includes substantial refactoring, modernization, and new implementation work tailored to the current PHP ecosystem.


🙌 Acknowledgements


All versions of log4php with dependencies

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

Loading the files please wait ...