PHPackages                             aternos/codex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aternos/codex

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aternos/codex
=============

PHP library to read, parse, print and analyse log files.

v4.1.0(3mo ago)1170.2k—8.3%2[2 PRs](https://github.com/aternosorg/codex/pulls)2MITPHPPHP &gt;=8.4CI passing

Since Feb 15Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/aternosorg/codex)[ Packagist](https://packagist.org/packages/aternos/codex)[ RSS](/packages/aternos-codex/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (26)Used By (2)

Codex
=====

[](#codex)

### About

[](#about)

Codex (*lat. roughly for "log"*) is a PHP library to read, parse, print and analyse log files to find problems and suggest possible solutions. It was created mainly for Minecraft server logs but could be used for any other logs as well. This library provides a set up for a structured log parsing implementation and provides some useful basic implementation, mainly based on RegEx. Every part of this library can or even must be extended/overwritten while still following the interfaces, which ensure interoperability between the different parts of this library.

### Installation

[](#installation)

```
composer require aternos/codex

```

Usage
-----

[](#usage)

This is a short introduction to the idea of Codex, for some more examples check the [test](test) folder and/or read the [code](src).

### Logfile

[](#logfile)

A [`LogFile`](src/Log/File/LogFile.php) object implementing the [`LogFileInterface`](src/Log/File/LogFileInterface.php) object is required to start reading a log. There are currently three different log file classes in this library.

```
