Download the PHP package aternos/thanos without Composer

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

Thanos

About

Thanos is a PHP library to automatically detect and remove unused chunks from Minecraft worlds. This can reduce the file size of a world by more than 50%.

Other than existing tools, this library does not use blocklists. Instead, the inhabited time value is used to determine whether a chunk is used or not. This prevents used chunks from sometimes being removed by accident and makes this library compatible with most mods and plugins.

Only Minecraft: Java Edition worlds are supported.

Installation

To work with LZ4 compressed chunks (Minecraft 1.20.5+), you should also install the PHP LZ4 extension.

Known issues

World features like trees that cross chunk borders can sometimes look cut off, if the chunk containing half of the feature is removed while the other half is not. Details can be found in this issue: https://github.com/aternosorg/thanos/issues/20

CLI usage

This library includes a simple cli tool.

Thanos uses Taskmaster for asynchronous tasks, which can be configured using environment variables.

Windows support

While Thanos will generally work on Windows, it will be much slower since asynchronous tasks are not supported. It is therefore recommended to use the Windows Subsystem for Linux to run Thanos on Windows.

Library usage

To use Thanos as a library, create a Thanos object that is configured with the desired Patterns to match chunks which should be kept.

You can then pass a World object and a destination directory to the snap method to remove chunks that match none of the patterns.

Chunk patterns

To decide which chunks should be kept, Thanos uses chunk patterns, which implement the ChunkPatternInterface. Built-in patterns include a ListPattern, which keeps chunks based on a predefined list of chunk coordinates, and a RangePattern, which keeps all chunks in a defined rectangular area.

Pattern factories

Sometimes a pattern cannot be defined statically, but needs to be created based on the world data. It is therefore possible to also pass instances of WorldPatternFactoryInterface for world-based pattern creation, and DimensionPatternFactoryInterface for dimension-based pattern creation to the Thanos constructor.

An example for a dimension-based pattern factory is the ForceLoadedChunksPatternFactory. This factory reads the list of force-loaded chunks for a dimension and creates a ListPattern to keep those chunks.

MCA reader and writer

Thanos includes an implementation that can be used to interact with Minecraft MCA files directly.

McaReader

McaWriter


All versions of thanos with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-zlib Version *
aternos/nbt Version ^v1.9.0
aternos/taskmaster Version ^1.1.3
aternos/io Version ^2.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 aternos/thanos contains the following files

Loading the files please wait ...