simonschaufi / php-libkml
A library to manipulate KML/KMZ files
Fund package maintenance!
simonschaufi
www.paypal.me/simonschaufi/10
Installs: 2 324
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 5
Forks: 10
Open Issues: 3
Requires
- php: ^7.4 || ^8.0
- ext-simplexml: *
Requires (Dev)
- behat/behat: ^3.14
- dvdoug/behat-code-coverage: ^5.3.2
- ergebnis/composer-normalize: ^2.42.0
- friendsofphp/php-cs-fixer: ^3.49.0
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.59
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.3.16
- phpstan/phpstan-strict-rules: ^1.5.2
- phpunit/phpunit: ^10.5.10
- rector/rector: ^1.0.1
- spaze/phpstan-disallowed-calls: ^3.1
- squizlabs/php_codesniffer: ^3.9.0
This package is auto-updated.
Last update: 2024-11-05 17:13:45 UTC
README
A php library to parse KML/KMZ files.
php-libKML maps KML/KMZ data into PHP objects that follow the KML specification. The purpose of the library is to create KML file from code, parse KML files and convert to another format maintaining the complete KML information.
Features
- KML schema version 2.2
- PHP 7.4+
- Composer integration
- Object oriented design
- Comprehensive KML model
- Import
- KML
Future features:
- Google extensions support
- Import
- KMZ
- GeoJson
- Export
- KML/KMZ
- GeoJson
- WKT
Installation
You can install the package via composer:
composer require simonschaufi/php-libkml
Usage
$kmlReader = new KmlReader(); $kmlDocument = $kmlReader->fromString($kml); // or $kmlDocument = $kmlReader->fromKmlFile($kmlFilePath);
Contributing
Pull Requests are gladly welcome!
Please remember to add an issue and connect it to your pull requests. It is very helpful to understand what kind of issue the PR is going to solve.
Bugfixes:
Please describe what kind of bug your fix solves and give us feedback on how to reproduce the issue. We're going to accept only bugfixes if we can reproduce the issue.
Execute unit tests:
composer local:tests:unit
Execute acceptance tests:
composer local:tests:acceptance
Credits
License
The MIT License (MIT). Please see License File for more information.