# Php and mysql tools for tiled maps

**URL:** <https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440>\
**Category:** Development\
**Created:** [April 11, 2020, 12:20pm UTC](https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440 "2020-04-11T12:20:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neofutur](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/neofutur/32/2700_2.png) [@neofutur](https://discourse.mapeditor.org/u/neofutur)\
**Post date:** [April 11, 2020, 12:20pm UTC](https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440/1 "2020-04-11T12:20:22Z")

</div>

Hi all,

I started to develop small toools to acces, display ( in php ) and store ( in mysql ) tiled maps, tilesets and tiles.

V 0.1, very basic tools designed to be fast and easy to understand and try and hack, with minimal support, and work in progress, but working for me !

its on github : [https://github.com/neofutur/php-mysql-tiled-map-tiles/blob/master/README.md](https://github.com/neofutur/php-mysql-tiled-map-tiles/blob/master/README.md)

feedback and code welcome !

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [April 14, 2020, 12:09pm UTC](https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440/2 "2020-04-14T12:09:15Z")

</div>

Hey @neofutur, welcome to the Tiled forums!

That’s an interesting project. Why did you want the map data to be stored in an SQL database? Does this make it faster or more convenient to access?

For displaying a map in the browser, the more common solution these days is to use a canvas element and rendering tiles to it, based on JSON tile data sent to or downloaded by the browser.

---

<div class="post-metadata">

**Author:** ![neofutur](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/neofutur/32/2700_2.png) [@neofutur](https://discourse.mapeditor.org/u/neofutur)\
**Post date:** [April 14, 2020, 12:48pm UTC](https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440/3 "2020-04-14T12:48:14Z")

</div>

good question. mostly because I will have a bunch of data related to each tile. Its just a project and for now I m just exploring the tools, but if one day this becomes a game, there will be a bunch of related data ( and mysql tables ) for each tile ( people, buildings, adventures, shops … )

---

<div class="post-metadata">

**Author:** ![AJenbo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ajenbo/32/2713_2.png) [@AJenbo](https://discourse.mapeditor.org/u/AJenbo)\
**Post date:** [April 21, 2020, 3:47am UTC](https://discourse.mapeditor.org/t/php-and-mysql-tools-for-tiled-maps/4440/4 "2020-04-21T03:47:01Z")

</div>

i send you a pull request to clean up the code a bit
