Skip to content

Commit 8ab4530

Browse files
authored
Porting to composer project (#5)
* Creating bases * Implementing visitor pattern * Making KMLObjects visitable * Code quality fix * Adding parser scaffolding * Refactoring code formatting * Increasing testing * Fixing travis integration * Setting php minimum version * Adding CI badges * Refactoring comments, simplification * Code quality fix
1 parent 5ba3d03 commit 8ab4530

681 files changed

Lines changed: 6382 additions & 62563 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## IDE
2+
.sonarlint/
3+
.idea/
4+
5+
## Dependencies
6+
vendor
7+
8+
## Generated
9+
reports

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: php
2+
php:
3+
- 7.1
4+
before_script:
5+
- composer install
6+
script: composer test
7+
after_success:
8+
- curl -s https://codecov.io/bash | bash

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
# PHP LibKML #
3+
4+
[![Build Status](https://travis-ci.org/earelin/php-libkml.svg?branch=2.x.x)](https://travis-ci.org/earelin/php-libkml)
5+
[![codecov](https://codecov.io/gh/earelin/php-libkml/branch/2.x.x/graph/badge.svg)](https://codecov.io/gh/earelin/php-libkml)
6+
7+
A php library to manipulate KML/KMZ files.
8+
9+
php-libKML maps KML/KMZ data into proper objects that follows the KML specification. The purpose of the library is create KML file from code, parse KML files and convert to another formats maintaining the complete KML information.
10+
11+
## Features ##
12+
13+
* KML schema version 2.2
14+
* PHP 7.0+
15+
* Object oriented design
16+
* Comprehensive KML model
17+
* Google extensions support
18+
19+
## Installation ##
20+
21+
It can be installed using composer.
22+
23+
```bash
24+
composer require earelin/php-libkml:^2.0.0
25+
```
26+
27+
## Usage ##
28+
29+
30+
31+
## Contribute ##
32+
33+
Execute tests
34+
35+
```bash
36+
composer test
37+
```
38+
39+
Check code quality with Codesniffer
40+
41+
```bash
42+
composer phpcs
43+
```
44+
45+
Codesniffer automatic code quality fix
46+
47+
```bash
48+
composer phpcbf
49+
```

composer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "earelin/php-libkml",
3+
"description": "A library to manipulate KML/KMZ files",
4+
"type": "library",
5+
"keywords": ["kml", "gis"],
6+
"homepage": "https://github.com/earelin/php-libkml",
7+
"readme": "README.md",
8+
"license": "GPL-3.0",
9+
"support": {
10+
"issues": "https://github.com/earelin/php-libkml/issues",
11+
"source": "https://github.com/earelin/php-libkml"
12+
},
13+
"minimum-stability": "dev",
14+
"prefer-stable": true,
15+
"require": {
16+
"php": "^7.1"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "^7.4",
20+
"drupal/coder": "^8.2.12"
21+
},
22+
"autoload": {
23+
"psr-4": {
24+
"LibKml\\": "src/"
25+
}
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
29+
"LibKml\\Tests\\": "tests/src/"
30+
}
31+
},
32+
"scripts": {
33+
"clean": "rm -Rf reports vendor",
34+
"test": "phpunit --bootstrap vendor/autoload.php -c phpunit.xml --testdox",
35+
"phpcs": "phpcs --bootstrap=vendor/autoload.php --standard=vendor/drupal/coder/coder_sniffer/Drupal --exclude=Drupal.Commenting.FunctionComment src",
36+
"phpcbf": "phpcbf --bootstrap=vendor/autoload.php --standard=vendor/drupal/coder/coder_sniffer/Drupal --exclude=Drupal.Commenting.FunctionComment,Drupal.Commenting.ClassComment src"
37+
}
38+
}

0 commit comments

Comments
 (0)