martinlindhe/php-tiled-tmx

Library for reading Tiled .tmx map files and rendering as JSON

1.1.0 2015-04-16 07:24 UTC

This package is auto-updated.

Last update: 2024-12-11 03:24:51 UTC


README

Build Status

Library for reading Tiled .tmx map files.

Example:

use TiledTmx\JsonMapWriter as Writer;
use TiledTmx\Parser;

$map = (new Parser)->parseFile('./test/data/testMap1.tmx');
echo Writer::render($map);

The Tiled Map Editor can be downloaded at http://www.mapeditor.org/

The Tiled TMX format is documented here: https://github.com/bjorn/tiled/wiki/TMX-Map-Format

Usage

To improve network performance, make sure that your web server has enabled gzip compression for the generated output.