locr-company / vms2-tile-db-reader
A class for reading tile data from a database.
1.0.3
2024-11-22 11:31 UTC
Requires
- php: >=8.1
- ext-sqlite3: *
Requires (Dev)
- captainhook/captainhook: ^5.23
- captainhook/hook-installer: ^1.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.11
This package is auto-updated.
Last update: 2024-12-25 21:19:42 UTC
README
Installation
cd /path/to/your/php/project
composer require locr-company/vms2-tile-db-reader
Basic Usage
<?php use Locr\Lib\Vms2TileDbReader\DataType; use Locr\Lib\Vms2TileDbReader\Sources\SQLite; $tileDb = new SQLite('germany.sqlite'); $tileData = $tileDb->getRawData(x: 34686, y: 21566, z: 16, key: 'building', value: '*', type: DataType::Polygons); header('Content-Type: application/octet-stream'); // The Content-Type is required for the Web-App. print $tileData;
Development
Clone the repository
git clone git@github.com:locr-company/php-vms2-tile-db-reader.git cd php-vms2-tile-db-reader && composer install