Download the PHP package m165437/igc2kmz-php without Composer

On this page you can find all versions of the php package m165437/igc2kmz-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package igc2kmz-php

igc2kmz PHP Wrapper

PHP wrapper for Python script igc2kmz, an IGC to Google Earth converter.

GitHub release Unstable Build Status codecov.io License Twitter

What is igc2kmz-php?

igc2kmz-php allows you to use Python script igc2kmz, an IGC to Google Earth converter, with your PHP application.

In a nutshell: you can convert IGC files to KMZ files.

IGC is a Data File Standard, developed by the IGC GPS Subcommittee and the Gliding Flight Data Recorder Manufacturers (…) to facilitate the introduction of GPS technology into gliding and in particular into competition verification and the homologation of badge and record flights, using GPS, by the FAI.

KML is an XML notation for expressing geographic annotation and visualization within Internet-based, two-dimensional maps and three-dimensional Earth browsers. KMZ files are zipped KML files consisting of a single root KML document and optionally any overlays, images and icons.

Requirements

What's what

Installation

The recommended way to install igc2kmz-php is by using composer:

This will install the PHP package with your application. Please keep in mind that the Python script igc2kmz is not included.

Install the Python script igc2kmz using Composer

Head over to m165437/igc2kmz-installer.

Usage of igc2kmz-php

  1. Get an instance of the \Igc2KmzPhp\Igc2KmzInterface implementation, \Igc2KmzPhp\Igc2Kmz. Pass the path to the igc2kmz binary to the constructor.
  2. Set the igc file and options on your \Igc2KmzPhp\Igc2Kmz instance.
  3. Run your command.

With Laravel

This package includes a Laravel service provider and registers itself via Package Discovery.

Type-hint the class in a constructor or method that is resolved by Laravel's service container. It's automatically resolved and injected into the class.

If you need to change the default binary path vendor/bin/igc2kmz, create a config file config/igc2kmz.php and set the path in there.

Code Examples

Keep in mind that igc2kmz-php is designed to keep its state, run \Igc2KmzPhp\Igc2KmzInterface::resetOptions and \Igc2KmzPhp\Igc2KmzInterface::resetPhotos to get rid of the options and photos you set for the next call on the instance.

Convert flight.igc to output.kmz

Make sure your igc path is correct and readable, and your output path is writable.

Set pilot name and glider type

For individual flights you can override the pilot name and glider type (otherwise they are taken from the IGC file).

Add photos with comments

Get process before it is run

Testing

Run the tests with:

Credits

Credit goes to Tom Payne for creating igc2kmz.

Contributing

Thank you for considering contributing to this package! Please see CONTRIBUTING for details.

License

igc2kmz-php is licensed under the MIT License (MIT). Please see the LICENSE file for more information.


All versions of igc2kmz-php with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.5.x|5.6.x|5.7.x|5.8.x
php Version ^7.1.3
symfony/process Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package m165437/igc2kmz-php contains the following files

Loading the files please wait ....