No description, website, or topics provided.
PHP ApacheConf
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
locales
views
.gitignore
.htaccess
README.md
composer.json
composer.lock
cron_new_user.php
cron_update_cs.php
index.php
lang.php
variables.sample.ini.php
welcome.png
welcometool.sql

README.md

Tool to manage new OpenStreetMap users monitoring in a country.

Inspired by OSM Welcome Belgium, uses the newestosm feed by Pascal Neis.

Used in production for Italy on http://welcome.openstreetmap.it/.

Installation

To install:

  • Have a working AMP web server (Apache with mod-rewrite, PHP, MySQL)
  • Clone this repository in a folder, run composer update to donwload the libraries, create a mysql database and import welcometool.sql.
  • Register a new Oauth client in your OpenStreetMap user profile.
  • Copy variables.sample.ini.php to variables.ini.php and modify this with your variables (database credentials, Oauth, base url, feed url and main language).

To download new users, run cron_new_user.php either in the browser, or via command line (you could set it up as a cronjob running daily). To update changeset information, run similarly cron_update_cs.php (not at the same time).

Usage

From the admin section set up as many languages as you want with their ISO-alpha-2 code (at least one language, which needs to be registered in the mainLanguage parameter in the variables file). Now you can create "snippets" per each language (a title and a markdown text), which you will use to compose new messages.

Language

Language information is loaded from json files in locales folder. Default language is configured in the variables file.