Download the PHP package satisfactory-tools/docs-parser without Composer
On this page you can find all versions of the php package satisfactory-tools/docs-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download satisfactory-tools/docs-parser
More information about satisfactory-tools/docs-parser
Files in satisfactory-tools/docs-parser
Package docs-parser
Short Description Parser for Satisfactory documentation files.
License MIT
Informations about the package docs-parser
SatisfactoryTools/DocsParser
This package can parse exported files from Satisfactory to generate info about recipes, items, schematics, etc.
Running the parser
You need to either have Docker installed, or PHP 8.5+.
For docker, you can use the prebuilt image from GitHub Container Registry:
Or build the container yourself once, and then just run it:
Note that the container only sees files under the mounted /data directory, so pass input/output paths through it, e.g.:
If you want to use it locally, install dependencies first (requires Composer installed), then run it through PHP:
Commands
If you run the app without any arguments, it'll show you a list of commands.
You can use help [command] to get info about supported parameters.
Examples
Parse data, export to wiki format, and omit ficsmas data:
Using in PHP
If you want to use the parser in your own PHP project, you can add it via composer
Example usage:
Custom parsing
You can implement SFTools\Data\Export\Exporter interface to define your own format to export. You can also implement SFTools\Data\Transformers\Transformer to add more transformers (they can "fix" wrong datapoints or transform data to different values).
To run a transformer, you can do something like this:
You can also specify a list of handlers/transformers to use in the DocsParser constructor:
This will skip the default handlers and use only the ones you specified. Passing null instead of an array will use the default handlers/transformers.
All versions of docs-parser with dependencies
ext-iconv Version *
nette/utils Version ^v4.1.1
nette/tokenizer Version ^v3.1.1
symfony/console Version ^v8.0.3