Download the PHP package acato/openkaarten-geodata-for-posts without Composer

On this page you can find all versions of the php package acato/openkaarten-geodata-for-posts. 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 openkaarten-geodata-for-posts

OpenKaarten Geodata Plugin

This plugin adds GeoData fields to the OpenPub Items post type and creates a REST endpoint to retrieve OpenPub Items with geodata.

Requirements

OpenKaarten Geodata

In order to make the OpenKaarten Geodata Plugin work, you will need to have a WordPress installation with at least the following installed (and activated):

On this WordPress installation you will have to enable pretty permalinks (Settings > Permalinks > Select any of the options that is not plain).

There are two possible setups for the OpenKaarten Geodata, this can be:

  1. On the WordPress installation of an existing website.
  2. On a completely new WordPress installation.

In all scenarios the OpenKaarten Geodata plugin needs to have the following installed (and activated):

Furthermore, the OpenKaarten Base plugin needs a package with base functions to be installed. This package can be installed via composer (see instructions further on) and is called:

With this installed you can use the OpenKaarten Geodata plugin in your WordPress website.

If you chose for option 2 (new WordPress installation), you will probably need to install a WordPress theme. Since the OpenKaarten plugin is a REST API, it can be used in any WordPress theme.

Works best with

The OpenKaarten Geodata plugin works best with the following plugins, which can be installed on a different WordPress installation:

Installation

Manual installation

At this point manual installation is not supported, because of composer dependencies. We are working on this.

Composer installation

  1. composer source [email protected]:OpenWebconcept/package-owc-openkaarten-functions.git
  2. composer require acato/openkaarten-base-functions
  3. composer source [email protected]:OpenWebconcept/plugin-openkaarten-geodata-for-posts.git
  4. composer require acato/openkaarten-geodata-for-posts
  5. cd /wp-content/plugins/openkaarten-geodata-for-posts
  6. npm install && npm run build
  7. Activate the OpenKaarten Geodata Plugin through the 'Plugins' menu in WordPress.

Usage

Add geodata to OpenPub Items

Add geodata to OpenPub Items by editing an OpenPub Item and filling in the geodata fields. You can either add geodata by clicking one or multiple points on the map or by filling in an address, which generates a latitude and longitude for 1 specific point.

Development

Coding Standards

Please remember, we use the WordPress PHP Coding Standards for this plugin! (https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/) To check if your changes are compatible with these standards:

N.B. the composer install command will also install a git hook, preventing you from committing code that isn't compatible with the coding standards.

NPM

The plugin uses NPM for managing the JavaScript dependencies and building the leaflet map for showing locations within a datalayer. To install the dependencies, run the following command:

To deploy the JavaScript files, run the following command:

To watch the JavaScript files for changes, run the following command:

REST API Endpoints

This plugin adds the following REST API GET-endpoints:

Changelog

0.1.14


All versions of openkaarten-geodata-for-posts with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.0 || ^2.0
acato-plugins/geophp Version *
acato/openkaarten-base-functions Version *
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 acato/openkaarten-geodata-for-posts contains the following files

Loading the files please wait ...