Download the PHP package aternos/codex without Composer

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

Codex

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

Usage

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

Logfile

A LogFileInterface object is required to start reading a log. There are currently three different log file classes in this library.

Log

A LogInterface is the most important object for the different operations. It represents the log content, which is split in Lines. And it offers quick access to the detection, parsing and analysing functions and can define which classes are used for those functions. If you know which log type you have or just want to test the default Log class, you can directly create a new instance, otherwise you can use detection as described below.

Detection

If the log type (specifically the class name of the log type) is unknown you can use the Detective class to automatically detect the log type. The Detective class gets a list of possible log class names and executes their given Detectors.

The detect() function always returns a log object, if necessary it defaults to Log.

Parsing

Parsing reads the entire log and creates the Line objects which are parts of a Log object. Different log types can use different parsers by overwriting the LogInterface::getDefaultParser() function or by passing a parser object to the parse function.

Analysing

An analysis is performed by an AnalysableLog and returns an Problem or an Information object. Different log types can use different analysers by overwriting the AnalysableLogInterface::getDefaultAnalyser() function or by passing an analyser object to the analyse function.

Printing

The entire Printer. The basic ModifiableDefaultPrinter allows Modification, e.g. to highlight certain characters/words.


All versions of codex with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 aternos/codex contains the following files

Loading the files please wait ....